Skip to content

The agent engineering platform.

SelfQuery support for deeplake (#7888)

Adilkhan Sarsen3e7d2a1b6418
diff --git a/docs/extras/modules/data_connection/retrievers/self_query/deeplake_self_query.ipynb b/docs/extras/modules/data_connection/retrievers/self_query/deeplake_self_query.ipynb
new file mode 100644
index 0000000000..1592f4693b
--- /dev/null
+++ b/docs/extras/modules/data_connection/retrievers/self_query/deeplake_self_query.ipynb
@@ -0,0 +1,490 @@
+{
+ "cells": [
+ {
+ "attachments": {},
+ "cell_type": "markdown",
+ "id": "13afcae7",
+ "metadata": {},
+ "source": [
+ "# DeepLake self-querying \n",
+ "\n",
+ ">[DeepLake](https://www.activeloop.ai) is a multimodal database for building AI applications.\n",
+ "\n",
+ "In the notebook we'll demo the `SelfQueryRetriever` wrapped around a DeepLake vector store. "
+ ]
+ },
+ {
+ "attachments": {},
+ "cell_type": "markdown",
+ "id": "68e75fb9",
+ "metadata": {},
+ "source": [
+ "## Creating a DeepLake vectorstore\n",
+ "First we'll want to create a DeepLake VectorStore and seed it with some data. We've created a small demo set of documents that contain summaries of movies.\n",
+ "\n",
+ "NOTE: The self-query retriever requires you to have `lark` installed (`pip install lark`). We also need the `deeplake` package."
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 1,
+ "id": "63a8af5b",
+ "metadata": {
+ "tags": []
+ },
+ "outputs": [],
+ "source": [
+ "#!pip install lark"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 2,
+ "id": "22431060-52c4-48a7-a97b-9f542b8b0928",
+ "metadata": {
+ "tags": []
+ },
+ "outputs": [],
+ "source": [
+ "#!pip install 'deeplake[enterprise]'"
+ ]
+ },
+ {
+ "attachments": {},
+ "cell_type": "markdown",
+ "id": "83811610-7df3-4ede-b268-68a6a83ba9e2",
+ "metadata": {},
+ "source": [
+ "We want to use `OpenAIEmbeddings` so we have to get the OpenAI API Key."
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 3,
+ "id": "dd01b61b-7d32-4a55-85d6-b2d2d4f18840",
+ "metadata": {
+ "tags": []
+ },
+ "outputs": [],
+ "source": [
+ "import os\n",
+ "import getpass\n",
+ "\n",
+ "os.environ[\"OPENAI_API_KEY\"] = getpass.getpass(\"OpenAI API Key:\")"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 4,
+ "id": "cb4a5787",
+ "metadata": {
+ "tags": []
+ },
+ "outputs": [],
+ "source": [
+ "from langchain.schema import Document\n",
+ "from langchain.embeddings.openai import OpenAIEmbeddings\n",
+ "from langchain.vectorstores import DeepLake\n",
+ "\n",
+ "embeddings = OpenAIEmbeddings()"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 6,
+ "id": "bcbe04d9",
+ "metadata": {
+ "tags": []
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "Your Deep Lake dataset has been successfully created!\n"
+ ]
+ },
+ {
+ "name": "stderr",
+ "output_type": "stream",
+ "text": [
+ "-"
+ ]
+ },
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "Dataset(path='hub://adilkhan/self_queery', tensors=['embedding', 'id', 'metadata', 'text'])\n",
+ "\n",
+ " tensor htype shape dtype compression\n",
+ " ------- ------- ------- ------- ------- \n",
+ " embedding embedding (6, 1536) float32 None \n",
+ " id text (6, 1) str None \n",
+ " metadata json (6, 1) str None \n",
+ " text text (6, 1) str None \n"
+ ]
+ },
+ {
+ "name": "stderr",
+ "output_type": "stream",
+ "text": [
+ " \r"
+ ]
+ }
+ ],
+ "source": [
+ "docs = [\n",
+ " Document(\n",
+ " page_content=\"A bunch of scientists bring back dinosaurs and mayhem breaks loose\",\n",
+ " metadata={\"year\": 1993, \"rating\": 7.7, \"genre\": \"science fiction\"},\n",
+ " ),\n",
+ " Document(\n",
+ " page_content=\"Leo DiCaprio gets lost in a dream within a dream within a dream within a ...\",\n",
+ " metadata={\"year\": 2010, \"director\": \"Christopher Nolan\", \"rating\": 8.2},\n",
+ " ),\n",
+ " Document(\n",
+ " page_content=\"A psychologist / detective gets lost in a series of dreams within dreams within dreams and Inception reused the idea\",\n",
+ " metadata={\"year\": 2006, \"director\": \"Satoshi Kon\", \"rating\": 8.6},\n",
+ " ),\n",
+ " Document(\n",
+ " page_content=\"A bunch of normal-sized women are supremely wholesome and some men pine after them\",\n",
+ " metadata={\"year\": 2019, \"director\": \"Greta Gerwig\", \"rating\": 8.3},\n",
+ " ),\n",
+ " Document(\n",
+ " page_content=\"Toys come alive and have a blast doing so\",\n",
+ " metadata={\"year\": 1995, \"genre\": \"animated\"},\n",
+ " ),\n",
+ " Document(\n",
+ " page_content=\"Three men walk into the Zone, three men walk out of the Zone\",\n",
+ " metadata={\n",
+ " \"year\": 1979,\n",
+ " \"rating\": 9.9,\n",
+ " \"director\": \"Andrei Tarkovsky\",\n",
+ " \"genre\": \"science fiction\",\n",
+ " \"rating\": 9.9,\n",
+ " },\n",
+ " ),\n",
+ "]\n",
+ "username_or_org = \"<USER_NAME_OR_ORG>\"\n",
+ "vectorstore = DeepLake.from_documents(\n",
+ " docs, embeddings, dataset_path=f\"hub://{username_or_org}/self_queery\"\n",
+ ")"
+ ]
+ },
+ {
+ "attachments": {},
+ "cell_type": "markdown",
+ "id": "5ecaab6d",
+ "metadata": {},
+ "source": [
+ "## Creating our self-querying retriever\n",
+ "Now we can instantiate our retriever. To do this we'll need to provide some information upfront about the metadata fields that our documents support and a short description of the document contents."
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 7,
+ "id": "86e34dbf",
+ "metadata": {
+ "tags": []
+ },
+ "outputs": [],
+ "source": [
+ "from langchain.llms import OpenAI\n",
+ "from langchain.retrievers.self_query.base import SelfQueryRetriever\n",
+ "from langchain.chains.query_constructor.base import AttributeInfo\n",
+ "\n",
+ "metadata_field_info = [\n",
+ " AttributeInfo(\n",
+ " name=\"genre\",\n",
+ " description=\"The genre of the movie\",\n",
+ " type=\"string or list[string]\",\n",
+ " ),\n",
+ " AttributeInfo(\n",
+ " name=\"year\",\n",
+ " description=\"The year the movie was released\",\n",
+ " type=\"integer\",\n",
+ " ),\n",
+ " AttributeInfo(\n",
+ " name=\"director\",\n",
+ " description=\"The name of the movie director\",\n",
+ " type=\"string\",\n",
+ " ),\n",
+ " AttributeInfo(\n",
+ " name=\"rating\", description=\"A 1-10 rating for the movie\", type=\"float\"\n",
+ " ),\n",
+ "]\n",
+ "document_content_description = \"Brief summary of a movie\"\n",
+ "llm = OpenAI(temperature=0)\n",
+ "retriever = SelfQueryRetriever.from_llm(\n",
+ " llm, vectorstore, document_content_description, metadata_field_info, verbose=True\n",
+ ")"
+ ]
+ },
+ {
+ "attachments": {},
+ "cell_type": "markdown",
+ "id": "ea9df8d4",
+ "metadata": {},
+ "source": [
+ "## Testing it out\n",
+ "And now we can try actually using our retriever!"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 8,
+ "id": "38a126e9",
+ "metadata": {},
+ "outputs": [
+ {
+ "name": "stderr",
+ "output_type": "stream",
+ "text": [
+ "/Users/adilkhansarsen/Documents/work/LangChain/langchain/langchain/chains/llm.py:275: UserWarning: The predict_and_parse method is deprecated, instead pass an output parser directly to LLMChain.\n",
+ " warnings.warn(\n"
+ ]
+ },
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "query='dinosaur' filter=None limit=None\n"
+ ]
+ },
+ {
+ "data": {
+ "text/plain": [
+ "[Document(page_content='A bunch of scientists bring back dinosaurs and mayhem breaks loose', metadata={'year': 1993, 'rating': 7.7, 'genre': 'science fiction'}),\n",
+ " Document(page_content='Toys come alive and have a blast doing so', metadata={'year': 1995, 'genre': 'animated'}),\n",
+ " Document(page_content='Three men walk into the Zone, three men walk out of the Zone', metadata={'year': 1979, 'rating': 9.9, 'director': 'Andrei Tarkovsky', 'genre': 'science fiction'}),\n",
+ " Document(page_content='A psychologist / detective gets lost in a series of dreams within dreams within dreams and Inception reused the idea', metadata={'year': 2006, 'director': 'Satoshi Kon', 'rating': 8.6})]"
+ ]
+ },
+ "execution_count": 8,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "# This example only specifies a relevant query\n",
+ "retriever.get_relevant_documents(\"What are some movies about dinosaurs\")"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 9,
+ "id": "fc3f1e6e",
+ "metadata": {},
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "query=' ' filter=Comparison(comparator=<Comparator.GT: 'gt'>, attribute='rating', value=8.5) limit=None\n"
+ ]
+ },
+ {
+ "data": {
+ "text/plain": [
+ "[Document(page_content='A psychologist / detective gets lost in a series of dreams within dreams within dreams and Inception reused the idea', metadata={'year': 2006, 'director': 'Satoshi Kon', 'rating': 8.6}),\n",
+ " Document(page_content='Three men walk into the Zone, three men walk out of the Zone', metadata={'year': 1979, 'rating': 9.9, 'director': 'Andrei Tarkovsky', 'genre': 'science fiction'})]"
+ ]
+ },
+ "execution_count": 9,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "# This example only specifies a filter\n",
+ "retriever.get_relevant_documents(\"I want to watch a movie rated higher than 8.5\")"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 10,
+ "id": "b19d4da0",
+ "metadata": {},
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "query='women' filter=Comparison(comparator=<Comparator.EQ: 'eq'>, attribute='director', value='Greta Gerwig') limit=None\n"
+ ]
+ },
+ {
+ "data": {
+ "text/plain": [
+ "[Document(page_content='A bunch of normal-sized women are supremely wholesome and some men pine after them', metadata={'year': 2019, 'director': 'Greta Gerwig', 'rating': 8.3})]"
+ ]
+ },
+ "execution_count": 10,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "# This example specifies a query and a filter\n",
+ "retriever.get_relevant_documents(\"Has Greta Gerwig directed any movies about women\")"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 11,
+ "id": "f900e40e",
+ "metadata": {},
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "query=' ' filter=Operation(operator=<Operator.AND: 'and'>, arguments=[Comparison(comparator=<Comparator.GTE: 'gte'>, attribute='rating', value=8.5), Comparison(comparator=<Comparator.EQ: 'eq'>, attribute='genre', value='science fiction')]) limit=None\n"
+ ]
+ },
+ {
+ "data": {
+ "text/plain": [
+ "[Document(page_content='Three men walk into the Zone, three men walk out of the Zone', metadata={'year': 1979, 'rating': 9.9, 'director': 'Andrei Tarkovsky', 'genre': 'science fiction'})]"
+ ]
+ },
+ "execution_count": 11,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "# This example specifies a composite filter\n",
+ "retriever.get_relevant_documents(\n",
+ " \"What's a highly rated (above 8.5) science fiction film?\"\n",
+ ")"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 12,
+ "id": "12a51522",
+ "metadata": {},
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "query='toys' filter=Operation(operator=<Operator.AND: 'and'>, arguments=[Comparison(comparator=<Comparator.GT: 'gt'>, attribute='year', value=1990), Comparison(comparator=<Comparator.LT: 'lt'>, attribute='year', value=2005), Comparison(comparator=<Comparator.EQ: 'eq'>, attribute='genre', value='animated')]) limit=None\n"
+ ]
+ },
+ {
+ "data": {
+ "text/plain": [
+ "[Document(page_content='Toys come alive and have a blast doing so', metadata={'year': 1995, 'genre': 'animated'})]"
+ ]
+ },
+ "execution_count": 12,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "# This example specifies a query and composite filter\n",
+ "retriever.get_relevant_documents(\n",
+ " \"What's a movie after 1990 but before 2005 that's all about toys, and preferably is animated\"\n",
+ ")"
+ ]
+ },
+ {
+ "attachments": {},
+ "cell_type": "markdown",
+ "id": "39bd1de1-b9fe-4a98-89da-58d8a7a6ae51",
+ "metadata": {},
+ "source": [
+ "## Filter k\n",
+ "\n",
+ "We can also use the self query retriever to specify `k`: the number of documents to fetch.\n",
+ "\n",
+ "We can do this by passing `enable_limit=True` to the constructor."
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 13,
+ "id": "bff36b88-b506-4877-9c63-e5a1a8d78e64",
+ "metadata": {
+ "tags": []
+ },
+ "outputs": [],
+ "source": [
+ "retriever = SelfQueryRetriever.from_llm(\n",
+ " llm,\n",
+ " vectorstore,\n",
+ " document_content_description,\n",
+ " metadata_field_info,\n",
+ " enable_limit=True,\n",
+ " verbose=True,\n",
+ ")"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 14,
+ "id": "2758d229-4f97-499c-819f-888acaf8ee10",
+ "metadata": {
+ "tags": []
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "query='dinosaur' filter=None limit=2\n"
+ ]
+ },
+ {
+ "data": {
+ "text/plain": [
+ "[Document(page_content='A bunch of scientists bring back dinosaurs and mayhem breaks loose', metadata={'year': 1993, 'rating': 7.7, 'genre': 'science fiction'}),\n",
+ " Document(page_content='Toys come alive and have a blast doing so', metadata={'year': 1995, 'genre': 'animated'})]"
+ ]
+ },
+ "execution_count": 14,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "# This example only specifies a relevant query\n",
+ "retriever.get_relevant_documents(\"what are two movies about dinosaurs\")"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "id": "c93f0847-cbd9-4c25-aed1-91588e856b5c",
+ "metadata": {},
+ "outputs": [],
+ "source": []
+ }
+ ],
+ "metadata": {
+ "kernelspec": {
+ "display_name": "Python 3 (ipykernel)",
+ "language": "python",
+ "name": "python3"
+ },
+ "language_info": {
+ "codemirror_mode": {
+ "name": "ipython",
+ "version": 3
+ },
+ "file_extension": ".py",
+ "mimetype": "text/x-python",
+ "name": "python",
+ "nbconvert_exporter": "python",
+ "pygments_lexer": "ipython3",
+ "version": "3.9.6"
+ }
+ },
+ "nbformat": 4,
+ "nbformat_minor": 5
+}
diff --git a/libs/langchain/langchain/retrievers/self_query/base.py b/libs/langchain/langchain/retrievers/self_query/base.py
index 653c314dcf..14f9d6f4e0 100644
--- a/libs/langchain/langchain/retrievers/self_query/base.py
+++ b/libs/langchain/langchain/retrievers/self_query/base.py
@@ -13,6 +13,7 @@ from langchain.chains.query_constructor.base import load_query_constructor_chain
from langchain.chains.query_constructor.ir import StructuredQuery, Visitor
from langchain.chains.query_constructor.schema import AttributeInfo
from langchain.retrievers.self_query.chroma import ChromaTranslator
+from langchain.retrievers.self_query.deeplake import DeepLakeTranslator
from langchain.retrievers.self_query.myscale import MyScaleTranslator
from langchain.retrievers.self_query.pinecone import PineconeTranslator
from langchain.retrievers.self_query.qdrant import QdrantTranslator
@@ -21,6 +22,7 @@ from langchain.schema import BaseRetriever, Document
from langchain.schema.language_model import BaseLanguageModel
from langchain.vectorstores import (
Chroma,
+ DeepLake,
MyScale,
Pinecone,
Qdrant,
@@ -38,6 +40,7 @@ def _get_builtin_translator(vectorstore: VectorStore) -> Visitor:
Weaviate: WeaviateTranslator,
Qdrant: QdrantTranslator,
MyScale: MyScaleTranslator,
+ DeepLake: DeepLakeTranslator,
}
if vectorstore_cls not in BUILTIN_TRANSLATORS:
raise ValueError(
diff --git a/libs/langchain/langchain/retrievers/self_query/deeplake.py b/libs/langchain/langchain/retrievers/self_query/deeplake.py
new file mode 100644
index 0000000000..109b5b6461
--- /dev/null
+++ b/libs/langchain/langchain/retrievers/self_query/deeplake.py
@@ -0,0 +1,86 @@
+"""Logic for converting internal query language to a valid Chroma query."""
+from typing import Tuple, Union
+
+from langchain.chains.query_constructor.ir import (
+ Comparator,
+ Comparison,
+ Operation,
+ Operator,
+ StructuredQuery,
+ Visitor,
+)
+
+COMPARATOR_TO_TQL = {
+ Comparator.EQ: "==",
+ Comparator.GT: ">",
+ Comparator.GTE: ">=",
+ Comparator.LT: "<",
+ Comparator.LTE: "<=",
+}
+
+
+OPERATOR_TO_TQL = {
+ Operator.AND: "and",
+ Operator.OR: "or",
+}
+
+
+def can_cast_to_float(string: str) -> bool:
+ try:
+ float(string)
+ return True
+ except ValueError:
+ return False
+
+
+class DeepLakeTranslator(Visitor):
+ """Logic for converting internal query language elements to valid filters."""
+
+ allowed_operators = [Operator.AND, Operator.OR]
+ """Subset of allowed logical operators."""
+ allowed_comparators = [
+ Comparator.EQ,
+ Comparator.GT,
+ Comparator.GTE,
+ Comparator.LT,
+ Comparator.LTE,
+ ]
+ """Subset of allowed logical comparators."""
+
+ def _format_func(self, func: Union[Operator, Comparator]) -> str:
+ self._validate_func(func)
+ if isinstance(func, Operator):
+ value = OPERATOR_TO_TQL[func.value] # type: ignore
+ elif isinstance(func, Comparator):
+ value = COMPARATOR_TO_TQL[func.value] # type: ignore
+ return f"{value}"
+
+ def visit_operation(self, operation: Operation) -> str:
+ args = [arg.accept(self) for arg in operation.arguments]
+ operator = self._format_func(operation.operator)
+ return "(" + (" " + operator + " ").join(args) + ")"
+
+ def visit_comparison(self, comparison: Comparison) -> str:
+ comparator = self._format_func(comparison.comparator)
+ values = comparison.value
+ if isinstance(values, list):
+ tql = []
+ for value in values:
+ comparison.value = value
+ tql.append(self.visit_comparison(comparison))
+
+ return "(" + (" or ").join(tql) + ")"
+
+ if not can_cast_to_float(comparison.value):
+ values = f"'{values}'"
+ return f"metadata['{comparison.attribute}'] {comparator} {values}"
+
+ def visit_structured_query(
+ self, structured_query: StructuredQuery
+ ) -> Tuple[str, dict]:
+ if structured_query.filter is None:
+ kwargs = {}
+ else:
+ tqL = f"SELECT * WHERE {structured_query.filter.accept(self)}"
+ kwargs = {"tql": tqL}
+ return structured_query.query, kwargs
diff --git a/libs/langchain/langchain/vectorstores/deeplake.py b/libs/langchain/langchain/vectorstores/deeplake.py
index 1ff1d3f6e6..5557813039 100644
--- a/libs/langchain/langchain/vectorstores/deeplake.py
+++ b/libs/langchain/langchain/vectorstores/deeplake.py
@@ -219,14 +219,14 @@ class DeepLake(VectorStore):
def _search_tql(
self,
- tql_query: Optional[str],
+ tql: Optional[str],
exec_option: Optional[str] = None,
**kwargs: Any,
) -> List[Document]:
"""Function for performing tql_search.
Args:
- tql_query (str): TQL Query string for direct evaluation.
+ tql (str): TQL Query string for direct evaluation.
Available only for `compute_engine` and `tensor_db`.
exec_option (str, optional): Supports 3 ways to search.
Could be "python", "compute_engine" or "tensor_db". Default is "python".
@@ -249,7 +249,7 @@ class DeepLake(VectorStore):
ValueError: If return_score is True but some condition is not met.
"""
result = self.vectorstore.search(
- query=tql_query,
+ query=tql,
exec_option=exec_option,
)
metadatas = result["metadata"]
@@ -328,9 +328,9 @@ class DeepLake(VectorStore):
ValueError: if both `embedding` and `embedding_function` are not specified.
"""
- if kwargs.get("tql_query"):
+ if kwargs.get("tql"):
return self._search_tql(
- tql_query=kwargs["tql_query"],
+ tql=kwargs["tql"],
exec_option=exec_option,
return_score=return_score,
embedding=embedding,
@@ -423,7 +423,7 @@ class DeepLake(VectorStore):
>>> # Run tql search:
>>> data = vector_store.similarity_search(
... query=None,
- ... tql_query="SELECT * WHERE id == <id>",
+ ... tql="SELECT * WHERE id == <id>",
... exec_option="compute_engine",
... )
diff --git a/libs/langchain/tests/unit_tests/retrievers/self_query/test_deeplake.py b/libs/langchain/tests/unit_tests/retrievers/self_query/test_deeplake.py
new file mode 100644
index 0000000000..f39349da37
--- /dev/null
+++ b/libs/langchain/tests/unit_tests/retrievers/self_query/test_deeplake.py
@@ -0,0 +1,33 @@
+from langchain.chains.query_constructor.ir import (
+ Comparator,
+ Comparison,
+ Operation,
+ Operator,
+)
+from langchain.retrievers.self_query.deeplake import DeepLakeTranslator
+
+DEFAULT_TRANSLATOR = DeepLakeTranslator()
+
+
+def test_visit_comparison() -> None:
+ comp = Comparison(comparator=Comparator.LT, attribute="foo", value=["1", "2"])
+ expected = "(metadata['foo'] < 1 or metadata['foo'] < 2)"
+ actual = DEFAULT_TRANSLATOR.visit_comparison(comp)
+ assert expected == actual
+
+
+def test_visit_operation() -> None:
+ op = Operation(
+ operator=Operator.AND,
+ arguments=[
+ Comparison(comparator=Comparator.LT, attribute="foo", value=2),
+ Comparison(comparator=Comparator.EQ, attribute="bar", value="baz"),
+ Comparison(comparator=Comparator.LT, attribute="abc", value=["1", "2"]),
+ ],
+ )
+ expected = (
+ "(metadata['foo'] < 2 and metadata['bar'] == 'baz' "
+ "and (metadata['abc'] < 1 or metadata['abc'] < 2))"
+ )
+ actual = DEFAULT_TRANSLATOR.visit_operation(op)
+ assert expected == actual
diff --git a/poetry.lock b/poetry.lock
index 314e910447..efb683e057 100644
--- a/poetry.lock
+++ b/poetry.lock
@@ -1,10 +1,9 @@
-# This file is automatically @generated by Poetry 1.4.2 and should not be changed by hand.
+# This file is automatically @generated by Poetry 1.5.1 and should not be changed by hand.
[[package]]
name = "aiohttp"
version = "3.8.5"
description = "Async http client/server framework (asyncio)"
-category = "dev"
optional = false
python-versions = ">=3.6"
files = [
@@ -113,7 +112,6 @@ speedups = ["Brotli", "aiodns", "cchardet"]
name = "aiosignal"
version = "1.3.1"
description = "aiosignal: a list of registered asynchronous callbacks"
-category = "dev"
optional = false
python-versions = ">=3.7"
files = [
@@ -128,7 +126,6 @@ frozenlist = ">=1.1.0"
name = "alabaster"
version = "0.7.13"
description = "A configurable sidebar-enabled Sphinx theme"
-category = "dev"
optional = false
python-versions = ">=3.6"
files = [
@@ -140,7 +137,6 @@ files = [
name = "anyio"
version = "3.7.1"
description = "High level compatibility layer for multiple asynchronous event loop implementations"
-category = "dev"
optional = false
python-versions = ">=3.7"
files = [
@@ -162,7 +158,6 @@ trio = ["trio (<0.22)"]
name = "appnope"
version = "0.1.3"
description = "Disable App Nap on macOS >= 10.9"
-category = "dev"
optional = false
python-versions = "*"
files = [
@@ -174,7 +169,6 @@ files = [
name = "argon2-cffi"
version = "21.3.0"
description = "The secure Argon2 password hashing algorithm."
-category = "dev"
optional = false
python-versions = ">=3.6"
files = [
@@ -194,7 +188,6 @@ tests = ["coverage[toml] (>=5.0.2)", "hypothesis", "pytest"]
name = "argon2-cffi-bindings"
version = "21.2.0"
description = "Low-level CFFI bindings for Argon2"
-category = "dev"
optional = false
python-versions = ">=3.6"
files = [
@@ -232,7 +225,6 @@ tests = ["pytest"]
name = "arrow"
version = "1.2.3"
description = "Better dates & times for Python"
-category = "dev"
optional = false
python-versions = ">=3.6"
files = [
@@ -247,7 +239,6 @@ python-dateutil = ">=2.7.0"
name = "asttokens"
version = "2.2.1"
description = "Annotate AST trees with source code positions"
-category = "dev"
optional = false
python-versions = "*"
files = [
@@ -265,7 +256,6 @@ test = ["astroid", "pytest"]
name = "async-lru"
version = "2.0.3"
description = "Simple LRU cache for asyncio"
-category = "dev"
optional = false
python-versions = ">=3.8"
files = [
@@ -280,7 +270,6 @@ typing-extensions = {version = ">=4.0.0", markers = "python_version < \"3.11\""}
name = "async-timeout"
version = "4.0.2"
description = "Timeout context manager for asyncio programs"
-category = "dev"
optional = false
python-versions = ">=3.6"
files = [
@@ -292,7 +281,6 @@ files = [
name = "attrs"
version = "23.1.0"
description = "Classes Without Boilerplate"
-category = "dev"
optional = false
python-versions = ">=3.7"
files = [
@@ -311,7 +299,6 @@ tests-no-zope = ["cloudpickle", "hypothesis", "mypy (>=1.1.1)", "pympler", "pyte
name = "autodoc-pydantic"
version = "1.9.0"
description = "Seamlessly integrate pydantic models in your Sphinx documentation."
-category = "dev"
optional = false
python-versions = ">=3.7.1,<4.0.0"
files = [
@@ -333,7 +320,6 @@ test = ["coverage (>=7,<8)", "pytest (>=7,<8)"]
name = "babel"
version = "2.12.1"
description = "Internationalization utilities"
-category = "dev"
optional = false
python-versions = ">=3.7"
files = [
@@ -348,7 +334,6 @@ pytz = {version = ">=2015.7", markers = "python_version < \"3.9\""}
name = "backcall"
version = "0.2.0"
description = "Specifications for callback functions passed in to an API"
-category = "dev"
optional = false
python-versions = "*"
files = [
@@ -360,7 +345,6 @@ files = [
name = "beautifulsoup4"
version = "4.12.2"
description = "Screen-scraping library"
-category = "dev"
optional = false
python-versions = ">=3.6.0"
files = [
@@ -379,7 +363,6 @@ lxml = ["lxml"]
name = "black"
version = "23.7.0"
description = "The uncompromising code formatter."
-category = "dev"
optional = false
python-versions = ">=3.8"
files = [
@@ -428,7 +411,6 @@ uvloop = ["uvloop (>=0.15.2)"]
name = "bleach"
version = "6.0.0"
description = "An easy safelist-based HTML-sanitizing tool."
-category = "dev"
optional = false
python-versions = ">=3.7"
files = [
@@ -447,7 +429,6 @@ css = ["tinycss2 (>=1.1.0,<1.2)"]
name = "certifi"
version = "2023.5.7"
description = "Python package for providing Mozilla's CA Bundle."
-category = "dev"
optional = false
python-versions = ">=3.6"
files = [
@@ -459,7 +440,6 @@ files = [
name = "cffi"
version = "1.15.1"
description = "Foreign Function Interface for Python calling C code."
-category = "dev"
optional = false
python-versions = "*"
files = [
@@ -536,7 +516,6 @@ pycparser = "*"
name = "charset-normalizer"
version = "3.2.0"
description = "The Real First Universal Charset Detector. Open, modern and actively maintained alternative to Chardet."
-category = "dev"
optional = false
python-versions = ">=3.7.0"
files = [
@@ -621,7 +600,6 @@ files = [
name = "click"
version = "8.1.6"
description = "Composable command line interface toolkit"
-category = "dev"
optional = false
python-versions = ">=3.7"
files = [
@@ -636,7 +614,6 @@ colorama = {version = "*", markers = "platform_system == \"Windows\""}
name = "codespell"
version = "2.2.5"
description = "Codespell"
-category = "dev"
optional = false
python-versions = ">=3.7"
files = [
@@ -654,7 +631,6 @@ types = ["chardet (>=5.1.0)", "mypy", "pytest", "pytest-cov", "pytest-dependency
name = "colorama"
version = "0.4.6"
description = "Cross-platform colored terminal text."
-category = "dev"
optional = false
python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,>=2.7"
files = [
@@ -666,7 +642,6 @@ files = [
name = "comm"
version = "0.1.3"
description = "Jupyter Python Comm implementation, for usage in ipykernel, xeus-python etc."
-category = "dev"
optional = false
python-versions = ">=3.6"
files = [
@@ -686,7 +661,6 @@ typing = ["mypy (>=0.990)"]
name = "dataclasses-json"
version = "0.5.9"
description = "Easily serialize dataclasses to and from JSON"
-category = "dev"
optional = false
python-versions = ">=3.6"
files = [
@@ -706,7 +680,6 @@ dev = ["flake8", "hypothesis", "ipython", "mypy (>=0.710)", "portray", "pytest (
name = "debugpy"
version = "1.6.7"
description = "An implementation of the Debug Adapter Protocol for Python"
-category = "dev"
optional = false
python-versions = ">=3.7"
files = [
@@ -734,7 +707,6 @@ files = [
name = "decorator"
version = "5.1.1"
description = "Decorators for Humans"
-category = "dev"
optional = false
python-versions = ">=3.5"
files = [
@@ -746,7 +718,6 @@ files = [
name = "defusedxml"
version = "0.7.1"
description = "XML bomb protection for Python stdlib modules"
-category = "dev"
optional = false
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
files = [
@@ -758,7 +729,6 @@ files = [
name = "dnspython"
version = "2.4.0"
description = "DNS toolkit"
-category = "dev"
optional = false
python-versions = ">=3.8,<4.0"
files = [
@@ -782,7 +752,6 @@ wmi = ["wmi (>=1.5.1,<2.0.0)"]
name = "docutils"
version = "0.17.1"
description = "Docutils -- Python Documentation Utilities"
-category = "dev"
optional = false
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
files = [
@@ -794,7 +763,6 @@ files = [
name = "entrypoints"
version = "0.4"
description = "Discover and load entry points from installed packages."
-category = "dev"
optional = false
python-versions = ">=3.6"
files = [
@@ -806,7 +774,6 @@ files = [
name = "exceptiongroup"
version = "1.1.2"
description = "Backport of PEP 654 (exception groups)"
-category = "dev"
optional = false
python-versions = ">=3.7"
files = [
@@ -821,7 +788,6 @@ test = ["pytest (>=6)"]
name = "executing"
version = "1.2.0"
description = "Get the currently executing AST node of a frame, and other information"
-category = "dev"
optional = false
python-versions = "*"
files = [
@@ -836,7 +802,6 @@ tests = ["asttokens", "littleutils", "pytest", "rich"]
name = "fastcore"
version = "1.4.2"
description = "Python supercharged for fastai development"
-category = "dev"
optional = false
python-versions = ">=3.7"
files = [
@@ -855,7 +820,6 @@ dev = ["matplotlib", "nbdev (>=0.2.39)", "numpy", "pandas", "pillow", "torch"]
name = "fastjsonschema"
version = "2.17.1"
description = "Fastest Python implementation of JSON schema"
-category = "dev"
optional = false
python-versions = "*"
files = [
@@ -870,7 +834,6 @@ devel = ["colorama", "json-spec", "jsonschema", "pylint", "pytest", "pytest-benc
name = "fastrelease"
version = "0.1.17"
description = "Simplified releases using GitHub Issues"
-category = "dev"
optional = false
python-versions = ">=3.6"
files = [
@@ -889,7 +852,6 @@ pyyaml = "*"
name = "fqdn"
version = "1.5.1"
description = "Validates fully-qualified domain names against RFC 1123, so that they are acceptable to modern bowsers"
-category = "dev"
optional = false
python-versions = ">=2.7, !=3.0, !=3.1, !=3.2, !=3.3, !=3.4, <4"
files = [
@@ -901,7 +863,6 @@ files = [
name = "frozenlist"
version = "1.4.0"
description = "A list-like structure which implements collections.abc.MutableSequence"
-category = "dev"
optional = false
python-versions = ">=3.8"
files = [
@@ -972,7 +933,6 @@ files = [
name = "ghapi"
version = "0.1.22"
description = "A python client for the GitHub API"
-category = "dev"
optional = false
python-versions = ">=3.6"
files = [
@@ -992,7 +952,6 @@ dev = ["jsonref"]
name = "greenlet"
version = "2.0.2"
description = "Lightweight in-process concurrent programming"
-category = "dev"
optional = false
python-versions = ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*"
files = [
@@ -1066,7 +1025,6 @@ test = ["objgraph", "psutil"]
name = "h11"
version = "0.14.0"
description = "A pure-Python, bring-your-own-I/O implementation of HTTP/1.1"
-category = "dev"
optional = false
python-versions = ">=3.7"
files = [
@@ -1078,7 +1036,6 @@ files = [
name = "httpcore"
version = "0.17.3"
description = "A minimal low-level HTTP client."
-category = "dev"
optional = false
python-versions = ">=3.7"
files = [
@@ -1090,17 +1047,16 @@ files = [
anyio = ">=3.0,<5.0"
certifi = "*"
h11 = ">=0.13,<0.15"
-sniffio = ">=1.0.0,<2.0.0"
+sniffio = "==1.*"
[package.extras]
http2 = ["h2 (>=3,<5)"]
-socks = ["socksio (>=1.0.0,<2.0.0)"]
+socks = ["socksio (==1.*)"]
[[package]]
name = "idna"
version = "3.4"
description = "Internationalized Domain Names in Applications (IDNA)"
-category = "dev"
optional = false
python-versions = ">=3.5"
files = [
@@ -1112,7 +1068,6 @@ files = [
name = "imagesize"
version = "1.4.1"
description = "Getting image size from png/jpeg/jpeg2000/gif file"
-category = "dev"
optional = false
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
files = [
@@ -1124,7 +1079,6 @@ files = [
name = "importlib-metadata"
version = "6.8.0"
description = "Read metadata from Python packages"
-category = "dev"
optional = false
python-versions = ">=3.8"
files = [
@@ -1144,7 +1098,6 @@ testing = ["flufl.flake8", "importlib-resources (>=1.3)", "packaging", "pyfakefs
name = "importlib-resources"
version = "6.0.0"
description = "Read resources from Python packages"
-category = "dev"
optional = false
python-versions = ">=3.8"
files = [
@@ -1163,7 +1116,6 @@ testing = ["pytest (>=6)", "pytest-black (>=0.3.7)", "pytest-checkdocs (>=2.4)",
name = "ipykernel"
version = "6.24.0"
description = "IPython Kernel for Jupyter"
-category = "dev"
optional = false
python-versions = ">=3.8"
files = [
@@ -1177,7 +1129,7 @@ comm = ">=0.1.1"
debugpy = ">=1.6.5"
ipython = ">=7.23.1"
jupyter-client = ">=6.1.12"
-jupyter-core = ">=4.12,<5.0.0 || >=5.1.0"
+jupyter-core = ">=4.12,<5.0.dev0 || >=5.1.dev0"
matplotlib-inline = ">=0.1"
nest-asyncio = "*"
packaging = "*"
@@ -1197,7 +1149,6 @@ test = ["flaky", "ipyparallel", "pre-commit", "pytest (>=7.0)", "pytest-asyncio"
name = "ipython"
version = "8.12.2"
description = "IPython: Productive Interactive Computing"
-category = "dev"
optional = false
python-versions = ">=3.8"
files = [
@@ -1237,7 +1188,6 @@ test-extra = ["curio", "matplotlib (!=3.2.0)", "nbformat", "numpy (>=1.21)", "pa
name = "ipython-genutils"
version = "0.2.0"
description = "Vestigial utilities from IPython"
-category = "dev"
optional = false
python-versions = "*"
files = [
@@ -1249,7 +1199,6 @@ files = [
name = "ipywidgets"
version = "8.0.7"
description = "Jupyter interactive widgets"
-category = "dev"
optional = false
python-versions = ">=3.7"
files = [
@@ -1271,7 +1220,6 @@ test = ["ipykernel", "jsonschema", "pytest (>=3.6.0)", "pytest-cov", "pytz"]
name = "isoduration"
version = "20.11.0"
description = "Operations with ISO 8601 durations"
-category = "dev"
optional = false
python-versions = ">=3.7"
files = [
@@ -1286,7 +1234,6 @@ arrow = ">=0.15.0"
name = "jedi"
version = "0.18.2"
description = "An autocompletion tool for Python that can be used for text editors."
-category = "dev"
optional = false
python-versions = ">=3.6"
files = [
@@ -1306,7 +1253,6 @@ testing = ["Django (<3.1)", "attrs", "colorama", "docopt", "pytest (<7.0.0)"]
name = "jinja2"
version = "3.1.2"
description = "A very fast and expressive template engine."
-category = "dev"
optional = false
python-versions = ">=3.7"
files = [
@@ -1324,7 +1270,6 @@ i18n = ["Babel (>=2.7)"]
name = "json5"
version = "0.9.14"
description = "A Python implementation of the JSON5 data format."
-category = "dev"
optional = false
python-versions = "*"
files = [
@@ -1339,18 +1284,17 @@ dev = ["hypothesis"]
name = "jsonpointer"
version = "2.4"
description = "Identify specific nodes in a JSON document (RFC 6901)"
-category = "dev"
optional = false
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*, !=3.6.*"
files = [
{file = "jsonpointer-2.4-py2.py3-none-any.whl", hash = "sha256:15d51bba20eea3165644553647711d150376234112651b4f1811022aecad7d7a"},
+ {file = "jsonpointer-2.4.tar.gz", hash = "sha256:585cee82b70211fa9e6043b7bb89db6e1aa49524340dde8ad6b63206ea689d88"},
]
[[package]]
name = "jsonschema"
version = "4.18.4"
description = "An implementation of JSON Schema validation for Python"
-category = "dev"
optional = false
python-versions = ">=3.8"
files = [
@@ -1382,7 +1326,6 @@ format-nongpl = ["fqdn", "idna", "isoduration", "jsonpointer (>1.13)", "rfc3339-
name = "jsonschema-specifications"
version = "2023.7.1"
description = "The JSON Schema meta-schemas and vocabularies, exposed as a Registry"
-category = "dev"
optional = false
python-versions = ">=3.8"
files = [
@@ -1398,7 +1341,6 @@ referencing = ">=0.28.0"
name = "jupyter"
version = "1.0.0"
description = "Jupyter metapackage. Install all the Jupyter components in one go."
-category = "dev"
optional = false
python-versions = "*"
files = [
@@ -1419,7 +1361,6 @@ qtconsole = "*"
name = "jupyter-cache"
version = "0.6.1"
description = "A defined interface for working with a cache of jupyter notebooks."
-category = "dev"
optional = false
python-versions = "~=3.8"
files = [
@@ -1447,7 +1388,6 @@ testing = ["coverage", "ipykernel", "jupytext", "matplotlib", "nbdime", "nbforma
name = "jupyter-client"
version = "7.4.9"
description = "Jupyter protocol implementation and client libraries"
-category = "dev"
optional = false
python-versions = ">=3.7"
files = [
@@ -1472,7 +1412,6 @@ test = ["codecov", "coverage", "ipykernel (>=6.12)", "ipython", "mypy", "pre-com
name = "jupyter-console"
version = "6.6.3"
description = "Jupyter terminal console"
-category = "dev"
optional = false
python-versions = ">=3.7"
files = [
@@ -1484,7 +1423,7 @@ files = [
ipykernel = ">=6.14"
ipython = "*"
jupyter-client = ">=7.0.0"
-jupyter-core = ">=4.12,<5.0.0 || >=5.1.0"
+jupyter-core = ">=4.12,<5.0.dev0 || >=5.1.dev0"
prompt-toolkit = ">=3.0.30"
pygments = "*"
pyzmq = ">=17"
@@ -1497,7 +1436,6 @@ test = ["flaky", "pexpect", "pytest"]
name = "jupyter-core"
version = "5.3.1"
description = "Jupyter core package. A base package on which Jupyter projects rely."
-category = "dev"
optional = false
python-versions = ">=3.8"
files = [
@@ -1518,7 +1456,6 @@ test = ["ipykernel", "pre-commit", "pytest", "pytest-cov", "pytest-timeout"]
name = "jupyter-events"
version = "0.6.3"
description = "Jupyter Event System library"
-category = "dev"
optional = false
python-versions = ">=3.7"
files = [
@@ -1543,7 +1480,6 @@ test = ["click", "coverage", "pre-commit", "pytest (>=7.0)", "pytest-asyncio (>=
name = "jupyter-lsp"
version = "2.2.0"
description = "Multi-Language Server WebSocket proxy for Jupyter Notebook/Lab server"
-category = "dev"
optional = false
python-versions = ">=3.8"
files = [
@@ -1559,7 +1495,6 @@ jupyter-server = ">=1.1.2"
name = "jupyter-server"
version = "2.7.0"
description = "The backend—i.e. core services, APIs, and REST endpoints—to Jupyter web applications."
-category = "dev"
optional = false
python-versions = ">=3.8"
files = [
@@ -1572,7 +1507,7 @@ anyio = ">=3.1.0"
argon2-cffi = "*"
jinja2 = "*"
jupyter-client = ">=7.4.4"
-jupyter-core = ">=4.12,<5.0.0 || >=5.1.0"
+jupyter-core = ">=4.12,<5.0.dev0 || >=5.1.dev0"
jupyter-events = ">=0.6.0"
jupyter-server-terminals = "*"
nbconvert = ">=6.4.4"
@@ -1596,7 +1531,6 @@ test = ["flaky", "ipykernel", "pre-commit", "pytest (>=7.0)", "pytest-console-sc
name = "jupyter-server-terminals"
version = "0.4.4"
description = "A Jupyter Server Extension Providing Terminals."
-category = "dev"
optional = false
python-versions = ">=3.8"
files = [
@@ -1616,7 +1550,6 @@ test = ["coverage", "jupyter-server (>=2.0.0)", "pytest (>=7.0)", "pytest-cov",
name = "jupyterlab"
version = "4.0.3"
description = "JupyterLab computational environment"
-category = "dev"
optional = false
python-versions = ">=3.8"
files = [
@@ -1650,7 +1583,6 @@ test = ["coverage", "pytest (>=7.0)", "pytest-check-links (>=0.7)", "pytest-cons
name = "jupyterlab-pygments"
version = "0.2.2"
description = "Pygments theme using JupyterLab CSS variables"
-category = "dev"
optional = false
python-versions = ">=3.7"
files = [
@@ -1662,7 +1594,6 @@ files = [
name = "jupyterlab-server"
version = "2.23.0"
description = "A set of server components for JupyterLab and JupyterLab like applications."
-category = "dev"
optional = false
python-versions = ">=3.7"
files = [
@@ -1689,7 +1620,6 @@ test = ["hatch", "ipykernel", "jupyterlab-server[openapi]", "openapi-spec-valida
name = "jupyterlab-widgets"
version = "3.0.8"
description = "Jupyter interactive widgets for JupyterLab"
-category = "dev"
optional = false
python-versions = ">=3.7"
files = [
@@ -1699,13 +1629,12 @@ files = [
[[package]]
name = "langchain"
-version = "0.0.239"
+version = "0.0.240"
description = "Building applications with LLMs through composability"
-category = "dev"
optional = false
python-versions = ">=3.8.1,<4.0"
files = []
-develop = false
+develop = true
[package.dependencies]
aiohttp = "^3.8.3"
@@ -1728,7 +1657,7 @@ clarifai = ["clarifai (>=9.1.0)"]
cohere = ["cohere (>=3,<4)"]
docarray = ["docarray[hnswlib] (>=0.32.0,<0.33.0)"]
embeddings = ["sentence-transformers (>=2,<3)"]
-extended-testing = ["atlassian-python-api (>=3.36.0,<4.0.0)", "beautifulsoup4 (>=4,<5)", "bibtexparser (>=1.4.0,<2.0.0)", "cassio (>=0.0.7,<0.0.8)", "chardet (>=5.1.0,<6.0.0)", "esprima (>=4.0.1,<5.0.0)", "geopandas (>=0.13.1,<0.14.0)", "gql (>=3.4.1,<4.0.0)", "html2text (>=2020.1.16,<2021.0.0)", "jq (>=1.4.1,<2.0.0)", "lxml (>=4.9.2,<5.0.0)", "mwparserfromhell (>=0.6.4,<0.7.0)", "mwxml (>=0.3.3,<0.4.0)", "openai (>=0,<1)", "openai (>=0,<1)", "pandas (>=2.0.1,<3.0.0)", "pdfminer-six (>=20221105,<20221106)", "pgvector (>=0.1.6,<0.2.0)", "psychicapi (>=0.8.0,<0.9.0)", "py-trello (>=0.19.0,<0.20.0)", "pymupdf (>=1.22.3,<2.0.0)", "pypdf (>=3.4.0,<4.0.0)", "pypdfium2 (>=4.10.0,<5.0.0)", "pyspark (>=3.4.0,<4.0.0)", "rank-bm25 (>=0.2.2,<0.3.0)", "rapidfuzz (>=3.1.1,<4.0.0)", "requests-toolbelt (>=1.0.0,<2.0.0)", "scikit-learn (>=1.2.2,<2.0.0)", "streamlit (>=1.18.0,<2.0.0)", "sympy (>=1.12,<2.0)", "telethon (>=1.28.5,<2.0.0)", "tqdm (>=4.48.0)", "zep-python (>=0.32)"]
+extended-testing = ["atlassian-python-api (>=3.36.0,<4.0.0)", "beautifulsoup4 (>=4,<5)", "bibtexparser (>=1.4.0,<2.0.0)", "cassio (>=0.0.7,<0.0.8)", "chardet (>=5.1.0,<6.0.0)", "esprima (>=4.0.1,<5.0.0)", "geopandas (>=0.13.1,<0.14.0)", "gql (>=3.4.1,<4.0.0)", "html2text (>=2020.1.16,<2021.0.0)", "jinja2 (>=3,<4)", "jq (>=1.4.1,<2.0.0)", "lxml (>=4.9.2,<5.0.0)", "mwparserfromhell (>=0.6.4,<0.7.0)", "mwxml (>=0.3.3,<0.4.0)", "openai (>=0,<1)", "openai (>=0,<1)", "pandas (>=2.0.1,<3.0.0)", "pdfminer-six (>=20221105,<20221106)", "pgvector (>=0.1.6,<0.2.0)", "psychicapi (>=0.8.0,<0.9.0)", "py-trello (>=0.19.0,<0.20.0)", "pymupdf (>=1.22.3,<2.0.0)", "pypdf (>=3.4.0,<4.0.0)", "pypdfium2 (>=4.10.0,<5.0.0)", "pyspark (>=3.4.0,<4.0.0)", "rank-bm25 (>=0.2.2,<0.3.0)", "rapidfuzz (>=3.1.1,<4.0.0)", "requests-toolbelt (>=1.0.0,<2.0.0)", "scikit-learn (>=1.2.2,<2.0.0)", "streamlit (>=1.18.0,<2.0.0)", "sympy (>=1.12,<2.0)", "telethon (>=1.28.5,<2.0.0)", "tqdm (>=4.48.0)", "zep-python (>=0.32)"]
javascript = ["esprima (>=4.0.1,<5.0.0)"]
llms = ["anthropic (>=0.3,<0.4)", "clarifai (>=9.1.0)", "cohere (>=3,<4)", "huggingface_hub (>=0,<1)", "manifest-ml (>=0.0.1,<0.0.2)", "nlpcloud (>=1,<2)", "openai (>=0,<1)", "openllm (>=0.1.19)", "openlm (>=0.0.5,<0.0.6)", "torch (>=1,<3)", "transformers (>=4,<5)"]
openai = ["openai (>=0,<1)", "tiktoken (>=0.3.2,<0.4.0)"]
@@ -1743,7 +1672,6 @@ url = "libs/langchain"
name = "langsmith"
version = "0.0.12"
description = "Client library to connect to the LangSmith LLM Tracing and Evaluation Platform."
-category = "dev"
optional = false
python-versions = ">=3.8.1,<4.0"
files = [
@@ -1759,7 +1687,6 @@ requests = ">=2,<3"
name = "linkchecker"
version = "10.2.1"
description = "check links in web documents or full websites"
-category = "dev"
optional = false
python-versions = ">=3.7"
files = [
@@ -1776,7 +1703,6 @@ requests = ">=2.20"
name = "livereload"
version = "2.6.3"
description = "Python LiveReload is an awesome tool for web developers"
-category = "dev"
optional = false
python-versions = "*"
files = [
@@ -1792,7 +1718,6 @@ tornado = {version = "*", markers = "python_version > \"2.7\""}
name = "markdown-it-py"
version = "2.2.0"
description = "Python port of markdown-it. Markdown parsing, done right!"
-category = "dev"
optional = false
python-versions = ">=3.7"
files = [
@@ -1817,7 +1742,6 @@ testing = ["coverage", "pytest", "pytest-cov", "pytest-regressions"]
name = "markupsafe"
version = "2.1.3"
description = "Safely add untrusted strings to HTML/XML markup."
-category = "dev"
optional = false
python-versions = ">=3.7"
files = [
@@ -1877,7 +1801,6 @@ files = [
name = "marshmallow"
version = "3.20.1"
description = "A lightweight library for converting complex datatypes to and from native Python datatypes."
-category = "dev"
optional = false
python-versions = ">=3.8"
files = [
@@ -1898,7 +1821,6 @@ tests = ["pytest", "pytz", "simplejson"]
name = "marshmallow-enum"
version = "1.5.1"
description = "Enum field for Marshmallow"
-category = "dev"
optional = false
python-versions = "*"
files = [
@@ -1913,7 +1835,6 @@ marshmallow = ">=2.0.0"
name = "matplotlib-inline"
version = "0.1.6"
description = "Inline Matplotlib backend for Jupyter"
-category = "dev"
optional = false
python-versions = ">=3.5"
files = [
@@ -1928,7 +1849,6 @@ traitlets = "*"
name = "mdit-py-plugins"
version = "0.3.5"
description = "Collection of plugins for markdown-it-py"
-category = "dev"
optional = false
python-versions = ">=3.7"
files = [
@@ -1948,7 +1868,6 @@ testing = ["coverage", "pytest", "pytest-cov", "pytest-regressions"]
name = "mdurl"
version = "0.1.2"
description = "Markdown URL utilities"
-category = "dev"
optional = false
python-versions = ">=3.7"
files = [
@@ -1960,7 +1879,6 @@ files = [
name = "mistune"
version = "3.0.1"
description = "A sane and fast Markdown parser with useful plugins and renderers"
-category = "dev"
optional = false
python-versions = ">=3.7"
files = [
@@ -1972,7 +1890,6 @@ files = [
name = "multidict"
version = "6.0.4"
description = "multidict implementation"
-category = "dev"
optional = false
python-versions = ">=3.7"
files = [
@@ -2056,7 +1973,6 @@ files = [
name = "mypy-extensions"
version = "1.0.0"
description = "Type system extensions for programs checked with the mypy type checker."
-category = "dev"
optional = false
python-versions = ">=3.5"
files = [
@@ -2068,7 +1984,6 @@ files = [
name = "myst-nb"
version = "0.17.2"
description = "A Jupyter Notebook Sphinx reader built on top of the MyST markdown parser."
-category = "dev"
optional = false
python-versions = ">=3.7"
files = [
@@ -2097,7 +2012,6 @@ testing = ["beautifulsoup4", "coverage (>=6.4,<8.0)", "ipykernel (>=5.5,<6.0)",
name = "myst-parser"
version = "0.18.1"
description = "An extended commonmark compliant parser, with bridges to docutils & sphinx."
-category = "dev"
optional = false
python-versions = ">=3.7"
files = [
@@ -2124,7 +2038,6 @@ testing = ["beautifulsoup4", "coverage[toml]", "pytest (>=6,<7)", "pytest-cov",
name = "nbclient"
version = "0.7.4"
description = "A client library for executing notebooks. Formerly nbconvert's ExecutePreprocessor."
-category = "dev"
optional = false
python-versions = ">=3.7.0"
files = [
@@ -2134,7 +2047,7 @@ files = [
[package.dependencies]
jupyter-client = ">=6.1.12"
-jupyter-core = ">=4.12,<5.0.0 || >=5.1.0"
+jupyter-core = ">=4.12,<5.0.dev0 || >=5.1.dev0"
nbformat = ">=5.1"
traitlets = ">=5.3"
@@ -2147,7 +2060,6 @@ test = ["flaky", "ipykernel", "ipython", "ipywidgets", "nbconvert (>=7.0.0)", "p
name = "nbconvert"
version = "7.7.2"
description = "Converting Jupyter Notebooks"
-category = "dev"
optional = false
python-versions = ">=3.8"
files = [
@@ -2186,7 +2098,6 @@ webpdf = ["playwright"]
name = "nbdev"
version = "1.2.0"
description = "Writing a library entirely in notebooks"
-category = "dev"
optional = false
python-versions = ">=3.6"
files = [
@@ -2211,7 +2122,6 @@ pyyaml = "*"
name = "nbdoc"
version = "0.0.82"
description = "Generate beautiful, testable documentation with Jupyter Notebooks"
-category = "dev"
optional = false
python-versions = ">=3.8"
files = [
@@ -2232,7 +2142,6 @@ pip = "*"
name = "nbformat"
version = "5.9.1"
description = "The Jupyter Notebook format"
-category = "dev"
optional = false
python-versions = ">=3.8"
files = [
@@ -2254,7 +2163,6 @@ test = ["pep440", "pre-commit", "pytest", "testpath"]
name = "nbsphinx"
version = "0.8.12"
description = "Jupyter Notebook Tools for Sphinx"
-category = "dev"
optional = false
python-versions = ">=3.6"
files = [
@@ -2274,7 +2182,6 @@ traitlets = ">=5"
name = "nest-asyncio"
version = "1.5.6"
description = "Patch asyncio to allow nested event loops"
-category = "dev"
optional = false
python-versions = ">=3.5"
files = [
@@ -2286,7 +2193,6 @@ files = [
name = "notebook"
version = "7.0.0"
description = "Jupyter Notebook - A web-based notebook environment for interactive computing"
-category = "dev"
optional = false
python-versions = ">=3.8"
files = [
@@ -2311,7 +2217,6 @@ test = ["ipykernel", "jupyter-server[test] (>=2.4.0,<3)", "jupyterlab-server[tes
name = "notebook-shim"
version = "0.2.3"
description = "A shim layer for notebook traits and config"
-category = "dev"
optional = false
python-versions = ">=3.7"
files = [
@@ -2329,7 +2234,6 @@ test = ["pytest", "pytest-console-scripts", "pytest-jupyter", "pytest-tornasync"
name = "numexpr"
version = "2.8.4"
description = "Fast numerical expression evaluator for NumPy"
-category = "dev"
optional = false
python-versions = ">=3.7"
files = [
@@ -2372,7 +2276,6 @@ numpy = ">=1.13.3"
name = "numpy"
version = "1.24.4"
description = "Fundamental package for array computing in Python"
-category = "dev"
optional = false
python-versions = ">=3.8"
files = [
@@ -2410,7 +2313,6 @@ files = [
name = "numpydoc"
version = "1.2"
description = "Sphinx extension to support docstrings in Numpy format"
-category = "dev"
optional = false
python-versions = ">=3.7"
files = [
@@ -2429,7 +2331,6 @@ testing = ["matplotlib", "pytest", "pytest-cov"]
name = "openapi-schema-pydantic"
version = "1.2.4"
description = "OpenAPI (v3) specification schema as pydantic class"
-category = "dev"
optional = false
python-versions = ">=3.6.1"
files = [
@@ -2444,7 +2345,6 @@ pydantic = ">=1.8.2"
name = "overrides"
version = "7.3.1"
description = "A decorator to automatically detect mismatch when overriding a method."
-category = "dev"
optional = false
python-versions = ">=3.6"
files = [
@@ -2456,7 +2356,6 @@ files = [
name = "packaging"
version = "23.1"
description = "Core utilities for Python packages"
-category = "dev"
optional = false
python-versions = ">=3.7"
files = [
@@ -2468,7 +2367,6 @@ files = [
name = "pandocfilters"
version = "1.5.0"
description = "Utilities for writing pandoc filters in python"
-category = "dev"
optional = false
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
files = [
@@ -2480,7 +2378,6 @@ files = [
name = "parso"
version = "0.8.3"
description = "A Python Parser"
-category = "dev"
optional = false
python-versions = ">=3.6"
files = [
@@ -2496,7 +2393,6 @@ testing = ["docopt", "pytest (<6.0.0)"]
name = "pathspec"
version = "0.11.1"
description = "Utility library for gitignore style pattern matching of file paths."
-category = "dev"
optional = false
python-versions = ">=3.7"
files = [
@@ -2508,7 +2404,6 @@ files = [
name = "pexpect"
version = "4.8.0"
description = "Pexpect allows easy control of interactive console applications."
-category = "dev"
optional = false
python-versions = "*"
files = [
@@ -2523,7 +2418,6 @@ ptyprocess = ">=0.5"
name = "pickleshare"
version = "0.7.5"
description = "Tiny 'shelve'-like database with concurrency support"
-category = "dev"
optional = false
python-versions = "*"
files = [
@@ -2535,7 +2429,6 @@ files = [
name = "pip"
version = "23.2"
description = "The PyPA recommended tool for installing Python packages."
-category = "dev"
optional = false
python-versions = ">=3.7"
files = [
@@ -2547,7 +2440,6 @@ files = [
name = "pkgutil-resolve-name"
version = "1.3.10"
description = "Resolve a name to an object."
-category = "dev"
optional = false
python-versions = ">=3.6"
files = [
@@ -2559,7 +2451,6 @@ files = [
name = "platformdirs"
version = "3.9.1"
description = "A small Python package for determining appropriate platform-specific dirs, e.g. a \"user data dir\"."
-category = "dev"
optional = false
python-versions = ">=3.7"
files = [
@@ -2575,7 +2466,6 @@ test = ["appdirs (==1.4.4)", "covdefaults (>=2.3)", "pytest (>=7.3.1)", "pytest-
name = "prometheus-client"
version = "0.17.1"
description = "Python client for the Prometheus monitoring system."
-category = "dev"
optional = false
python-versions = ">=3.6"
files = [
@@ -2590,7 +2480,6 @@ twisted = ["twisted"]
name = "prompt-toolkit"
version = "3.0.39"
description = "Library for building powerful interactive command lines in Python"
-category = "dev"
optional = false
python-versions = ">=3.7.0"
files = [
@@ -2605,7 +2494,6 @@ wcwidth = "*"
name = "psutil"
version = "5.9.5"
description = "Cross-platform lib for process and system monitoring in Python."
-category = "dev"
optional = false
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
files = [
@@ -2632,7 +2520,6 @@ test = ["enum34", "ipaddress", "mock", "pywin32", "wmi"]
name = "ptyprocess"
version = "0.7.0"
description = "Run a subprocess in a pseudo terminal"
-category = "dev"
optional = false
python-versions = "*"
files = [
@@ -2644,7 +2531,6 @@ files = [
name = "pure-eval"
version = "0.2.2"
description = "Safely evaluate AST nodes without side effects"
-category = "dev"
optional = false
python-versions = "*"
files = [
@@ -2659,7 +2545,6 @@ tests = ["pytest"]
name = "pycparser"
version = "2.21"
description = "C parser in Python"
-category = "dev"
optional = false
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
files = [
@@ -2671,7 +2556,6 @@ files = [
name = "pydantic"
version = "1.10.11"
description = "Data validation and settings management using python type hints"
-category = "dev"
optional = false
python-versions = ">=3.7"
files = [
@@ -2724,7 +2608,6 @@ email = ["email-validator (>=1.0.3)"]
name = "pydata-sphinx-theme"
version = "0.8.1"
description = "Bootstrap-based Sphinx theme from the PyData community"
-category = "dev"
optional = false
python-versions = ">=3.7"
files = [
@@ -2748,7 +2631,6 @@ test = ["pydata-sphinx-theme[doc]", "pytest"]
name = "pygments"
version = "2.15.1"
description = "Pygments is a syntax highlighting package written in Python."
-category = "dev"
optional = false
python-versions = ">=3.7"
files = [
@@ -2763,7 +2645,6 @@ plugins = ["importlib-metadata"]
name = "python-dateutil"
version = "2.8.2"
description = "Extensions to the standard Python datetime module"
-category = "dev"
optional = false
python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,>=2.7"
files = [
@@ -2778,7 +2659,6 @@ six = ">=1.5"
name = "python-json-logger"
version = "2.0.7"
description = "A python library adding a json log formatter"
-category = "dev"
optional = false
python-versions = ">=3.6"
files = [
@@ -2790,7 +2670,6 @@ files = [
name = "pytz"
version = "2023.3"
description = "World timezone definitions, modern and historical"
-category = "dev"
optional = false
python-versions = "*"
files = [
@@ -2802,7 +2681,6 @@ files = [
name = "pywin32"
version = "306"
description = "Python for Window Extensions"
-category = "dev"
optional = false
python-versions = "*"
files = [
@@ -2826,7 +2704,6 @@ files = [
name = "pywinpty"
version = "2.0.11"
description = "Pseudo terminal support for Windows from Python."
-category = "dev"
optional = false
python-versions = ">=3.8"
files = [
@@ -2841,7 +2718,6 @@ files = [
name = "pyyaml"
version = "6.0.1"
description = "YAML parser and emitter for Python"
-category = "dev"
optional = false
python-versions = ">=3.6"
files = [
@@ -2891,7 +2767,6 @@ files = [
name = "pyzmq"
version = "25.1.0"
description = "Python bindings for 0MQ"
-category = "dev"
optional = false
python-versions = ">=3.6"
files = [
@@ -2981,7 +2856,6 @@ cffi = {version = "*", markers = "implementation_name == \"pypy\""}
name = "qtconsole"
version = "5.4.3"
description = "Jupyter Qt console"
-category = "dev"
optional = false
python-versions = ">= 3.7"
files = [
@@ -3008,7 +2882,6 @@ test = ["flaky", "pytest", "pytest-qt"]
name = "qtpy"
version = "2.3.1"
description = "Provides an abstraction layer on top of the various Qt bindings (PyQt5/6 and PySide2/6)."
-category = "dev"
optional = false
python-versions = ">=3.7"
files = [
@@ -3026,7 +2899,6 @@ test = ["pytest (>=6,!=7.0.0,!=7.0.1)", "pytest-cov (>=3.0.0)", "pytest-qt"]
name = "referencing"
version = "0.30.0"
description = "JSON Referencing + Python"
-category = "dev"
optional = false
python-versions = ">=3.8"
files = [
@@ -3042,7 +2914,6 @@ rpds-py = ">=0.7.0"
name = "requests"
version = "2.31.0"
description = "Python HTTP for Humans."
-category = "dev"
optional = false
python-versions = ">=3.7"
files = [
@@ -3064,7 +2935,6 @@ use-chardet-on-py3 = ["chardet (>=3.0.2,<6)"]
name = "rfc3339-validator"
version = "0.1.4"
description = "A pure python RFC3339 validator"
-category = "dev"
optional = false
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
files = [
@@ -3079,7 +2949,6 @@ six = "*"
name = "rfc3986-validator"
version = "0.1.1"
description = "Pure python rfc3986 validator"
-category = "dev"
optional = false
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
files = [
@@ -3091,7 +2960,6 @@ files = [
name = "rpds-py"
version = "0.9.2"
description = "Python bindings to Rust's persistent data structures (rpds)"
-category = "dev"
optional = false
python-versions = ">=3.8"
files = [
@@ -3198,7 +3066,6 @@ files = [
name = "send2trash"
version = "1.8.2"
description = "Send file to trash natively under Mac OS X, Windows and Linux"
-category = "dev"
optional = false
python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,>=2.7"
files = [
@@ -3215,7 +3082,6 @@ win32 = ["pywin32"]
name = "six"
version = "1.16.0"
description = "Python 2 and 3 compatibility utilities"
-category = "dev"
optional = false
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*"
files = [
@@ -3227,7 +3093,6 @@ files = [
name = "sniffio"
version = "1.3.0"
description = "Sniff out which async library your code is running under"
-category = "dev"
optional = false
python-versions = ">=3.7"
files = [
@@ -3239,7 +3104,6 @@ files = [
name = "snowballstemmer"
version = "2.2.0"
description = "This package provides 29 stemmers for 28 languages generated from Snowball algorithms."
-category = "dev"
optional = false
python-versions = "*"
files = [
@@ -3251,7 +3115,6 @@ files = [
name = "soupsieve"
version = "2.4.1"
description = "A modern CSS selector implementation for Beautiful Soup."
-category = "dev"
optional = false
python-versions = ">=3.7"
files = [
@@ -3263,7 +3126,6 @@ files = [
name = "sphinx"
version = "4.5.0"
description = "Python documentation generator"
-category = "dev"
optional = false
python-versions = ">=3.6"
files = [
@@ -3299,7 +3161,6 @@ test = ["cython", "html5lib", "pytest", "pytest-cov", "typed-ast"]
name = "sphinx-autobuild"
version = "2021.3.14"
description = "Rebuild Sphinx documentation on changes, with live-reload in the browser."
-category = "dev"
optional = false
python-versions = ">=3.6"
files = [
@@ -3319,7 +3180,6 @@ test = ["pytest", "pytest-cov"]
name = "sphinx-book-theme"
version = "0.3.3"
description = "A clean book theme for scientific explanations and documentation with Sphinx"
-category = "dev"
optional = false
python-versions = ">=3.7"
files = [
@@ -3341,7 +3201,6 @@ test = ["beautifulsoup4 (>=4.6.1,<5)", "coverage", "myst-nb (>=0.13.2,<0.14.0)",
name = "sphinx-copybutton"
version = "0.5.2"
description = "Add a copy button to each of your code cells."
-category = "dev"
optional = false
python-versions = ">=3.7"
files = [
@@ -3360,7 +3219,6 @@ rtd = ["ipython", "myst-nb", "sphinx", "sphinx-book-theme", "sphinx-examples"]
name = "sphinx-panels"
version = "0.6.0"
description = "A sphinx extension for creating panels in a grid layout."
-category = "dev"
optional = false
python-versions = "*"
files = [
@@ -3382,7 +3240,6 @@ themes = ["myst-parser (>=0.12.9,<0.13.0)", "pydata-sphinx-theme (>=0.4.0,<0.5.0
name = "sphinx-rtd-theme"
version = "1.2.2"
description = "Read the Docs theme for Sphinx"
-category = "dev"
optional = false
python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,>=2.7"
files = [
@@ -3402,7 +3259,6 @@ dev = ["bump2version", "sphinxcontrib-httpdomain", "transifex-client", "wheel"]
name = "sphinx-typlog-theme"
version = "0.8.0"
description = "A typlog Sphinx theme"
-category = "dev"
optional = false
python-versions = "*"
files = [
@@ -3417,7 +3273,6 @@ dev = ["livereload", "sphinx"]
name = "sphinxcontrib-applehelp"
version = "1.0.4"
description = "sphinxcontrib-applehelp is a Sphinx extension which outputs Apple help books"
-category = "dev"
optional = false
python-versions = ">=3.8"
files = [
@@ -3433,7 +3288,6 @@ test = ["pytest"]
name = "sphinxcontrib-devhelp"
version = "1.0.2"
description = "sphinxcontrib-devhelp is a sphinx extension which outputs Devhelp document."
-category = "dev"
optional = false
python-versions = ">=3.5"
files = [
@@ -3449,7 +3303,6 @@ test = ["pytest"]
name = "sphinxcontrib-htmlhelp"
version = "2.0.1"
description = "sphinxcontrib-htmlhelp is a sphinx extension which renders HTML help files"
-category = "dev"
optional = false
python-versions = ">=3.8"
files = [
@@ -3465,7 +3318,6 @@ test = ["html5lib", "pytest"]
name = "sphinxcontrib-jquery"
version = "4.1"
description = "Extension to include jQuery on newer Sphinx releases"
-category = "dev"
optional = false
python-versions = ">=2.7"
files = [
@@ -3480,7 +3332,6 @@ Sphinx = ">=1.8"
name = "sphinxcontrib-jsmath"
version = "1.0.1"
description = "A sphinx extension which renders display math in HTML via JavaScript"
-category = "dev"
optional = false
python-versions = ">=3.5"
files = [
@@ -3495,7 +3346,6 @@ test = ["flake8", "mypy", "pytest"]
name = "sphinxcontrib-qthelp"
version = "1.0.3"
description = "sphinxcontrib-qthelp is a sphinx extension which outputs QtHelp document."
-category = "dev"
optional = false
python-versions = ">=3.5"
files = [
@@ -3511,7 +3361,6 @@ test = ["pytest"]
name = "sphinxcontrib-serializinghtml"
version = "1.1.5"
description = "sphinxcontrib-serializinghtml is a sphinx extension which outputs \"serialized\" HTML files (json and pickle)."
-category = "dev"
optional = false
python-versions = ">=3.5"
files = [
@@ -3527,7 +3376,6 @@ test = ["pytest"]
name = "sqlalchemy"
version = "2.0.19"
description = "Database Abstraction Library"
-category = "dev"
optional = false
python-versions = ">=3.7"
files = [
@@ -3575,7 +3423,7 @@ files = [
]
[package.dependencies]
-greenlet = {version = "!=0.4.17", markers = "platform_machine == \"aarch64\" or platform_machine == \"ppc64le\" or platform_machine == \"x86_64\" or platform_machine == \"amd64\" or platform_machine == \"AMD64\" or platform_machine == \"win32\" or platform_machine == \"WIN32\""}
+greenlet = {version = "!=0.4.17", markers = "platform_machine == \"win32\" or platform_machine == \"WIN32\" or platform_machine == \"AMD64\" or platform_machine == \"amd64\" or platform_machine == \"x86_64\" or platform_machine == \"ppc64le\" or platform_machine == \"aarch64\""}
typing-extensions = ">=4.2.0"
[package.extras]
@@ -3606,7 +3454,6 @@ sqlcipher = ["sqlcipher3-binary"]
name = "stack-data"
version = "0.6.2"
description = "Extract data from python stack frames and tracebacks for informative displays"
-category = "dev"
optional = false
python-versions = "*"
files = [
@@ -3626,7 +3473,6 @@ tests = ["cython", "littleutils", "pygments", "pytest", "typeguard"]
name = "tabulate"
version = "0.9.0"
description = "Pretty-print tabular data"
-category = "dev"
optional = false
python-versions = ">=3.7"
files = [
@@ -3641,7 +3487,6 @@ widechars = ["wcwidth"]
name = "tenacity"
version = "8.2.2"
description = "Retry code until it succeeds"
-category = "dev"
optional = false
python-versions = ">=3.6"
files = [
@@ -3656,7 +3501,6 @@ doc = ["reno", "sphinx", "tornado (>=4.5)"]
name = "terminado"
version = "0.17.1"
description = "Tornado websocket backend for the Xterm.js Javascript terminal emulator library."
-category = "dev"
optional = false
python-versions = ">=3.7"
files = [
@@ -3677,7 +3521,6 @@ test = ["pre-commit", "pytest (>=7.0)", "pytest-timeout"]
name = "tinycss2"
version = "1.2.1"
description = "A tiny CSS parser"
-category = "dev"
optional = false
python-versions = ">=3.7"
files = [
@@ -3696,7 +3539,6 @@ test = ["flake8", "isort", "pytest"]
name = "tokenize-rt"
version = "5.1.0"
description = "A wrapper around the stdlib `tokenize` which roundtrips."
-category = "dev"
optional = false
python-versions = ">=3.8"
files = [
@@ -3708,7 +3550,6 @@ files = [
name = "toml"
version = "0.10.2"
description = "Python Library for Tom's Obvious, Minimal Language"
-category = "dev"
optional = false
python-versions = ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*"
files = [
@@ -3720,7 +3561,6 @@ files = [
name = "tomli"
version = "2.0.1"
description = "A lil' TOML parser"
-category = "dev"
optional = false
python-versions = ">=3.7"
files = [
@@ -3732,7 +3572,6 @@ files = [
name = "tornado"
version = "6.3.2"
description = "Tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed."
-category = "dev"
optional = false
python-versions = ">= 3.8"
files = [
@@ -3753,7 +3592,6 @@ files = [
name = "traitlets"
version = "5.9.0"
description = "Traitlets Python configuration system"
-category = "dev"
optional = false
python-versions = ">=3.7"
files = [
@@ -3769,7 +3607,6 @@ test = ["argcomplete (>=2.0)", "pre-commit", "pytest", "pytest-mock"]
name = "typing-extensions"
version = "4.7.1"
description = "Backported and Experimental Type Hints for Python 3.7+"
-category = "dev"
optional = false
python-versions = ">=3.7"
files = [
@@ -3781,7 +3618,6 @@ files = [
name = "typing-inspect"
version = "0.9.0"
description = "Runtime inspection utilities for typing module."
-category = "dev"
optional = false
python-versions = "*"
files = [
@@ -3797,7 +3633,6 @@ typing-extensions = ">=3.7.4"
name = "uri-template"
version = "1.3.0"
description = "RFC 6570 URI Template Processor"
-category = "dev"
optional = false
python-versions = ">=3.7"
files = [
@@ -3812,7 +3647,6 @@ dev = ["flake8", "flake8-annotations", "flake8-bandit", "flake8-bugbear", "flake
name = "urllib3"
version = "2.0.4"
description = "HTTP library with thread-safe connection pooling, file post, and more."
-category = "dev"
optional = false
python-versions = ">=3.7"
files = [
@@ -3830,7 +3664,6 @@ zstd = ["zstandard (>=0.18.0)"]
name = "wcwidth"
version = "0.2.6"
description = "Measures the displayed width of unicode strings in a terminal"
-category = "dev"
optional = false
python-versions = "*"
files = [
@@ -3842,7 +3675,6 @@ files = [
name = "webcolors"
version = "1.13"
description = "A library for working with the color formats defined by HTML and CSS."
-category = "dev"
optional = false
python-versions = ">=3.7"
files = [
@@ -3858,7 +3690,6 @@ tests = ["pytest", "pytest-cov"]
name = "webencodings"
version = "0.5.1"
description = "Character encoding aliases for legacy web content"
-category = "dev"
optional = false
python-versions = "*"
files = [
@@ -3870,7 +3701,6 @@ files = [
name = "websocket-client"
version = "1.6.1"
description = "WebSocket client for Python with low level API options"
-category = "dev"
optional = false
python-versions = ">=3.7"
files = [
@@ -3887,7 +3717,6 @@ test = ["websockets"]
name = "widgetsnbextension"
version = "4.0.8"
description = "Jupyter interactive widgets for Jupyter Notebook"
-category = "dev"
optional = false
python-versions = ">=3.7"
files = [
@@ -3899,7 +3728,6 @@ files = [
name = "yarl"
version = "1.9.2"
description = "Yet another URL library"
-category = "dev"
optional = false
python-versions = ">=3.7"
files = [
@@ -3987,7 +3815,6 @@ multidict = ">=4.0"
name = "zipp"
version = "3.16.2"
description = "Backport of pathlib-compatible object wrapper for zip files"
-category = "dev"
optional = false
python-versions = ">=3.8"
files = [
@@ -4002,4 +3829,4 @@ testing = ["big-O", "jaraco.functools", "jaraco.itertools", "more-itertools", "p
[metadata]
lock-version = "2.0"
python-versions = ">=3.8.1,<4.0"
-content-hash = "afbe7548ba6b303cc88af7ce33db1d7075b09b98299e2475b2336ed451971877"
+content-hash = "eeeb245db6de8d353cbfc59842821a31f6759344834b116df27f3b517ef55d32"