diff --git a/libs/langchain/langchain/cache.py b/libs/langchain/langchain/cache.py index 4364c33e1a..32eb310d44 100644 --- a/libs/langchain/langchain/cache.py +++ b/libs/langchain/langchain/cache.py @@ -27,6 +27,7 @@ import json import logging import warnings from datetime import timedelta +from functools import lru_cache from typing import ( TYPE_CHECKING, Any, @@ -51,6 +52,7 @@ except ImportError: from langchain.embeddings.base import Embeddings +from langchain.llms.base import LLM, get_prompts from langchain.load.dump import dumps from langchain.load.load import loads from langchain.schema import ChatGeneration, Generation @@ -62,6 +64,7 @@ logger = logging.getLogger(__file__) if TYPE_CHECKING: import momento + from cassandra.cluster import Session as CassandraSession def _hash(_input: str) -> str: @@ -711,3 +714,264 @@ class MomentoCache(BaseCache): pass elif isinstance(flush_response, CacheFlush.Error): raise flush_response.inner_exception + + +CASSANDRA_CACHE_DEFAULT_TABLE_NAME = "langchain_llm_cache" +CASSANDRA_CACHE_DEFAULT_TTL_SECONDS = None + + +class CassandraCache(BaseCache): + """ + Cache that uses Cassandra / Astra DB as a backend. + + It uses a single Cassandra table. + The lookup keys (which get to form the primary key) are: + - prompt, a string + - llm_string, a deterministic str representation of the model parameters. + (needed to prevent collisions same-prompt-different-model collisions) + """ + + def __init__( + self, + session: CassandraSession, + keyspace: str, + table_name: str = CASSANDRA_CACHE_DEFAULT_TABLE_NAME, + ttl_seconds: Optional[int] = CASSANDRA_CACHE_DEFAULT_TTL_SECONDS, + ): + """ + Initialize with a ready session and a keyspace name. + Args: + session (cassandra.cluster.Session): an open Cassandra session + keyspace (str): the keyspace to use for storing the cache + table_name (str): name of the Cassandra table to use as cache + ttl_seconds (optional int): time-to-live for cache entries + (default: None, i.e. forever) + """ + try: + from cassio.table import ElasticCassandraTable + except (ImportError, ModuleNotFoundError): + raise ValueError( + "Could not import cassio python package. " + "Please install it with `pip install cassio`." + ) + + self.session = session + self.keyspace = keyspace + self.table_name = table_name + self.ttl_seconds = ttl_seconds + + self.kv_cache = ElasticCassandraTable( + session=self.session, + keyspace=self.keyspace, + table=self.table_name, + keys=["llm_string", "prompt"], + primary_key_type=["TEXT", "TEXT"], + ttl_seconds=self.ttl_seconds, + ) + + def lookup(self, prompt: str, llm_string: str) -> Optional[RETURN_VAL_TYPE]: + """Look up based on prompt and llm_string.""" + item = self.kv_cache.get( + llm_string=_hash(llm_string), + prompt=_hash(prompt), + ) + if item: + return _load_generations_from_json(item["body_blob"]) + else: + return None + + def update(self, prompt: str, llm_string: str, return_val: RETURN_VAL_TYPE) -> None: + """Update cache based on prompt and llm_string.""" + blob = _dump_generations_to_json(return_val) + self.kv_cache.put( + llm_string=_hash(llm_string), + prompt=_hash(prompt), + body_blob=blob, + ) + + def delete_through_llm( + self, prompt: str, llm: LLM, stop: Optional[List[str]] = None + ) -> None: + """ + A wrapper around `delete` with the LLM being passed. + In case the llm(prompt) calls have a `stop` param, you should pass it here + """ + llm_string = get_prompts( + {**llm.dict(), **{"stop": stop}}, + [], + )[1] + return self.delete(prompt, llm_string=llm_string) + + def delete(self, prompt: str, llm_string: str) -> None: + """Evict from cache if there's an entry.""" + return self.kv_cache.delete( + llm_string=_hash(llm_string), + prompt=_hash(prompt), + ) + + def clear(self, **kwargs: Any) -> None: + """Clear cache. This is for all LLMs at once.""" + self.kv_cache.clear() + + +CASSANDRA_SEMANTIC_CACHE_DEFAULT_DISTANCE_METRIC = "dot" +CASSANDRA_SEMANTIC_CACHE_DEFAULT_SCORE_THRESHOLD = 0.85 +CASSANDRA_SEMANTIC_CACHE_DEFAULT_TABLE_NAME = "langchain_llm_semantic_cache" +CASSANDRA_SEMANTIC_CACHE_DEFAULT_TTL_SECONDS = None +CASSANDRA_SEMANTIC_CACHE_EMBEDDING_CACHE_SIZE = 16 + + +class CassandraSemanticCache(BaseCache): + """ + Cache that uses Cassandra as a vector-store backend for semantic + (i.e. similarity-based) lookup. + + It uses a single (vector) Cassandra table and stores, in principle, + cached values from several LLMs, so the LLM's llm_string is part + of the rows' primary keys. + + The similarity is based on one of several distance metrics (default: "dot"). + If choosing another metric, the default threshold is to be re-tuned accordingly. + """ + + def __init__( + self, + session: CassandraSession, + keyspace: str, + embedding: Embeddings, + table_name: str = CASSANDRA_SEMANTIC_CACHE_DEFAULT_TABLE_NAME, + distance_metric: str = CASSANDRA_SEMANTIC_CACHE_DEFAULT_DISTANCE_METRIC, + score_threshold: float = CASSANDRA_SEMANTIC_CACHE_DEFAULT_SCORE_THRESHOLD, + ttl_seconds: Optional[int] = CASSANDRA_SEMANTIC_CACHE_DEFAULT_TTL_SECONDS, + ): + """ + Initialize the cache with all relevant parameters. + Args: + session (cassandra.cluster.Session): an open Cassandra session + keyspace (str): the keyspace to use for storing the cache + embedding (Embedding): Embedding provider for semantic + encoding and search. + table_name (str): name of the Cassandra (vector) table + to use as cache + distance_metric (str, 'dot'): which measure to adopt for + similarity searches + score_threshold (optional float): numeric value to use as + cutoff for the similarity searches + ttl_seconds (optional int): time-to-live for cache entries + (default: None, i.e. forever) + The default score threshold is tuned to the default metric. + Tune it carefully yourself if switching to another distance metric. + """ + try: + from cassio.table import MetadataVectorCassandraTable + except (ImportError, ModuleNotFoundError): + raise ValueError( + "Could not import cassio python package. " + "Please install it with `pip install cassio`." + ) + self.session = session + self.keyspace = keyspace + self.embedding = embedding + self.table_name = table_name + self.distance_metric = distance_metric + self.score_threshold = score_threshold + self.ttl_seconds = ttl_seconds + + # The contract for this class has separate lookup and update: + # in order to spare some embedding calculations we cache them between + # the two calls. + # Note: each instance of this class has its own `_get_embedding` with + # its own lru. + @lru_cache(maxsize=CASSANDRA_SEMANTIC_CACHE_EMBEDDING_CACHE_SIZE) + def _cache_embedding(text: str) -> List[float]: + return self.embedding.embed_query(text=text) + + self._get_embedding = _cache_embedding + self.embedding_dimension = self._get_embedding_dimension() + + self.table = MetadataVectorCassandraTable( + session=self.session, + keyspace=self.keyspace, + table=self.table_name, + primary_key_type=["TEXT"], + vector_dimension=self.embedding_dimension, + ttl_seconds=self.ttl_seconds, + metadata_indexing=("allow", {"_llm_string_hash"}), + ) + + def _get_embedding_dimension(self) -> int: + return len(self._get_embedding(text="This is a sample sentence.")) + + def update(self, prompt: str, llm_string: str, return_val: RETURN_VAL_TYPE) -> None: + """Update cache based on prompt and llm_string.""" + embedding_vector = self._get_embedding(text=prompt) + llm_string_hash = _hash(llm_string) + body = _dump_generations_to_json(return_val) + metadata = { + "_prompt": prompt, + "_llm_string_hash": llm_string_hash, + } + row_id = f"{_hash(prompt)}-{llm_string_hash}" + # + self.table.put( + body_blob=body, + vector=embedding_vector, + row_id=row_id, + metadata=metadata, + ) + + def lookup(self, prompt: str, llm_string: str) -> Optional[RETURN_VAL_TYPE]: + """Look up based on prompt and llm_string.""" + hit_with_id = self.lookup_with_id(prompt, llm_string) + if hit_with_id is not None: + return hit_with_id[1] + else: + return None + + def lookup_with_id( + self, prompt: str, llm_string: str + ) -> Optional[Tuple[str, RETURN_VAL_TYPE]]: + """ + Look up based on prompt and llm_string. + If there are hits, return (document_id, cached_entry) + """ + prompt_embedding: List[float] = self._get_embedding(text=prompt) + hits = list( + self.table.metric_ann_search( + vector=prompt_embedding, + metadata={"_llm_string_hash": _hash(llm_string)}, + n=1, + metric=self.distance_metric, + metric_threshold=self.score_threshold, + ) + ) + if hits: + hit = hits[0] + generations_str = hit["body_blob"] + return ( + hit["row_id"], + _load_generations_from_json(generations_str), + ) + else: + return None + + def lookup_with_id_through_llm( + self, prompt: str, llm: LLM, stop: Optional[List[str]] = None + ) -> Optional[Tuple[str, RETURN_VAL_TYPE]]: + llm_string = get_prompts( + {**llm.dict(), **{"stop": stop}}, + [], + )[1] + return self.lookup_with_id(prompt, llm_string=llm_string) + + def delete_by_document_id(self, document_id: str) -> None: + """ + Given this is a "similarity search" cache, an invalidation pattern + that makes sense is first a lookup to get an ID, and then deleting + with that ID. This is for the second step. + """ + self.table.delete(row_id=document_id) + + def clear(self, **kwargs: Any) -> None: + """Clear the *whole* semantic cache.""" + self.table.clear() diff --git a/libs/langchain/poetry.lock b/libs/langchain/poetry.lock index d49de58a10..6a13a8433b 100644 --- a/libs/langchain/poetry.lock +++ b/libs/langchain/poetry.lock @@ -1,9 +1,10 @@ -# This file is automatically @generated by Poetry 1.5.1 and should not be changed by hand. +# This file is automatically @generated by Poetry and should not be changed by hand. [[package]] name = "absl-py" version = "1.4.0" description = "Abseil Python Common Libraries, see https://github.com/abseil/abseil-py." +category = "main" optional = true python-versions = ">=3.6" files = [ @@ -15,6 +16,7 @@ files = [ name = "aioboto3" version = "11.3.0" description = "Async boto3 wrapper" +category = "main" optional = true python-versions = ">=3.7,<4.0" files = [ @@ -33,6 +35,7 @@ s3cse = ["cryptography (>=2.3.1)"] name = "aiobotocore" version = "2.6.0" description = "Async client for aws services using botocore and aiohttp" +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -55,6 +58,7 @@ boto3 = ["boto3 (>=1.28.17,<1.28.18)"] name = "aiodns" version = "3.0.0" description = "Simple DNS resolver for asyncio" +category = "main" optional = true python-versions = "*" files = [ @@ -69,6 +73,7 @@ pycares = ">=4.0.0" name = "aiofiles" version = "23.2.1" description = "File support for asyncio." +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -80,6 +85,7 @@ files = [ name = "aiohttp" version = "3.8.5" description = "Async http client/server framework (asyncio)" +category = "main" optional = false python-versions = ">=3.6" files = [ @@ -188,6 +194,7 @@ speedups = ["Brotli", "aiodns", "cchardet"] name = "aiohttp-retry" version = "2.8.3" description = "Simple retry client for aiohttp" +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -202,6 +209,7 @@ aiohttp = "*" name = "aioitertools" version = "0.11.0" description = "itertools and builtins for AsyncIO and mixed iterables" +category = "main" optional = true python-versions = ">=3.6" files = [ @@ -216,6 +224,7 @@ typing_extensions = {version = ">=4.0", markers = "python_version < \"3.10\""} name = "aiosignal" version = "1.3.1" description = "aiosignal: a list of registered asynchronous callbacks" +category = "main" optional = false python-versions = ">=3.7" files = [ @@ -230,6 +239,7 @@ frozenlist = ">=1.1.0" name = "aleph-alpha-client" version = "2.17.0" description = "python client to interact with Aleph Alpha api endpoints" +category = "main" optional = true python-versions = "*" files = [ @@ -257,6 +267,7 @@ types = ["mypy", "types-Pillow", "types-requests"] name = "altair" version = "4.2.2" description = "Altair: A declarative statistical visualization library for Python." +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -279,6 +290,7 @@ dev = ["black", "docutils", "flake8", "ipython", "m2r", "mistune (<2.0.0)", "pyt name = "amadeus" version = "8.1.0" description = "Python module for the Amadeus travel APIs" +category = "main" optional = true python-versions = ">=3.4.8" files = [ @@ -289,6 +301,7 @@ files = [ name = "amazon-textract-caller" version = "0.0.29" description = "Amazon Textract Caller tools" +category = "main" optional = true python-versions = ">=3.6" files = [ @@ -308,6 +321,7 @@ testing = ["amazon-textract-response-parser", "pytest"] name = "amazon-textract-response-parser" version = "1.0.0" description = "Easily parse JSON returned by Amazon Textract." +category = "main" optional = true python-versions = ">=3.8" files = [ @@ -323,6 +337,7 @@ marshmallow = ">=3.14,<4" name = "anyio" version = "3.7.1" description = "High level compatibility layer for multiple asynchronous event loop implementations" +category = "main" optional = false python-versions = ">=3.7" files = [ @@ -344,6 +359,7 @@ 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 = [ @@ -355,6 +371,7 @@ files = [ name = "argon2-cffi" version = "23.1.0" description = "Argon2 for Python" +category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -375,6 +392,7 @@ typing = ["mypy"] name = "argon2-cffi-bindings" version = "21.2.0" description = "Low-level CFFI bindings for Argon2" +category = "dev" optional = false python-versions = ">=3.6" files = [ @@ -412,6 +430,7 @@ tests = ["pytest"] name = "arrow" version = "1.2.3" description = "Better dates & times for Python" +category = "dev" optional = false python-versions = ">=3.6" files = [ @@ -426,6 +445,7 @@ python-dateutil = ">=2.7.0" name = "arxiv" version = "1.4.8" description = "Python wrapper for the arXiv API: http://arxiv.org/help/api/" +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -440,6 +460,7 @@ feedparser = "*" name = "assemblyai" version = "0.17.0" description = "AssemblyAI Python SDK" +category = "main" optional = true python-versions = ">=3.8" files = [ @@ -460,6 +481,7 @@ extras = ["pyaudio (>=0.2.13)"] name = "asttokens" version = "2.2.1" description = "Annotate AST trees with source code positions" +category = "dev" optional = false python-versions = "*" files = [ @@ -477,6 +499,7 @@ test = ["astroid", "pytest"] name = "astunparse" version = "1.6.3" description = "An AST unparser for Python" +category = "main" optional = true python-versions = "*" files = [ @@ -492,6 +515,7 @@ wheel = ">=0.23.0,<1.0" name = "async-lru" version = "2.0.4" description = "Simple LRU cache for asyncio" +category = "dev" optional = false python-versions = ">=3.8" files = [ @@ -506,6 +530,7 @@ typing-extensions = {version = ">=4.0.0", markers = "python_version < \"3.11\""} name = "async-timeout" version = "4.0.3" description = "Timeout context manager for asyncio programs" +category = "main" optional = false python-versions = ">=3.7" files = [ @@ -517,6 +542,7 @@ files = [ name = "atlassian-python-api" version = "3.41.0" description = "Python Atlassian REST API Wrapper" +category = "main" optional = true python-versions = "*" files = [ @@ -538,6 +564,7 @@ kerberos = ["requests-kerberos"] name = "attr" version = "0.3.2" description = "Simple decorator to set attributes of target function or class in a DRY way." +category = "main" optional = true python-versions = "*" files = [ @@ -549,6 +576,7 @@ files = [ name = "attrs" version = "23.1.0" description = "Classes Without Boilerplate" +category = "main" optional = false python-versions = ">=3.7" files = [ @@ -567,6 +595,7 @@ tests-no-zope = ["cloudpickle", "hypothesis", "mypy (>=1.1.1)", "pympler", "pyte name = "audioread" version = "3.0.0" description = "multi-library, cross-platform audio decoding" +category = "main" optional = true python-versions = ">=3.6" files = [ @@ -577,6 +606,7 @@ files = [ name = "authlib" version = "1.2.1" description = "The ultimate Python library in building OAuth and OpenID Connect servers and clients." +category = "main" optional = true python-versions = "*" files = [ @@ -591,6 +621,7 @@ cryptography = ">=3.2" name = "awadb" version = "0.3.10" description = "AI Native database for embedding vectors" +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -617,6 +648,7 @@ test = ["pytest (>=6.0)"] name = "azure-ai-formrecognizer" version = "3.3.0" description = "Microsoft Azure Form Recognizer Client Library for Python" +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -634,6 +666,7 @@ typing-extensions = ">=4.0.1" name = "azure-ai-vision" version = "0.11.1b1" description = "Microsoft Azure AI Vision SDK for Python" +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -645,6 +678,7 @@ files = [ name = "azure-cognitiveservices-speech" version = "1.31.0" description = "Microsoft Cognitive Services Speech SDK for Python" +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -660,6 +694,7 @@ files = [ name = "azure-common" version = "1.1.28" description = "Microsoft Azure Client Library for Python (Common)" +category = "main" optional = true python-versions = "*" files = [ @@ -671,6 +706,7 @@ files = [ name = "azure-core" version = "1.29.1" description = "Microsoft Azure Core Library for Python" +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -690,6 +726,7 @@ aio = ["aiohttp (>=3.0)"] name = "azure-cosmos" version = "4.5.0" description = "Microsoft Azure Cosmos Client Library for Python" +category = "main" optional = true python-versions = ">=3.6" files = [ @@ -704,6 +741,7 @@ azure-core = ">=1.23.0,<2.0.0" name = "azure-identity" version = "1.14.0" description = "Microsoft Azure Identity Library for Python" +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -721,6 +759,7 @@ msal-extensions = ">=0.3.0,<2.0.0" name = "azure-search-documents" version = "11.4.0b8" description = "Microsoft Azure Cognitive Search Client Library for Python" +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -737,6 +776,7 @@ isodate = ">=0.6.0" name = "babel" version = "2.12.1" description = "Internationalization utilities" +category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -751,6 +791,7 @@ 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 = [ @@ -762,6 +803,7 @@ files = [ name = "backoff" version = "2.2.1" description = "Function decoration for backoff and retry" +category = "main" optional = true python-versions = ">=3.7,<4.0" files = [ @@ -773,6 +815,7 @@ files = [ name = "backports-zoneinfo" version = "0.2.1" description = "Backport of the standard library zoneinfo module" +category = "main" optional = true python-versions = ">=3.6" files = [ @@ -801,6 +844,7 @@ tzdata = ["tzdata"] name = "beautifulsoup4" version = "4.12.2" description = "Screen-scraping library" +category = "main" optional = false python-versions = ">=3.6.0" files = [ @@ -819,6 +863,7 @@ lxml = ["lxml"] name = "bibtexparser" version = "1.4.0" description = "Bibtex parser for python 3" +category = "main" optional = true python-versions = "*" files = [ @@ -832,6 +877,7 @@ pyparsing = ">=2.0.3" name = "black" version = "23.7.0" description = "The uncompromising code formatter." +category = "dev" optional = false python-versions = ">=3.8" files = [ @@ -878,6 +924,7 @@ 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 = [ @@ -896,6 +943,7 @@ css = ["tinycss2 (>=1.1.0,<1.2)"] name = "blinker" version = "1.6.2" description = "Fast, simple object-to-object and broadcast signaling" +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -907,6 +955,7 @@ files = [ name = "boto3" version = "1.28.17" description = "The AWS SDK for Python" +category = "main" optional = true python-versions = ">= 3.7" files = [ @@ -926,6 +975,7 @@ crt = ["botocore[crt] (>=1.21.0,<2.0a0)"] name = "botocore" version = "1.31.17" description = "Low-level, data-driven core of boto 3." +category = "main" optional = true python-versions = ">= 3.7" files = [ @@ -945,6 +995,7 @@ crt = ["awscrt (==0.16.26)"] name = "brotli" version = "1.0.9" description = "Python bindings for the Brotli compression library" +category = "main" optional = true python-versions = "*" files = [ @@ -1036,6 +1087,7 @@ files = [ name = "brotlicffi" version = "1.0.9.2" description = "Python CFFI bindings to the Brotli library" +category = "main" optional = true python-versions = "*" files = [ @@ -1078,6 +1130,7 @@ cffi = ">=1.0.0" name = "build" version = "0.10.0" description = "A simple, correct Python build frontend" +category = "main" optional = true python-versions = ">= 3.7" files = [ @@ -1101,6 +1154,7 @@ virtualenv = ["virtualenv (>=20.0.35)"] name = "cachetools" version = "5.3.1" description = "Extensible memoizing collections and decorators" +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -1112,6 +1166,7 @@ files = [ name = "cassandra-driver" version = "3.28.0" description = "DataStax Driver for Apache Cassandra" +category = "main" optional = false python-versions = "*" files = [ @@ -1161,13 +1216,14 @@ graph = ["gremlinpython (==3.4.6)"] [[package]] name = "cassio" -version = "0.0.7" -description = "A framework-agnostic Python library to seamlessly integrate Apache Cassandra with ML/LLM/genAI workloads." +version = "0.1.0" +description = "A framework-agnostic Python library to seamlessly integrate Apache Cassandra(R) with ML/LLM/genAI workloads." +category = "main" optional = false python-versions = ">=3.8" files = [ - {file = "cassio-0.0.7-py3-none-any.whl", hash = "sha256:394d8ca18076f051543917e46c06a61d43679c22c0ddf2717308259fcb3d7452"}, - {file = "cassio-0.0.7.tar.gz", hash = "sha256:68b3b036f6de64e728f91538ba81a3f0eb4cf217320ab4bf50bb7135bac9a903"}, + {file = "cassio-0.1.0-py3-none-any.whl", hash = "sha256:32839d07b7d67c2a48b2efe951af4b330a8a3f0dfd9dfb53cd09ee75dbd03b5a"}, + {file = "cassio-0.1.0.tar.gz", hash = "sha256:1e66d440bad82e647d7600567603c68a8566b01c1a41a753b61562ed0735e4b8"}, ] [package.dependencies] @@ -1178,6 +1234,7 @@ numpy = ">=1.0" name = "certifi" version = "2023.7.22" description = "Python package for providing Mozilla's CA Bundle." +category = "main" optional = false python-versions = ">=3.6" files = [ @@ -1189,6 +1246,7 @@ files = [ name = "cffi" version = "1.15.1" description = "Foreign Function Interface for Python calling C code." +category = "main" optional = false python-versions = "*" files = [ @@ -1265,6 +1323,7 @@ pycparser = "*" name = "chardet" version = "5.2.0" description = "Universal encoding detector for Python 3" +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -1276,6 +1335,7 @@ files = [ name = "charset-normalizer" version = "3.2.0" description = "The Real First Universal Charset Detector. Open, modern and actively maintained alternative to Chardet." +category = "main" optional = false python-versions = ">=3.7.0" files = [ @@ -1360,6 +1420,7 @@ files = [ name = "clarifai" version = "9.7.1" description = "Clarifai Python Utilities" +category = "main" optional = true python-versions = ">=3.8" files = [ @@ -1376,6 +1437,7 @@ tritonclient = "2.34.0" name = "clarifai-grpc" version = "9.7.3" description = "Clarifai gRPC API Client" +category = "main" optional = true python-versions = ">=3.8" files = [ @@ -1393,6 +1455,7 @@ requests = ">=2.25.1" name = "click" version = "8.1.7" description = "Composable command line interface toolkit" +category = "main" optional = false python-versions = ">=3.7" files = [ @@ -1407,6 +1470,7 @@ colorama = {version = "*", markers = "platform_system == \"Windows\""} name = "click-plugins" version = "1.1.1" description = "An extension module for click to enable registering CLI commands via setuptools entry-points." +category = "main" optional = true python-versions = "*" files = [ @@ -1424,6 +1488,7 @@ dev = ["coveralls", "pytest (>=3.6)", "pytest-cov", "wheel"] name = "clickhouse-connect" version = "0.5.25" description = "ClickHouse core driver, SqlAlchemy, and Superset libraries" +category = "main" optional = true python-versions = "~=3.7" files = [ @@ -1513,6 +1578,7 @@ superset = ["apache-superset (>=1.4.1)"] name = "cligj" version = "0.7.2" description = "Click params for commmand line interfaces to GeoJSON" +category = "main" optional = true python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, <4" files = [ @@ -1530,6 +1596,7 @@ test = ["pytest-cov"] name = "codespell" version = "2.2.5" description = "Codespell" +category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -1547,6 +1614,7 @@ types = ["chardet (>=5.1.0)", "mypy", "pytest", "pytest-cov", "pytest-dependency name = "cohere" version = "4.21" description = "" +category = "main" optional = true python-versions = ">=3.7,<4.0" files = [ @@ -1566,6 +1634,7 @@ urllib3 = ">=1.26,<3" name = "colorama" version = "0.4.6" description = "Cross-platform colored terminal text." +category = "main" optional = false python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,>=2.7" files = [ @@ -1577,6 +1646,7 @@ files = [ name = "colored" version = "1.4.4" description = "Simple library for color and formatting to terminal" +category = "dev" optional = false python-versions = "*" files = [ @@ -1587,6 +1657,7 @@ files = [ name = "comm" version = "0.1.4" description = "Jupyter Python Comm implementation, for usage in ipykernel, xeus-python etc." +category = "dev" optional = false python-versions = ">=3.6" files = [ @@ -1606,6 +1677,7 @@ typing = ["mypy (>=0.990)"] name = "coverage" version = "7.3.0" description = "Code coverage measurement for Python" +category = "dev" optional = false python-versions = ">=3.8" files = [ @@ -1673,6 +1745,7 @@ toml = ["tomli"] name = "cryptography" version = "41.0.3" description = "cryptography is a package which provides cryptographic recipes and primitives to Python developers." +category = "main" optional = false python-versions = ">=3.7" files = [ @@ -1718,6 +1791,7 @@ test-randomorder = ["pytest-randomly"] name = "cssselect" version = "1.2.0" description = "cssselect parses CSS3 Selectors and translates them to XPath 1.0" +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -1729,6 +1803,7 @@ files = [ name = "dataclasses-json" version = "0.5.9" description = "Easily serialize dataclasses to and from JSON" +category = "main" optional = false python-versions = ">=3.6" files = [ @@ -1748,6 +1823,7 @@ dev = ["flake8", "hypothesis", "ipython", "mypy (>=0.710)", "portray", "pytest ( name = "debugpy" version = "1.6.7.post1" description = "An implementation of the Debug Adapter Protocol for Python" +category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -1775,6 +1851,7 @@ files = [ name = "decorator" version = "5.1.1" description = "Decorators for Humans" +category = "main" optional = false python-versions = ">=3.5" files = [ @@ -1786,6 +1863,7 @@ files = [ name = "deeplake" version = "3.6.19" description = "Activeloop Deep Lake" +category = "main" optional = true python-versions = "*" files = [ @@ -1823,6 +1901,7 @@ visualizer = ["IPython", "flask"] 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 = [ @@ -1834,6 +1913,7 @@ files = [ name = "deprecated" version = "1.2.14" description = "Python @deprecated decorator to deprecate old python classes, functions or methods." +category = "main" optional = true python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" files = [ @@ -1851,6 +1931,7 @@ dev = ["PyTest", "PyTest-Cov", "bump2version (<1)", "sphinx (<2)", "tox"] name = "deprecation" version = "2.1.0" description = "A library to handle automated deprecations" +category = "main" optional = true python-versions = "*" files = [ @@ -1865,6 +1946,7 @@ packaging = "*" name = "dill" version = "0.3.7" description = "serialize all of Python" +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -1879,6 +1961,7 @@ graph = ["objgraph (>=1.7.2)"] name = "dnspython" version = "2.4.2" description = "DNS toolkit" +category = "main" optional = true python-versions = ">=3.8,<4.0" files = [ @@ -1898,6 +1981,7 @@ wmi = ["wmi (>=1.5.1,<2.0.0)"] name = "docarray" version = "0.32.1" description = "The data structure for multimodal data" +category = "main" optional = true python-versions = ">=3.7,<4.0" files = [ @@ -1936,6 +2020,7 @@ web = ["fastapi (>=0.87.0)"] name = "docker" version = "6.1.3" description = "A Python library for the Docker Engine API." +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -1957,6 +2042,7 @@ ssh = ["paramiko (>=2.4.3)"] name = "docopt" version = "0.6.2" description = "Pythonic argument parser, that will make you smile" +category = "main" optional = true python-versions = "*" files = [ @@ -1967,6 +2053,7 @@ files = [ name = "duckdb" version = "0.8.1" description = "DuckDB embedded database" +category = "dev" optional = false python-versions = "*" files = [ @@ -2028,6 +2115,7 @@ files = [ name = "duckdb-engine" version = "0.7.3" description = "SQLAlchemy driver for duckdb" +category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -2044,6 +2132,7 @@ sqlalchemy = ">=1.3.22" name = "duckduckgo-search" version = "3.8.5" description = "Search for words, documents, images, news, maps and text translation using the DuckDuckGo.com search engine." +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -2061,6 +2150,7 @@ lxml = ">=4.9.2" name = "elastic-transport" version = "8.4.0" description = "Transport classes and utilities shared among Python Elastic client libraries" +category = "main" optional = true python-versions = ">=3.6" files = [ @@ -2079,6 +2169,7 @@ develop = ["aiohttp", "mock", "pytest", "pytest-asyncio", "pytest-cov", "pytest- name = "elasticsearch" version = "8.9.0" description = "Python client for Elasticsearch" +category = "main" optional = true python-versions = ">=3.6, <4" files = [ @@ -2097,6 +2188,7 @@ requests = ["requests (>=2.4.0,<3.0.0)"] name = "entrypoints" version = "0.4" description = "Discover and load entry points from installed packages." +category = "main" optional = true python-versions = ">=3.6" files = [ @@ -2108,6 +2200,7 @@ files = [ name = "esprima" version = "4.0.1" description = "ECMAScript parsing infrastructure for multipurpose analysis in Python" +category = "main" optional = true python-versions = "*" files = [ @@ -2118,6 +2211,7 @@ files = [ name = "exceptiongroup" version = "1.1.3" description = "Backport of PEP 654 (exception groups)" +category = "main" optional = false python-versions = ">=3.7" files = [ @@ -2132,6 +2226,7 @@ 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 = [ @@ -2146,6 +2241,7 @@ tests = ["asttokens", "littleutils", "pytest", "rich"] name = "faiss-cpu" version = "1.7.4" description = "A library for efficient similarity search and clustering of dense vectors." +category = "main" optional = true python-versions = "*" files = [ @@ -2180,6 +2276,7 @@ files = [ name = "fastavro" version = "1.8.2" description = "Fast read/write of AVRO files" +category = "main" optional = true python-versions = ">=3.8" files = [ @@ -2220,6 +2317,7 @@ zstandard = ["zstandard"] name = "fastjsonschema" version = "2.18.0" description = "Fastest Python implementation of JSON schema" +category = "dev" optional = false python-versions = "*" files = [ @@ -2234,6 +2332,7 @@ devel = ["colorama", "json-spec", "jsonschema", "pylint", "pytest", "pytest-benc name = "feedfinder2" version = "0.0.4" description = "Find the feed URLs for a website." +category = "main" optional = true python-versions = "*" files = [ @@ -2249,6 +2348,7 @@ six = "*" name = "feedparser" version = "6.0.10" description = "Universal feed parser, handles RSS 0.9x, RSS 1.0, RSS 2.0, CDF, Atom 0.3, and Atom 1.0 feeds" +category = "main" optional = true python-versions = ">=3.6" files = [ @@ -2263,6 +2363,7 @@ sgmllib3k = "*" name = "filelock" version = "3.12.2" description = "A platform independent file lock." +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -2278,6 +2379,7 @@ testing = ["covdefaults (>=2.3)", "coverage (>=7.2.7)", "diff-cover (>=7.5)", "p name = "fiona" version = "1.9.4.post1" description = "Fiona reads and writes spatial data files" +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -2322,6 +2424,7 @@ test = ["Fiona[s3]", "pytest (>=7)", "pytest-cov", "pytz"] name = "flatbuffers" version = "23.5.26" description = "The FlatBuffers serialization format for Python" +category = "main" optional = true python-versions = "*" files = [ @@ -2333,6 +2436,7 @@ files = [ 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 = [ @@ -2344,6 +2448,7 @@ files = [ name = "freezegun" version = "1.2.2" description = "Let your Python tests travel through time" +category = "dev" optional = false python-versions = ">=3.6" files = [ @@ -2358,6 +2463,7 @@ python-dateutil = ">=2.7" name = "frozenlist" version = "1.4.0" description = "A list-like structure which implements collections.abc.MutableSequence" +category = "main" optional = false python-versions = ">=3.8" files = [ @@ -2428,6 +2534,7 @@ files = [ name = "fsspec" version = "2023.6.0" description = "File-system specification" +category = "main" optional = true python-versions = ">=3.8" files = [ @@ -2463,6 +2570,7 @@ tqdm = ["tqdm"] name = "future" version = "0.18.3" description = "Clean single-source support for Python 3 and 2" +category = "main" optional = true python-versions = ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*" files = [ @@ -2473,6 +2581,7 @@ files = [ name = "gast" version = "0.4.0" description = "Python AST that abstracts the underlying Python version" +category = "main" optional = true python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" files = [ @@ -2484,6 +2593,7 @@ files = [ name = "geojson" version = "2.5.0" description = "Python bindings and utilities for GeoJSON" +category = "main" optional = true python-versions = "*" files = [ @@ -2495,6 +2605,7 @@ files = [ name = "geomet" version = "0.2.1.post1" description = "GeoJSON <-> WKT/WKB conversion utilities" +category = "main" optional = false python-versions = ">2.6, !=3.3.*, <4" files = [ @@ -2510,6 +2621,7 @@ six = "*" name = "geopandas" version = "0.13.2" description = "Geographic pandas extensions" +category = "main" optional = true python-versions = ">=3.8" files = [ @@ -2528,6 +2640,7 @@ shapely = ">=1.7.1" name = "gitdb" version = "4.0.10" description = "Git Object Database" +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -2542,6 +2655,7 @@ smmap = ">=3.0.1,<6" name = "gitpython" version = "3.1.32" description = "GitPython is a Python library used to interact with Git repositories" +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -2556,6 +2670,7 @@ gitdb = ">=4.0.1,<5" name = "google-api-core" version = "2.11.1" description = "Google API client core library" +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -2578,6 +2693,7 @@ grpcio-gcp = ["grpcio-gcp (>=0.2.2,<1.0.dev0)"] name = "google-api-python-client" version = "2.70.0" description = "Google API Client Library for Python" +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -2586,7 +2702,7 @@ files = [ ] [package.dependencies] -google-api-core = ">=1.31.5,<2.0.dev0 || >2.3.0,<3.0.0dev" +google-api-core = ">=1.31.5,<2.0.0 || >2.3.0,<3.0.0dev" google-auth = ">=1.19.0,<3.0.0dev" google-auth-httplib2 = ">=0.1.0" httplib2 = ">=0.15.0,<1dev" @@ -2596,6 +2712,7 @@ uritemplate = ">=3.0.1,<5" name = "google-auth" version = "2.22.0" description = "Google Authentication Library" +category = "main" optional = true python-versions = ">=3.6" files = [ @@ -2621,6 +2738,7 @@ requests = ["requests (>=2.20.0,<3.0.0.dev0)"] name = "google-auth-httplib2" version = "0.1.0" description = "Google Authentication Library: httplib2 transport" +category = "main" optional = true python-versions = "*" files = [ @@ -2637,6 +2755,7 @@ six = "*" name = "google-auth-oauthlib" version = "1.0.0" description = "Google Authentication Library" +category = "main" optional = true python-versions = ">=3.6" files = [ @@ -2655,6 +2774,7 @@ tool = ["click (>=6.0.0)"] name = "google-pasta" version = "0.2.0" description = "pasta is an AST-based Python refactoring library" +category = "main" optional = true python-versions = "*" files = [ @@ -2670,6 +2790,7 @@ six = "*" name = "google-search-results" version = "2.4.2" description = "Scrape and search localized results from Google, Bing, Baidu, Yahoo, Yandex, Ebay, Homedepot, youtube at scale using SerpApi.com" +category = "main" optional = true python-versions = ">=3.5" files = [ @@ -2683,6 +2804,7 @@ requests = "*" name = "googleapis-common-protos" version = "1.60.0" description = "Common protobufs used in Google APIs" +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -2700,6 +2822,7 @@ grpc = ["grpcio (>=1.44.0,<2.0.0.dev0)"] name = "gptcache" version = "0.1.39.1" description = "GPTCache, a powerful caching library that can be used to speed up and lower the cost of chat applications that rely on the LLM service. GPTCache works as a memcache for AIGC applications, similar to how Redis works for traditional applications." +category = "main" optional = true python-versions = ">=3.8.1" files = [ @@ -2716,6 +2839,7 @@ requests = "*" name = "gql" version = "3.4.1" description = "GraphQL client for Python" +category = "main" optional = true python-versions = "*" files = [ @@ -2742,6 +2866,7 @@ websockets = ["websockets (>=10,<11)", "websockets (>=9,<10)"] name = "graphql-core" version = "3.2.3" description = "GraphQL implementation for Python, a port of GraphQL.js, the JavaScript reference implementation for GraphQL." +category = "main" optional = true python-versions = ">=3.6,<4" files = [ @@ -2753,6 +2878,7 @@ files = [ name = "greenlet" version = "2.0.2" description = "Lightweight in-process concurrent programming" +category = "main" optional = false python-versions = ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*" files = [ @@ -2826,6 +2952,7 @@ test = ["objgraph", "psutil"] name = "grpcio" version = "1.57.0" description = "HTTP/2-based RPC framework" +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -2883,6 +3010,7 @@ protobuf = ["grpcio-tools (>=1.57.0)"] name = "grpcio-tools" version = "1.48.2" description = "Protobuf code generator for gRPC" +category = "main" optional = true python-versions = ">=3.6" files = [ @@ -2943,6 +3071,7 @@ setuptools = "*" name = "h11" version = "0.14.0" description = "A pure-Python, bring-your-own-I/O implementation of HTTP/1.1" +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -2954,6 +3083,7 @@ files = [ name = "h2" version = "4.1.0" description = "HTTP/2 State-Machine based protocol implementation" +category = "main" optional = true python-versions = ">=3.6.1" files = [ @@ -2969,6 +3099,7 @@ hyperframe = ">=6.0,<7" name = "h5py" version = "3.9.0" description = "Read and write HDF5 files from Python" +category = "main" optional = true python-versions = ">=3.8" files = [ @@ -3002,6 +3133,7 @@ numpy = ">=1.17.3" name = "hnswlib" version = "0.7.0" description = "hnswlib" +category = "main" optional = true python-versions = "*" files = [ @@ -3015,6 +3147,7 @@ numpy = "*" name = "hpack" version = "4.0.0" description = "Pure-Python HPACK header compression" +category = "main" optional = true python-versions = ">=3.6.1" files = [ @@ -3026,6 +3159,7 @@ files = [ name = "html2text" version = "2020.1.16" description = "Turn HTML into equivalent Markdown-structured text." +category = "main" optional = true python-versions = ">=3.5" files = [ @@ -3037,6 +3171,7 @@ files = [ name = "httpcore" version = "0.17.3" description = "A minimal low-level HTTP client." +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -3048,16 +3183,17 @@ files = [ anyio = ">=3.0,<5.0" certifi = "*" h11 = ">=0.13,<0.15" -sniffio = "==1.*" +sniffio = ">=1.0.0,<2.0.0" [package.extras] http2 = ["h2 (>=3,<5)"] -socks = ["socksio (==1.*)"] +socks = ["socksio (>=1.0.0,<2.0.0)"] [[package]] name = "httplib2" version = "0.22.0" description = "A comprehensive HTTP client library." +category = "main" optional = true python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" files = [ @@ -3072,6 +3208,7 @@ pyparsing = {version = ">=2.4.2,<3.0.0 || >3.0.0,<3.0.1 || >3.0.1,<3.0.2 || >3.0 name = "httpx" version = "0.24.1" description = "The next generation HTTP client." +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -3087,18 +3224,19 @@ h2 = {version = ">=3,<5", optional = true, markers = "extra == \"http2\""} httpcore = ">=0.15.0,<0.18.0" idna = "*" sniffio = "*" -socksio = {version = "==1.*", optional = true, markers = "extra == \"socks\""} +socksio = {version = ">=1.0.0,<2.0.0", optional = true, markers = "extra == \"socks\""} [package.extras] brotli = ["brotli", "brotlicffi"] -cli = ["click (==8.*)", "pygments (==2.*)", "rich (>=10,<14)"] +cli = ["click (>=8.0.0,<9.0.0)", "pygments (>=2.0.0,<3.0.0)", "rich (>=10,<14)"] http2 = ["h2 (>=3,<5)"] -socks = ["socksio (==1.*)"] +socks = ["socksio (>=1.0.0,<2.0.0)"] [[package]] name = "huggingface-hub" version = "0.16.4" description = "Client library to download and publish models, datasets and other repos on the huggingface.co hub" +category = "main" optional = true python-versions = ">=3.7.0" files = [ @@ -3131,6 +3269,7 @@ typing = ["pydantic", "types-PyYAML", "types-requests", "types-simplejson", "typ name = "humbug" version = "0.3.2" description = "Humbug: Do you build developer tools? Humbug helps you know your users." +category = "main" optional = true python-versions = "*" files = [ @@ -3150,6 +3289,7 @@ profile = ["GPUtil", "psutil", "types-psutil"] name = "hyperframe" version = "6.0.1" description = "HTTP/2 framing layer for Python" +category = "main" optional = true python-versions = ">=3.6.1" files = [ @@ -3161,6 +3301,7 @@ files = [ name = "idna" version = "3.4" description = "Internationalized Domain Names in Applications (IDNA)" +category = "main" optional = false python-versions = ">=3.5" files = [ @@ -3172,6 +3313,7 @@ files = [ name = "importlib-metadata" version = "6.8.0" description = "Read metadata from Python packages" +category = "main" optional = false python-versions = ">=3.8" files = [ @@ -3191,6 +3333,7 @@ testing = ["flufl.flake8", "importlib-resources (>=1.3)", "packaging", "pyfakefs name = "importlib-resources" version = "6.0.1" description = "Read resources from Python packages" +category = "main" optional = false python-versions = ">=3.8" files = [ @@ -3209,6 +3352,7 @@ testing = ["pytest (>=6)", "pytest-black (>=0.3.7)", "pytest-checkdocs (>=2.4)", name = "iniconfig" version = "2.0.0" description = "brain-dead simple config-ini parsing" +category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -3220,6 +3364,7 @@ files = [ name = "ipykernel" version = "6.25.1" description = "IPython Kernel for Jupyter" +category = "dev" optional = false python-versions = ">=3.8" files = [ @@ -3233,7 +3378,7 @@ comm = ">=0.1.1" debugpy = ">=1.6.5" ipython = ">=7.23.1" jupyter-client = ">=6.1.12" -jupyter-core = ">=4.12,<5.0.dev0 || >=5.1.dev0" +jupyter-core = ">=4.12,<5.0.0 || >=5.1.0" matplotlib-inline = ">=0.1" nest-asyncio = "*" packaging = "*" @@ -3253,6 +3398,7 @@ 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 = [ @@ -3292,6 +3438,7 @@ 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 = [ @@ -3303,6 +3450,7 @@ files = [ name = "ipywidgets" version = "8.1.0" description = "Jupyter interactive widgets" +category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -3324,6 +3472,7 @@ test = ["ipykernel", "jsonschema", "pytest (>=3.6.0)", "pytest-cov", "pytz"] name = "isodate" version = "0.6.1" description = "An ISO 8601 date/time/duration parser and formatter" +category = "main" optional = true python-versions = "*" files = [ @@ -3338,6 +3487,7 @@ six = "*" name = "isoduration" version = "20.11.0" description = "Operations with ISO 8601 durations" +category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -3352,6 +3502,7 @@ arrow = ">=0.15.0" name = "jaraco-context" version = "4.3.0" description = "Context managers by jaraco" +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -3367,6 +3518,7 @@ testing = ["flake8 (<5)", "pytest (>=6)", "pytest-black (>=0.3.7)", "pytest-chec name = "jedi" version = "0.19.0" description = "An autocompletion tool for Python that can be used for text editors." +category = "dev" optional = false python-versions = ">=3.6" files = [ @@ -3386,6 +3538,7 @@ testing = ["Django (<3.1)", "attrs", "colorama", "docopt", "pytest (<7.0.0)"] name = "jieba3k" version = "0.35.1" description = "Chinese Words Segementation Utilities" +category = "main" optional = true python-versions = "*" files = [ @@ -3396,6 +3549,7 @@ files = [ name = "jinja2" version = "3.1.2" description = "A very fast and expressive template engine." +category = "main" optional = false python-versions = ">=3.7" files = [ @@ -3413,6 +3567,7 @@ i18n = ["Babel (>=2.7)"] name = "jmespath" version = "1.0.1" description = "JSON Matching Expressions" +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -3424,6 +3579,7 @@ files = [ name = "joblib" version = "1.3.2" description = "Lightweight pipelining with Python functions" +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -3435,6 +3591,7 @@ files = [ name = "jq" version = "1.4.1" description = "jq is a lightweight and flexible JSON processor." +category = "main" optional = true python-versions = ">=3.5" files = [ @@ -3499,6 +3656,7 @@ files = [ name = "json5" version = "0.9.14" description = "A Python implementation of the JSON5 data format." +category = "dev" optional = false python-versions = "*" files = [ @@ -3513,6 +3671,7 @@ dev = ["hypothesis"] name = "jsonable" version = "0.3.1" description = "An abstract class that supports jsonserialization/deserialization." +category = "main" optional = true python-versions = "*" files = [ @@ -3524,6 +3683,7 @@ files = [ name = "jsonlines" version = "3.1.0" description = "Library with helpers for the jsonlines file format" +category = "main" optional = true python-versions = ">=3.6" files = [ @@ -3538,17 +3698,18 @@ attrs = ">=19.2.0" 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.19.0" description = "An implementation of JSON Schema validation for Python" +category = "main" optional = false python-versions = ">=3.8" files = [ @@ -3580,6 +3741,7 @@ 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 = "main" optional = false python-versions = ">=3.8" files = [ @@ -3595,6 +3757,7 @@ 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 = [ @@ -3615,6 +3778,7 @@ qtconsole = "*" name = "jupyter-client" version = "8.3.0" description = "Jupyter protocol implementation and client libraries" +category = "dev" optional = false python-versions = ">=3.8" files = [ @@ -3624,7 +3788,7 @@ files = [ [package.dependencies] importlib-metadata = {version = ">=4.8.3", markers = "python_version < \"3.10\""} -jupyter-core = ">=4.12,<5.0.dev0 || >=5.1.dev0" +jupyter-core = ">=4.12,<5.0.0 || >=5.1.0" python-dateutil = ">=2.8.2" pyzmq = ">=23.0" tornado = ">=6.2" @@ -3638,6 +3802,7 @@ test = ["coverage", "ipykernel (>=6.14)", "mypy", "paramiko", "pre-commit", "pyt name = "jupyter-console" version = "6.6.3" description = "Jupyter terminal console" +category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -3649,7 +3814,7 @@ files = [ ipykernel = ">=6.14" ipython = "*" jupyter-client = ">=7.0.0" -jupyter-core = ">=4.12,<5.0.dev0 || >=5.1.dev0" +jupyter-core = ">=4.12,<5.0.0 || >=5.1.0" prompt-toolkit = ">=3.0.30" pygments = "*" pyzmq = ">=17" @@ -3662,6 +3827,7 @@ 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 = [ @@ -3682,6 +3848,7 @@ test = ["ipykernel", "pre-commit", "pytest", "pytest-cov", "pytest-timeout"] name = "jupyter-events" version = "0.7.0" description = "Jupyter Event System library" +category = "dev" optional = false python-versions = ">=3.8" files = [ @@ -3707,6 +3874,7 @@ test = ["click", "pre-commit", "pytest (>=7.0)", "pytest-asyncio (>=0.19.0)", "p 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 = [ @@ -3722,6 +3890,7 @@ jupyter-server = ">=1.1.2" name = "jupyter-server" version = "2.7.2" description = "The backend—i.e. core services, APIs, and REST endpoints—to Jupyter web applications." +category = "dev" optional = false python-versions = ">=3.8" files = [ @@ -3734,7 +3903,7 @@ anyio = ">=3.1.0" argon2-cffi = "*" jinja2 = "*" jupyter-client = ">=7.4.4" -jupyter-core = ">=4.12,<5.0.dev0 || >=5.1.dev0" +jupyter-core = ">=4.12,<5.0.0 || >=5.1.0" jupyter-events = ">=0.6.0" jupyter-server-terminals = "*" nbconvert = ">=6.4.4" @@ -3758,6 +3927,7 @@ 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 = [ @@ -3777,6 +3947,7 @@ test = ["coverage", "jupyter-server (>=2.0.0)", "pytest (>=7.0)", "pytest-cov", name = "jupyterlab" version = "4.0.5" description = "JupyterLab computational environment" +category = "dev" optional = false python-versions = ">=3.8" files = [ @@ -3810,6 +3981,7 @@ 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 = [ @@ -3821,6 +3993,7 @@ files = [ name = "jupyterlab-server" version = "2.24.0" description = "A set of server components for JupyterLab and JupyterLab like applications." +category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -3847,6 +4020,7 @@ 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 = [ @@ -3858,6 +4032,7 @@ files = [ name = "keras" version = "2.13.1" description = "Deep learning for humans." +category = "main" optional = true python-versions = ">=3.8" files = [ @@ -3869,6 +4044,7 @@ files = [ name = "lancedb" version = "0.1.16" description = "lancedb" +category = "main" optional = true python-versions = ">=3.8" files = [ @@ -3895,6 +4071,7 @@ tests = ["pandas (>=1.4)", "pytest", "pytest-asyncio", "pytest-mock"] name = "langkit" version = "0.0.15" description = "A collection of text metric udfs for whylogs profiling and monitoring in WhyLabs" +category = "main" optional = true python-versions = ">=3.8,<4.0" files = [ @@ -3914,6 +4091,7 @@ all = ["datasets (>=2.12.0,<3.0.0)", "evaluate (>=0.4.0,<0.5.0)", "nltk (>=3.8.1 name = "langsmith" version = "0.0.25" description = "Client library to connect to the LangSmith LLM Tracing and Evaluation Platform." +category = "main" optional = false python-versions = ">=3.8.1,<4.0" files = [ @@ -3929,6 +4107,7 @@ requests = ">=2,<3" name = "lark" version = "1.1.7" description = "a modern parsing library" +category = "main" optional = false python-versions = ">=3.6" files = [ @@ -3946,6 +4125,7 @@ regex = ["regex"] name = "lazy-loader" version = "0.3" description = "lazy_loader" +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -3961,11 +4141,10 @@ test = ["pytest (>=7.4)", "pytest-cov (>=4.1)"] name = "libclang" version = "16.0.6" description = "Clang Python Bindings, mirrored from the official LLVM repo: https://github.com/llvm/llvm-project/tree/main/clang/bindings/python, to make the installation process easier." +category = "main" optional = true python-versions = "*" files = [ - {file = "libclang-16.0.6-1-py2.py3-none-manylinux2014_aarch64.whl", hash = "sha256:88bc7e7b393c32e41e03ba77ef02fdd647da1f764c2cd028e69e0837080b79f6"}, - {file = "libclang-16.0.6-1-py2.py3-none-manylinux2014_armv7l.whl", hash = "sha256:d80ed5827736ed5ec2bcedf536720476fd9d4fa4c79ef0cb24aea4c59332f361"}, {file = "libclang-16.0.6-py2.py3-none-macosx_10_9_x86_64.whl", hash = "sha256:da9e47ebc3f0a6d90fb169ef25f9fbcd29b4a4ef97a8b0e3e3a17800af1423f4"}, {file = "libclang-16.0.6-py2.py3-none-macosx_11_0_arm64.whl", hash = "sha256:e1a5ad1e895e5443e205568c85c04b4608e4e973dae42f4dfd9cb46c81d1486b"}, {file = "libclang-16.0.6-py2.py3-none-manylinux2010_x86_64.whl", hash = "sha256:9dcdc730939788b8b69ffd6d5d75fe5366e3ee007f1e36a99799ec0b0c001492"}, @@ -3981,6 +4160,7 @@ files = [ name = "libdeeplake" version = "0.0.60" description = "C++ backend for Deep Lake" +category = "main" optional = true python-versions = "*" files = [ @@ -4013,6 +4193,7 @@ numpy = "*" name = "librosa" version = "0.10.1" description = "Python module for audio and music processing" +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -4044,6 +4225,7 @@ tests = ["matplotlib (>=3.3.0)", "packaging (>=20.0)", "pytest", "pytest-cov", " name = "llvmlite" version = "0.40.1" description = "lightweight wrapper around basic LLVM functionality" +category = "main" optional = true python-versions = ">=3.8" files = [ @@ -4077,6 +4259,7 @@ files = [ name = "loguru" version = "0.7.0" description = "Python logging made (stupidly) simple" +category = "main" optional = true python-versions = ">=3.5" files = [ @@ -4095,6 +4278,7 @@ dev = ["Sphinx (==5.3.0)", "colorama (==0.4.5)", "colorama (==0.4.6)", "freezegu name = "lxml" version = "4.9.3" description = "Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API." +category = "main" optional = true python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, != 3.4.*" files = [ @@ -4202,6 +4386,7 @@ source = ["Cython (>=0.29.35)"] name = "lz4" version = "4.3.2" description = "LZ4 Bindings for Python" +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -4251,6 +4436,7 @@ tests = ["psutil", "pytest (!=3.3.0)", "pytest-cov"] name = "manifest-ml" version = "0.0.1" description = "Manifest for Prompt Programming Foundation Models." +category = "main" optional = true python-versions = ">=3.8.0" files = [ @@ -4274,6 +4460,7 @@ dev = ["autopep8 (>=1.6.0)", "black (>=22.3.0)", "docformatter (>=1.4)", "flake8 name = "markdown" version = "3.4.4" description = "Python implementation of John Gruber's Markdown." +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -4289,6 +4476,7 @@ testing = ["coverage", "pyyaml"] name = "markdown-it-py" version = "3.0.0" description = "Python port of markdown-it. Markdown parsing, done right!" +category = "main" optional = true python-versions = ">=3.8" files = [ @@ -4313,6 +4501,7 @@ testing = ["coverage", "pytest", "pytest-cov", "pytest-regressions"] name = "markdownify" version = "0.11.6" description = "Convert HTML to markdown." +category = "main" optional = true python-versions = "*" files = [ @@ -4328,6 +4517,7 @@ six = ">=1.15,<2" name = "markupsafe" version = "2.1.3" description = "Safely add untrusted strings to HTML/XML markup." +category = "main" optional = false python-versions = ">=3.7" files = [ @@ -4387,6 +4577,7 @@ files = [ name = "marqo" version = "1.2.4" description = "Tensor search for humans" +category = "main" optional = true python-versions = ">=3" files = [ @@ -4405,6 +4596,7 @@ urllib3 = "*" name = "marshmallow" version = "3.20.1" description = "A lightweight library for converting complex datatypes to and from native Python datatypes." +category = "main" optional = false python-versions = ">=3.8" files = [ @@ -4425,6 +4617,7 @@ tests = ["pytest", "pytz", "simplejson"] name = "marshmallow-enum" version = "1.5.1" description = "Enum field for Marshmallow" +category = "main" optional = false python-versions = "*" files = [ @@ -4439,6 +4632,7 @@ 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 = [ @@ -4453,6 +4647,7 @@ traitlets = "*" name = "mdurl" version = "0.1.2" description = "Markdown URL utilities" +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -4464,6 +4659,7 @@ 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 = [ @@ -4475,6 +4671,7 @@ files = [ name = "mmh3" version = "3.1.0" description = "Python wrapper for MurmurHash (MurmurHash3), a set of fast and robust hash functions." +category = "main" optional = true python-versions = "*" files = [ @@ -4519,6 +4716,7 @@ files = [ name = "momento" version = "1.7.1" description = "SDK for Momento" +category = "main" optional = true python-versions = ">=3.7,<4.0" files = [ @@ -4535,6 +4733,7 @@ pyjwt = ">=2.4.0,<3.0.0" name = "momento-wire-types" version = "0.67.0" description = "Momento Client Proto Generated Files" +category = "main" optional = true python-versions = ">=3.7,<4.0" files = [ @@ -4550,6 +4749,7 @@ protobuf = ">=3,<5" name = "more-itertools" version = "10.1.0" description = "More routines for operating on iterables, beyond itertools" +category = "main" optional = true python-versions = ">=3.8" files = [ @@ -4561,6 +4761,7 @@ files = [ name = "mpmath" version = "1.3.0" description = "Python library for arbitrary-precision floating-point arithmetic" +category = "main" optional = true python-versions = "*" files = [ @@ -4578,6 +4779,7 @@ tests = ["pytest (>=4.6)"] name = "msal" version = "1.23.0" description = "The Microsoft Authentication Library (MSAL) for Python library enables your app to access the Microsoft Cloud by supporting authentication of users with Microsoft Azure Active Directory accounts (AAD) and Microsoft Accounts (MSA) using industry standard OAuth2 and OpenID Connect." +category = "main" optional = true python-versions = "*" files = [ @@ -4597,6 +4799,7 @@ broker = ["pymsalruntime (>=0.13.2,<0.14)"] name = "msal-extensions" version = "1.0.0" description = "Microsoft Authentication Library extensions (MSAL EX) provides a persistence API that can save your data on disk, encrypted on Windows, macOS and Linux. Concurrent data access will be coordinated by a file lock mechanism." +category = "main" optional = true python-versions = "*" files = [ @@ -4615,6 +4818,7 @@ portalocker = [ name = "msgpack" version = "1.0.5" description = "MessagePack serializer" +category = "main" optional = true python-versions = "*" files = [ @@ -4687,6 +4891,7 @@ files = [ name = "msrest" version = "0.7.1" description = "AutoRest swagger generator Python client runtime." +category = "main" optional = true python-versions = ">=3.6" files = [ @@ -4708,6 +4913,7 @@ async = ["aiodns", "aiohttp (>=3.0)"] name = "multidict" version = "6.0.4" description = "multidict implementation" +category = "main" optional = false python-versions = ">=3.7" files = [ @@ -4791,6 +4997,7 @@ files = [ name = "multiprocess" version = "0.70.15" description = "better multiprocessing and multithreading in Python" +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -4819,6 +5026,7 @@ dill = ">=0.3.7" name = "mwcli" version = "0.0.3" description = "Utilities for processing MediaWiki on the command line." +category = "main" optional = true python-versions = "*" files = [ @@ -4835,6 +5043,7 @@ para = "*" name = "mwparserfromhell" version = "0.6.4" description = "MWParserFromHell is a parser for MediaWiki wikicode." +category = "main" optional = true python-versions = ">= 3.6" files = [ @@ -4872,6 +5081,7 @@ files = [ name = "mwtypes" version = "0.3.2" description = "A set of types for processing MediaWiki data." +category = "main" optional = true python-versions = "*" files = [ @@ -4886,6 +5096,7 @@ jsonable = ">=0.3.0" name = "mwxml" version = "0.3.3" description = "A set of utilities for processing MediaWiki XML dump data." +category = "main" optional = true python-versions = "*" files = [ @@ -4903,6 +5114,7 @@ para = ">=0.0.1" name = "mypy" version = "0.991" description = "Optional static typing for Python" +category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -4953,6 +5165,7 @@ reports = ["lxml"] name = "mypy-extensions" version = "1.0.0" description = "Type system extensions for programs checked with the mypy type checker." +category = "main" optional = false python-versions = ">=3.5" files = [ @@ -4964,6 +5177,7 @@ files = [ name = "mypy-protobuf" version = "3.3.0" description = "Generate mypy stub files from protobuf specs" +category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -4979,6 +5193,7 @@ types-protobuf = ">=3.19.12" name = "nbclient" version = "0.8.0" description = "A client library for executing notebooks. Formerly nbconvert's ExecutePreprocessor." +category = "dev" optional = false python-versions = ">=3.8.0" files = [ @@ -4988,7 +5203,7 @@ files = [ [package.dependencies] jupyter-client = ">=6.1.12" -jupyter-core = ">=4.12,<5.0.dev0 || >=5.1.dev0" +jupyter-core = ">=4.12,<5.0.0 || >=5.1.0" nbformat = ">=5.1" traitlets = ">=5.4" @@ -5001,6 +5216,7 @@ test = ["flaky", "ipykernel (>=6.19.3)", "ipython", "ipywidgets", "nbconvert (>= name = "nbconvert" version = "7.7.4" description = "Converting Jupyter Notebooks" +category = "dev" optional = false python-versions = ">=3.8" files = [ @@ -5039,6 +5255,7 @@ webpdf = ["playwright"] name = "nbformat" version = "5.9.2" description = "The Jupyter Notebook format" +category = "dev" optional = false python-versions = ">=3.8" files = [ @@ -5060,6 +5277,7 @@ test = ["pep440", "pre-commit", "pytest", "testpath"] name = "nebula3-python" version = "3.4.0" description = "Python client for NebulaGraph V3.4" +category = "main" optional = true python-versions = "*" files = [ @@ -5077,6 +5295,7 @@ six = ">=1.16.0" name = "neo4j" version = "5.11.0" description = "Neo4j Bolt driver for Python" +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -5094,6 +5313,7 @@ pandas = ["numpy (>=1.7.0,<2.0.0)", "pandas (>=1.1.0,<3.0.0)"] name = "nest-asyncio" version = "1.5.7" description = "Patch asyncio to allow nested event loops" +category = "main" optional = false python-versions = ">=3.5" files = [ @@ -5105,6 +5325,7 @@ files = [ name = "networkx" version = "2.8.8" description = "Python package for creating and manipulating graphs and networks" +category = "main" optional = true python-versions = ">=3.8" files = [ @@ -5123,6 +5344,7 @@ test = ["codecov (>=2.1)", "pytest (>=7.2)", "pytest-cov (>=4.0)"] name = "newspaper3k" version = "0.2.8" description = "Simplified python article discovery & extraction." +category = "main" optional = true python-versions = "*" files = [ @@ -5149,6 +5371,7 @@ tldextract = ">=2.0.1" name = "nlpcloud" version = "1.1.44" description = "Python client for the NLP Cloud API" +category = "main" optional = true python-versions = "*" files = [ @@ -5163,6 +5386,7 @@ requests = "*" name = "nltk" version = "3.8.1" description = "Natural Language Toolkit" +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -5188,6 +5412,7 @@ twitter = ["twython"] name = "nomic" version = "1.1.14" description = "The offical Nomic python client." +category = "main" optional = true python-versions = "*" files = [ @@ -5215,6 +5440,7 @@ gpt4all = ["peft (==0.3.0.dev0)", "sentencepiece", "torch", "transformers (==4.2 name = "notebook" version = "7.0.2" description = "Jupyter Notebook - A web-based notebook environment for interactive computing" +category = "dev" optional = false python-versions = ">=3.8" files = [ @@ -5239,6 +5465,7 @@ 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 = [ @@ -5256,6 +5483,7 @@ test = ["pytest", "pytest-console-scripts", "pytest-jupyter", "pytest-tornasync" name = "numba" version = "0.57.1" description = "compiling Python code using LLVM" +category = "main" optional = true python-versions = ">=3.8" files = [ @@ -5287,13 +5515,14 @@ files = [ [package.dependencies] importlib-metadata = {version = "*", markers = "python_version < \"3.9\""} -llvmlite = "==0.40.*" +llvmlite = ">=0.40.0dev0,<0.41" numpy = ">=1.21,<1.25" [[package]] name = "numcodecs" version = "0.11.0" description = "A Python package providing buffer compression and transformation codecs for use" +category = "main" optional = true python-versions = ">=3.8" files = [ @@ -5326,6 +5555,7 @@ zfpy = ["zfpy (>=1.0.0)"] name = "numexpr" version = "2.8.5" description = "Fast numerical expression evaluator for NumPy" +category = "main" optional = false python-versions = ">=3.7" files = [ @@ -5368,6 +5598,7 @@ numpy = ">=1.13.3" name = "numpy" version = "1.24.3" description = "Fundamental package for array computing in Python" +category = "main" optional = false python-versions = ">=3.8" files = [ @@ -5405,6 +5636,7 @@ files = [ name = "nvidia-cublas-cu11" version = "11.10.3.66" description = "CUBLAS native runtime libraries" +category = "main" optional = true python-versions = ">=3" files = [ @@ -5420,6 +5652,7 @@ wheel = "*" name = "nvidia-cuda-nvrtc-cu11" version = "11.7.99" description = "NVRTC native runtime libraries" +category = "main" optional = true python-versions = ">=3" files = [ @@ -5436,6 +5669,7 @@ wheel = "*" name = "nvidia-cuda-runtime-cu11" version = "11.7.99" description = "CUDA Runtime native Libraries" +category = "main" optional = true python-versions = ">=3" files = [ @@ -5451,6 +5685,7 @@ wheel = "*" name = "nvidia-cudnn-cu11" version = "8.5.0.96" description = "cuDNN runtime libraries" +category = "main" optional = true python-versions = ">=3" files = [ @@ -5466,6 +5701,7 @@ wheel = "*" name = "o365" version = "2.0.27" description = "Microsoft Graph and Office 365 API made easy" +category = "main" optional = true python-versions = ">=3.4" files = [ @@ -5486,6 +5722,7 @@ tzlocal = ">=4.0,<5.0" name = "oauthlib" version = "3.2.2" description = "A generic, spec-compliant, thorough implementation of the OAuth request-signing logic" +category = "main" optional = true python-versions = ">=3.6" files = [ @@ -5502,6 +5739,7 @@ signedtoken = ["cryptography (>=3.0.0)", "pyjwt (>=2.0.0,<3)"] name = "openai" version = "0.27.8" description = "Python client library for the OpenAI API" +category = "main" optional = false python-versions = ">=3.7.1" files = [ @@ -5516,7 +5754,7 @@ tqdm = "*" [package.extras] datalib = ["numpy", "openpyxl (>=3.0.7)", "pandas (>=1.2.3)", "pandas-stubs (>=1.1.0.11)"] -dev = ["black (>=21.6b0,<22.0)", "pytest (==6.*)", "pytest-asyncio", "pytest-mock"] +dev = ["black (>=21.6b0,<22.0)", "pytest (>=6.0.0,<7.0.0)", "pytest-asyncio", "pytest-mock"] embeddings = ["matplotlib", "numpy", "openpyxl (>=3.0.7)", "pandas (>=1.2.3)", "pandas-stubs (>=1.1.0.11)", "plotly", "scikit-learn (>=1.0.2)", "scipy", "tenacity (>=8.0.1)"] wandb = ["numpy", "openpyxl (>=3.0.7)", "pandas (>=1.2.3)", "pandas-stubs (>=1.1.0.11)", "wandb"] @@ -5524,6 +5762,7 @@ wandb = ["numpy", "openpyxl (>=3.0.7)", "pandas (>=1.2.3)", "pandas-stubs (>=1.1 name = "openapi-schema-pydantic" version = "1.2.4" description = "OpenAPI (v3) specification schema as pydantic class" +category = "main" optional = true python-versions = ">=3.6.1" files = [ @@ -5538,6 +5777,7 @@ pydantic = ">=1.8.2" name = "openlm" version = "0.0.5" description = "Drop-in OpenAI-compatible that can call LLMs from other providers" +category = "main" optional = true python-versions = ">=3.8.1,<4.0" files = [ @@ -5552,6 +5792,7 @@ requests = ">=2,<3" name = "opensearch-py" version = "2.3.1" description = "Python client for OpenSearch" +category = "main" optional = true python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4" files = [ @@ -5576,6 +5817,7 @@ kerberos = ["requests-kerberos"] name = "opt-einsum" version = "3.3.0" description = "Optimizing numpys einsum function" +category = "main" optional = true python-versions = ">=3.5" files = [ @@ -5594,6 +5836,7 @@ tests = ["pytest", "pytest-cov", "pytest-pep8"] name = "orjson" version = "3.9.5" description = "Fast, correct Python JSON library supporting dataclasses, datetimes, and numpy" +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -5663,6 +5906,7 @@ files = [ name = "overrides" version = "7.4.0" description = "A decorator to automatically detect mismatch when overriding a method." +category = "dev" optional = false python-versions = ">=3.6" files = [ @@ -5674,6 +5918,7 @@ files = [ name = "packaging" version = "23.1" description = "Core utilities for Python packages" +category = "main" optional = false python-versions = ">=3.7" files = [ @@ -5685,6 +5930,7 @@ files = [ name = "pandas" version = "2.0.3" description = "Powerful data structures for data analysis, time series, and statistics" +category = "main" optional = false python-versions = ">=3.8" files = [ @@ -5752,6 +5998,7 @@ xml = ["lxml (>=4.6.3)"] 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 = [ @@ -5763,6 +6010,7 @@ files = [ name = "para" version = "0.0.8" description = "a set utilities that ake advantage of python's 'multiprocessing' module to distribute CPU-intensive tasks" +category = "main" optional = true python-versions = "*" files = [ @@ -5774,6 +6022,7 @@ files = [ name = "parso" version = "0.8.3" description = "A Python Parser" +category = "dev" optional = false python-versions = ">=3.6" files = [ @@ -5789,6 +6038,7 @@ testing = ["docopt", "pytest (<6.0.0)"] name = "pathos" version = "0.3.1" description = "parallel graph management and execution in heterogeneous computing" +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -5806,6 +6056,7 @@ ppft = ">=1.7.6.7" name = "pathspec" version = "0.11.2" description = "Utility library for gitignore style pattern matching of file paths." +category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -5817,6 +6068,7 @@ files = [ name = "pdfminer-six" version = "20221105" description = "PDF parser and analyzer" +category = "main" optional = true python-versions = ">=3.6" files = [ @@ -5837,6 +6089,7 @@ image = ["Pillow"] name = "pexpect" version = "4.8.0" description = "Pexpect allows easy control of interactive console applications." +category = "main" optional = false python-versions = "*" files = [ @@ -5851,6 +6104,7 @@ ptyprocess = ">=0.5" name = "pgvector" version = "0.1.8" description = "pgvector support for Python" +category = "main" optional = true python-versions = ">=3.6" files = [ @@ -5864,6 +6118,7 @@ numpy = "*" name = "pickleshare" version = "0.7.5" description = "Tiny 'shelve'-like database with concurrency support" +category = "dev" optional = false python-versions = "*" files = [ @@ -5875,6 +6130,7 @@ files = [ name = "pillow" version = "10.0.0" description = "Python Imaging Library (Fork)" +category = "main" optional = true python-versions = ">=3.8" files = [ @@ -5944,6 +6200,7 @@ tests = ["check-manifest", "coverage", "defusedxml", "markdown2", "olefile", "pa name = "pinecone-client" version = "2.2.2" description = "Pinecone client and SDK" +category = "main" optional = true python-versions = ">=3.8" files = [ @@ -5969,6 +6226,7 @@ grpc = ["googleapis-common-protos (>=1.53.0)", "grpc-gateway-protoc-gen-openapiv name = "pinecone-text" version = "0.4.2" description = "Text utilities library by Pinecone.io" +category = "main" optional = true python-versions = ">=3.8,<4.0" files = [ @@ -5988,6 +6246,7 @@ wget = ">=3.2,<4.0" name = "pkgutil-resolve-name" version = "1.3.10" description = "Resolve a name to an object." +category = "main" optional = false python-versions = ">=3.6" files = [ @@ -5999,6 +6258,7 @@ files = [ name = "platformdirs" version = "3.10.0" description = "A small Python package for determining appropriate platform-specific dirs, e.g. a \"user data dir\"." +category = "main" optional = false python-versions = ">=3.7" files = [ @@ -6014,6 +6274,7 @@ test = ["appdirs (==1.4.4)", "covdefaults (>=2.3)", "pytest (>=7.4)", "pytest-co name = "playwright" version = "1.37.0" description = "A high-level API to automate web browsers" +category = "dev" optional = false python-versions = ">=3.8" files = [ @@ -6035,6 +6296,7 @@ typing-extensions = {version = "*", markers = "python_version <= \"3.8\""} name = "pluggy" version = "1.2.0" description = "plugin and hook calling mechanisms for python" +category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -6050,6 +6312,7 @@ testing = ["pytest", "pytest-benchmark"] name = "pooch" version = "1.7.0" description = "\"Pooch manages your Python library's sample data files: it automatically downloads and stores them in a local directory, with support for versioning and corruption checks.\"" +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -6071,6 +6334,7 @@ xxhash = ["xxhash (>=1.4.3)"] name = "portalocker" version = "2.7.0" description = "Wraps the portalocker recipe for easy usage" +category = "main" optional = true python-versions = ">=3.5" files = [ @@ -6090,6 +6354,7 @@ tests = ["pytest (>=5.4.1)", "pytest-cov (>=2.8.1)", "pytest-mypy (>=0.8.0)", "p name = "pox" version = "0.3.3" description = "utilities for filesystem exploration and automated builds" +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -6101,6 +6366,7 @@ files = [ name = "ppft" version = "1.7.6.7" description = "distributed and parallel Python" +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -6115,6 +6381,7 @@ dill = ["dill (>=0.3.7)"] name = "prometheus-client" version = "0.17.1" description = "Python client for the Prometheus monitoring system." +category = "dev" optional = false python-versions = ">=3.6" files = [ @@ -6129,6 +6396,7 @@ 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 = [ @@ -6143,6 +6411,7 @@ wcwidth = "*" name = "protobuf" version = "3.20.3" description = "Protocol Buffers" +category = "main" optional = false python-versions = ">=3.7" files = [ @@ -6174,6 +6443,7 @@ files = [ 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 = [ @@ -6200,6 +6470,7 @@ test = ["enum34", "ipaddress", "mock", "pywin32", "wmi"] name = "psychicapi" version = "0.8.4" description = "Psychic.dev is an open-source data integration platform for LLMs. This is the Python client for Psychic" +category = "main" optional = true python-versions = "*" files = [ @@ -6214,6 +6485,7 @@ requests = "*" name = "psycopg2-binary" version = "2.9.7" description = "psycopg2 - Python-PostgreSQL Database Adapter" +category = "main" optional = true python-versions = ">=3.6" files = [ @@ -6283,6 +6555,7 @@ files = [ name = "ptyprocess" version = "0.7.0" description = "Run a subprocess in a pseudo terminal" +category = "main" optional = false python-versions = "*" files = [ @@ -6294,6 +6567,7 @@ files = [ name = "pure-eval" version = "0.2.2" description = "Safely evaluate AST nodes without side effects" +category = "dev" optional = false python-versions = "*" files = [ @@ -6308,6 +6582,7 @@ tests = ["pytest"] name = "py" version = "1.11.0" description = "library with cross-python path, ini-parsing, io, code, log facilities" +category = "main" optional = true python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" files = [ @@ -6319,6 +6594,7 @@ files = [ name = "py-trello" version = "0.19.0" description = "Python wrapper around the Trello API" +category = "main" optional = true python-versions = "*" files = [ @@ -6335,6 +6611,7 @@ requests-oauthlib = ">=0.4.1" name = "py4j" version = "0.10.9.7" description = "Enables Python programs to dynamically access arbitrary Java objects" +category = "main" optional = true python-versions = "*" files = [ @@ -6346,6 +6623,7 @@ files = [ name = "pyaes" version = "1.6.1" description = "Pure-Python Implementation of the AES block-cipher and common modes of operation" +category = "main" optional = true python-versions = "*" files = [ @@ -6356,6 +6634,7 @@ files = [ name = "pyarrow" version = "12.0.1" description = "Python library for Apache Arrow" +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -6393,6 +6672,7 @@ numpy = ">=1.16.6" name = "pyasn1" version = "0.5.0" description = "Pure-Python implementation of ASN.1 types and DER/BER/CER codecs (X.208)" +category = "main" optional = true python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,>=2.7" files = [ @@ -6404,6 +6684,7 @@ files = [ name = "pyasn1-modules" version = "0.3.0" description = "A collection of ASN.1-based protocols modules" +category = "main" optional = true python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,>=2.7" files = [ @@ -6418,6 +6699,7 @@ pyasn1 = ">=0.4.6,<0.6.0" name = "pycares" version = "4.3.0" description = "Python interface for c-ares" +category = "main" optional = true python-versions = "*" files = [ @@ -6485,6 +6767,7 @@ idna = ["idna (>=2.1)"] name = "pycparser" version = "2.21" description = "C parser in Python" +category = "main" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" files = [ @@ -6496,6 +6779,7 @@ files = [ name = "pydantic" version = "1.10.12" description = "Data validation and settings management using python type hints" +category = "main" optional = false python-versions = ">=3.7" files = [ @@ -6548,6 +6832,7 @@ email = ["email-validator (>=1.0.3)"] name = "pydeck" version = "0.8.0" description = "Widget for deck.gl maps" +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -6567,6 +6852,7 @@ jupyter = ["ipykernel (>=5.1.2)", "ipython (>=5.8.0)", "ipywidgets (>=7,<8)", "t name = "pyee" version = "9.0.4" description = "A port of node.js's EventEmitter to python." +category = "dev" optional = false python-versions = "*" files = [ @@ -6581,6 +6867,7 @@ typing-extensions = "*" name = "pygments" version = "2.16.1" description = "Pygments is a syntax highlighting package written in Python." +category = "main" optional = false python-versions = ">=3.7" files = [ @@ -6595,6 +6882,7 @@ plugins = ["importlib-metadata"] name = "pyjwt" version = "2.8.0" description = "JSON Web Token implementation in Python" +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -6615,6 +6903,7 @@ tests = ["coverage[toml] (==5.0.4)", "pytest (>=6.0.0,<7.0.0)"] name = "pylance" version = "0.5.10" description = "python wrapper for lance-rs" +category = "main" optional = true python-versions = ">=3.8" files = [ @@ -6636,6 +6925,7 @@ tests = ["duckdb", "ml_dtypes", "pandas (>=1.4)", "polars[pandas,pyarrow]", "pyt name = "pymongo" version = "4.5.0" description = "Python driver for MongoDB " +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -6737,6 +7027,7 @@ zstd = ["zstandard"] name = "pympler" version = "1.0.1" description = "A development tool to measure, monitor and analyze the memory behavior of Python objects." +category = "main" optional = true python-versions = ">=3.6" files = [ @@ -6748,6 +7039,7 @@ files = [ name = "pymupdf" version = "1.22.5" description = "Python bindings for the PDF toolkit and renderer MuPDF" +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -6787,6 +7079,7 @@ files = [ name = "pyowm" version = "3.3.0" description = "A Python wrapper around OpenWeatherMap web APIs" +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -6806,6 +7099,7 @@ requests = [ name = "pyparsing" version = "3.1.1" description = "pyparsing module - Classes and methods to define and execute parsing grammars" +category = "main" optional = true python-versions = ">=3.6.8" files = [ @@ -6820,6 +7114,7 @@ diagrams = ["jinja2", "railroad-diagrams"] name = "pypdf" version = "3.15.2" description = "A pure-python PDF library capable of splitting, merging, cropping, and transforming PDF files" +category = "main" optional = true python-versions = ">=3.6" files = [ @@ -6841,6 +7136,7 @@ image = ["Pillow (>=8.0.0)"] name = "pypdfium2" version = "4.18.0" description = "Python bindings to PDFium" +category = "main" optional = true python-versions = ">=3.6" files = [ @@ -6862,6 +7158,7 @@ files = [ name = "pyphen" version = "0.14.0" description = "Pure Python module to hyphenate text" +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -6877,6 +7174,7 @@ test = ["flake8", "isort", "pytest"] name = "pyproj" version = "3.5.0" description = "Python interface to PROJ (cartographic projections and coordinate transformations library)" +category = "main" optional = true python-versions = ">=3.8" files = [ @@ -6924,6 +7222,7 @@ certifi = "*" name = "pyproject-hooks" version = "1.0.0" description = "Wrappers to call pyproject.toml-based build backend hooks." +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -6938,6 +7237,7 @@ tomli = {version = ">=1.1.0", markers = "python_version < \"3.11\""} name = "pysocks" version = "1.7.1" description = "A Python SOCKS client module. See https://github.com/Anorov/PySocks for more information." +category = "main" optional = true python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" files = [ @@ -6950,6 +7250,7 @@ files = [ name = "pyspark" version = "3.4.1" description = "Apache Spark Python API" +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -6970,6 +7271,7 @@ sql = ["numpy (>=1.15)", "pandas (>=1.0.5)", "pyarrow (>=1.0.0)"] name = "pytesseract" version = "0.3.10" description = "Python-tesseract is a python wrapper for Google's Tesseract-OCR" +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -6985,6 +7287,7 @@ Pillow = ">=8.0.0" name = "pytest" version = "7.4.0" description = "pytest: simple powerful testing with Python" +category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -7007,6 +7310,7 @@ testing = ["argcomplete", "attrs (>=19.2.0)", "hypothesis (>=3.56)", "mock", "no name = "pytest-asyncio" version = "0.20.3" description = "Pytest support for asyncio" +category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -7025,6 +7329,7 @@ testing = ["coverage (>=6.2)", "flaky (>=3.5.0)", "hypothesis (>=5.7.1)", "mypy name = "pytest-cov" version = "4.1.0" description = "Pytest plugin for measuring coverage." +category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -7043,6 +7348,7 @@ testing = ["fields", "hunter", "process-tests", "pytest-xdist", "six", "virtuale name = "pytest-dotenv" version = "0.5.2" description = "A py.test plugin that parses environment files before running tests" +category = "dev" optional = false python-versions = "*" files = [ @@ -7058,6 +7364,7 @@ python-dotenv = ">=0.9.1" name = "pytest-mock" version = "3.11.1" description = "Thin-wrapper around the mock package for easier use with pytest" +category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -7075,6 +7382,7 @@ dev = ["pre-commit", "pytest-asyncio", "tox"] name = "pytest-socket" version = "0.6.0" description = "Pytest Plugin to disable socket calls during tests" +category = "dev" optional = false python-versions = ">=3.7,<4.0" files = [ @@ -7089,6 +7397,7 @@ pytest = ">=3.6.3" name = "pytest-vcr" version = "1.0.2" description = "Plugin for managing VCR.py cassettes" +category = "dev" optional = false python-versions = "*" files = [ @@ -7104,6 +7413,7 @@ vcrpy = "*" name = "pytest-watcher" version = "0.2.6" description = "Continiously runs pytest on changes in *.py files" +category = "dev" optional = false python-versions = ">=3.7.0,<4.0.0" files = [ @@ -7118,6 +7428,7 @@ watchdog = ">=2.0.0" name = "python-arango" version = "7.6.0" description = "Python Driver for ArangoDB" +category = "main" optional = true python-versions = ">=3.8" files = [ @@ -7141,6 +7452,7 @@ dev = ["black (>=22.3.0)", "flake8 (>=4.0.1)", "isort (>=5.10.1)", "mock", "mypy name = "python-dateutil" version = "2.8.2" description = "Extensions to the standard Python datetime module" +category = "main" optional = false python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,>=2.7" files = [ @@ -7155,6 +7467,7 @@ six = ">=1.5" name = "python-dotenv" version = "1.0.0" description = "Read key-value pairs from a .env file and set them as environment variables" +category = "main" optional = false python-versions = ">=3.8" files = [ @@ -7169,6 +7482,7 @@ cli = ["click (>=5.0)"] 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 = [ @@ -7180,6 +7494,7 @@ files = [ name = "python-rapidjson" version = "1.10" description = "Python wrapper around rapidjson" +category = "main" optional = true python-versions = ">=3.6" files = [ @@ -7245,6 +7560,7 @@ files = [ name = "pytz" version = "2023.3" description = "World timezone definitions, modern and historical" +category = "main" optional = false python-versions = "*" files = [ @@ -7256,6 +7572,7 @@ files = [ name = "pytz-deprecation-shim" version = "0.1.0.post0" description = "Shims to make deprecation of pytz easier" +category = "main" optional = true python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,>=2.7" files = [ @@ -7271,6 +7588,7 @@ tzdata = {version = "*", markers = "python_version >= \"3.6\""} name = "pyvespa" version = "0.33.0" description = "Python API for vespa.ai" +category = "main" optional = true python-versions = ">=3.6" files = [ @@ -7295,6 +7613,7 @@ ml = ["keras-tuner", "tensorflow", "tensorflow-ranking", "torch (<1.13)", "trans name = "pywin32" version = "306" description = "Python for Window Extensions" +category = "main" optional = false python-versions = "*" files = [ @@ -7318,6 +7637,7 @@ files = [ name = "pywinpty" version = "2.0.11" description = "Pseudo terminal support for Windows from Python." +category = "dev" optional = false python-versions = ">=3.8" files = [ @@ -7332,6 +7652,7 @@ files = [ name = "pyyaml" version = "6.0.1" description = "YAML parser and emitter for Python" +category = "main" optional = false python-versions = ">=3.6" files = [ @@ -7381,6 +7702,7 @@ files = [ name = "pyzmq" version = "25.1.1" description = "Python bindings for 0MQ" +category = "dev" optional = false python-versions = ">=3.6" files = [ @@ -7486,6 +7808,7 @@ cffi = {version = "*", markers = "implementation_name == \"pypy\""} name = "qdrant-client" version = "1.4.0" description = "Client library for the Qdrant vector search engine" +category = "main" optional = true python-versions = ">=3.7,<3.12" files = [ @@ -7506,6 +7829,7 @@ urllib3 = ">=1.26.14,<2.0.0" name = "qtconsole" version = "5.4.3" description = "Jupyter Qt console" +category = "dev" optional = false python-versions = ">= 3.7" files = [ @@ -7532,6 +7856,7 @@ 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 = [ @@ -7549,6 +7874,7 @@ test = ["pytest (>=6,!=7.0.0,!=7.0.1)", "pytest-cov (>=3.0.0)", "pytest-qt"] name = "rank-bm25" version = "0.2.2" description = "Various BM25 algorithms for document ranking" +category = "main" optional = true python-versions = "*" files = [ @@ -7566,6 +7892,7 @@ dev = ["pytest"] name = "rapidfuzz" version = "3.2.0" description = "rapid fuzzy string matching" +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -7670,6 +7997,7 @@ full = ["numpy"] name = "ratelimiter" version = "1.2.0.post0" description = "Simple python rate limiting object" +category = "main" optional = true python-versions = "*" files = [ @@ -7684,6 +8012,7 @@ test = ["pytest (>=3.0)", "pytest-asyncio"] name = "rdflib" version = "6.3.2" description = "RDFLib is a Python library for working with RDF, a simple yet powerful language for representing information." +category = "main" optional = true python-versions = ">=3.7,<4.0" files = [ @@ -7705,6 +8034,7 @@ networkx = ["networkx (>=2.0.0,<3.0.0)"] name = "redis" version = "4.6.0" description = "Python client for Redis database and key-value store" +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -7723,6 +8053,7 @@ ocsp = ["cryptography (>=36.0.1)", "pyopenssl (==20.0.1)", "requests (>=2.26.0)" name = "referencing" version = "0.30.2" description = "JSON Referencing + Python" +category = "main" optional = false python-versions = ">=3.8" files = [ @@ -7738,6 +8069,7 @@ rpds-py = ">=0.7.0" name = "regex" version = "2023.8.8" description = "Alternative regular expression module, to replace re." +category = "main" optional = false python-versions = ">=3.6" files = [ @@ -7835,6 +8167,7 @@ files = [ name = "requests" version = "2.31.0" description = "Python HTTP for Humans." +category = "main" optional = false python-versions = ">=3.7" files = [ @@ -7857,6 +8190,7 @@ use-chardet-on-py3 = ["chardet (>=3.0.2,<6)"] name = "requests-file" version = "1.5.1" description = "File transport adapter for Requests" +category = "main" optional = true python-versions = "*" files = [ @@ -7872,6 +8206,7 @@ six = "*" name = "requests-oauthlib" version = "1.3.1" description = "OAuthlib authentication support for Requests." +category = "main" optional = true python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" files = [ @@ -7890,6 +8225,7 @@ rsa = ["oauthlib[signedtoken] (>=3.0.0)"] name = "requests-toolbelt" version = "1.0.0" description = "A utility belt for advanced users of python-requests" +category = "main" optional = true python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" files = [ @@ -7904,6 +8240,7 @@ requests = ">=2.0.1,<3.0.0" name = "responses" version = "0.22.0" description = "A utility library for mocking out the `requests` Python library." +category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -7924,6 +8261,7 @@ tests = ["coverage (>=6.0.0)", "flake8", "mypy", "pytest (>=7.0.0)", "pytest-asy name = "retry" version = "0.9.2" description = "Easy to use retry decorator." +category = "main" optional = true python-versions = "*" files = [ @@ -7939,6 +8277,7 @@ py = ">=1.4.26,<2.0.0" 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 = [ @@ -7953,6 +8292,7 @@ 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 = [ @@ -7964,6 +8304,7 @@ files = [ name = "rich" version = "13.5.2" description = "Render rich text, tables, progress bars, syntax highlighting, markdown and more to the terminal" +category = "main" optional = true python-versions = ">=3.7.0" files = [ @@ -7983,6 +8324,7 @@ jupyter = ["ipywidgets (>=7.5.1,<9)"] name = "rpds-py" version = "0.9.2" description = "Python bindings to Rust's persistent data structures (rpds)" +category = "main" optional = false python-versions = ">=3.8" files = [ @@ -8089,6 +8431,7 @@ files = [ name = "rsa" version = "4.9" description = "Pure-Python RSA implementation" +category = "main" optional = true python-versions = ">=3.6,<4" files = [ @@ -8103,6 +8446,7 @@ pyasn1 = ">=0.1.3" name = "ruff" version = "0.0.249" description = "An extremely fast Python linter, written in Rust." +category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -8129,6 +8473,7 @@ files = [ name = "s3transfer" version = "0.6.2" description = "An Amazon S3 Transfer Manager" +category = "main" optional = true python-versions = ">= 3.7" files = [ @@ -8146,11 +8491,14 @@ crt = ["botocore[crt] (>=1.20.29,<2.0a.0)"] name = "safetensors" version = "0.3.2" description = "Fast and Safe Tensor serialization" +category = "main" optional = true python-versions = "*" files = [ + {file = "safetensors-0.3.2-cp310-cp310-macosx_10_11_x86_64.whl", hash = "sha256:4c7827b64b1da3f082301b5f5a34331b8313104c14f257099a12d32ac621c5cd"}, {file = "safetensors-0.3.2-cp310-cp310-macosx_11_0_x86_64.whl", hash = "sha256:b6a66989075c2891d743153e8ba9ca84ee7232c8539704488f454199b8b8f84d"}, {file = "safetensors-0.3.2-cp310-cp310-macosx_12_0_arm64.whl", hash = "sha256:670d6bc3a3b377278ce2971fa7c36ebc0a35041c4ea23b9df750a39380800195"}, + {file = "safetensors-0.3.2-cp310-cp310-macosx_12_0_x86_64.whl", hash = "sha256:67ef2cc747c88e3a8d8e4628d715874c0366a8ff1e66713a9d42285a429623ad"}, {file = "safetensors-0.3.2-cp310-cp310-macosx_13_0_arm64.whl", hash = "sha256:564f42838721925b5313ae864ba6caa6f4c80a9fbe63cf24310c3be98ab013cd"}, {file = "safetensors-0.3.2-cp310-cp310-macosx_13_0_x86_64.whl", hash = "sha256:7f80af7e4ab3188daaff12d43d078da3017a90d732d38d7af4eb08b6ca2198a5"}, {file = "safetensors-0.3.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ec30d78f20f1235b252d59cbb9755beb35a1fde8c24c89b3c98e6a1804cfd432"}, @@ -8159,7 +8507,9 @@ files = [ {file = "safetensors-0.3.2-cp310-cp310-win32.whl", hash = "sha256:2961c1243fd0da46aa6a1c835305cc4595486f8ac64632a604d0eb5f2de76175"}, {file = "safetensors-0.3.2-cp310-cp310-win_amd64.whl", hash = "sha256:c813920482c337d1424d306e1b05824a38e3ef94303748a0a287dea7a8c4f805"}, {file = "safetensors-0.3.2-cp311-cp311-macosx_10_11_universal2.whl", hash = "sha256:707df34bd9b9047e97332136ad98e57028faeccdb9cfe1c3b52aba5964cc24bf"}, + {file = "safetensors-0.3.2-cp311-cp311-macosx_11_0_universal2.whl", hash = "sha256:23d1d9f74208c9dfdf852a9f986dac63e40092385f84bf0789d599efa8e6522f"}, {file = "safetensors-0.3.2-cp311-cp311-macosx_12_0_arm64.whl", hash = "sha256:becc5bb85b2947eae20ed23b407ebfd5277d9a560f90381fe2c42e6c043677ba"}, + {file = "safetensors-0.3.2-cp311-cp311-macosx_12_0_universal2.whl", hash = "sha256:c1913c6c549b1805e924f307159f0ee97b73ae3ce150cd2401964da015e0fa0b"}, {file = "safetensors-0.3.2-cp311-cp311-macosx_13_0_arm64.whl", hash = "sha256:30a75707be5cc9686490bde14b9a371cede4af53244ea72b340cfbabfffdf58a"}, {file = "safetensors-0.3.2-cp311-cp311-macosx_13_0_universal2.whl", hash = "sha256:54ad6af663e15e2b99e2ea3280981b7514485df72ba6d014dc22dae7ba6a5e6c"}, {file = "safetensors-0.3.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:37764b3197656ef507a266c453e909a3477dabc795962b38e3ad28226f53153b"}, @@ -8167,22 +8517,28 @@ files = [ {file = "safetensors-0.3.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ada0fac127ff8fb04834da5c6d85a8077e6a1c9180a11251d96f8068db922a17"}, {file = "safetensors-0.3.2-cp311-cp311-win32.whl", hash = "sha256:155b82dbe2b0ebff18cde3f76b42b6d9470296e92561ef1a282004d449fa2b4c"}, {file = "safetensors-0.3.2-cp311-cp311-win_amd64.whl", hash = "sha256:a86428d196959619ce90197731be9391b5098b35100a7228ef4643957648f7f5"}, + {file = "safetensors-0.3.2-cp37-cp37m-macosx_10_11_x86_64.whl", hash = "sha256:91e796b6e465d9ffaca4c411d749f236c211e257f3a8e9b25a5ffc1a42d3bfa7"}, {file = "safetensors-0.3.2-cp37-cp37m-macosx_11_0_x86_64.whl", hash = "sha256:c1f8ab41ed735c5b581f451fd15d9602ff51aa88044bfa933c5fa4b1d0c644d1"}, + {file = "safetensors-0.3.2-cp37-cp37m-macosx_12_0_x86_64.whl", hash = "sha256:e6a8ff5652493598c45cd27f5613c193d3f15e76e0f81613d399c487a7b8cc50"}, {file = "safetensors-0.3.2-cp37-cp37m-macosx_13_0_x86_64.whl", hash = "sha256:bc9cfb3c9ea2aec89685b4d656f9f2296f0f0d67ecf2bebf950870e3be89b3db"}, {file = "safetensors-0.3.2-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ace5d471e3d78e0d93f952707d808b5ab5eac77ddb034ceb702e602e9acf2be9"}, {file = "safetensors-0.3.2-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:de3e20a388b444381bcda1a3193cce51825ddca277e4cf3ed1fe8d9b2d5722cd"}, {file = "safetensors-0.3.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3d7d70d48585fe8df00725aa788f2e64fd24a4c9ae07cd6be34f6859d0f89a9c"}, {file = "safetensors-0.3.2-cp37-cp37m-win32.whl", hash = "sha256:6ff59bc90cdc857f68b1023be9085fda6202bbe7f2fd67d06af8f976d6adcc10"}, {file = "safetensors-0.3.2-cp37-cp37m-win_amd64.whl", hash = "sha256:8b05c93da15fa911763a89281906ca333ed800ab0ef1c7ce53317aa1a2322f19"}, + {file = "safetensors-0.3.2-cp38-cp38-macosx_10_11_x86_64.whl", hash = "sha256:94857abc019b49a22a0065cc7741c48fb788aa7d8f3f4690c092c56090227abe"}, {file = "safetensors-0.3.2-cp38-cp38-macosx_11_0_x86_64.whl", hash = "sha256:8969cfd9e8d904e8d3c67c989e1bd9a95e3cc8980d4f95e4dcd43c299bb94253"}, + {file = "safetensors-0.3.2-cp38-cp38-macosx_12_0_x86_64.whl", hash = "sha256:da482fa011dc88fe7376d8f8b42c0ccef2f260e0cbc847ceca29c708bf75a868"}, {file = "safetensors-0.3.2-cp38-cp38-macosx_13_0_x86_64.whl", hash = "sha256:f54148ac027556eb02187e9bc1556c4d916c99ca3cb34ca36a7d304d675035c1"}, {file = "safetensors-0.3.2-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:caec25fedbcf73f66c9261984f07885680f71417fc173f52279276c7f8a5edd3"}, {file = "safetensors-0.3.2-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:50224a1d99927ccf3b75e27c3d412f7043280431ab100b4f08aad470c37cf99a"}, {file = "safetensors-0.3.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:aa98f49e95f02eb750d32c4947e7d5aa43883149ebd0414920866446525b70f0"}, {file = "safetensors-0.3.2-cp38-cp38-win32.whl", hash = "sha256:33409df5e28a83dc5cc5547a3ac17c0f1b13a1847b1eb3bc4b3be0df9915171e"}, {file = "safetensors-0.3.2-cp38-cp38-win_amd64.whl", hash = "sha256:e04a7cbbb3856159ab99e3adb14521544f65fcb8548cce773a1435a0f8d78d27"}, + {file = "safetensors-0.3.2-cp39-cp39-macosx_10_11_x86_64.whl", hash = "sha256:f39f3d951543b594c6bc5082149d994c47ca487fd5d55b4ce065ab90441aa334"}, {file = "safetensors-0.3.2-cp39-cp39-macosx_11_0_x86_64.whl", hash = "sha256:7c864cf5dcbfb608c5378f83319c60cc9c97263343b57c02756b7613cd5ab4dd"}, {file = "safetensors-0.3.2-cp39-cp39-macosx_12_0_arm64.whl", hash = "sha256:14e8c19d6dc51d4f70ee33c46aff04c8ba3f95812e74daf8036c24bc86e75cae"}, + {file = "safetensors-0.3.2-cp39-cp39-macosx_12_0_x86_64.whl", hash = "sha256:41b10b0a6dfe8fdfbe4b911d64717d5647e87fbd7377b2eb3d03fb94b59810ea"}, {file = "safetensors-0.3.2-cp39-cp39-macosx_13_0_arm64.whl", hash = "sha256:042a60f633c3c7009fdf6a7c182b165cb7283649d2a1e9c7a4a1c23454bd9a5b"}, {file = "safetensors-0.3.2-cp39-cp39-macosx_13_0_x86_64.whl", hash = "sha256:fafd95e5ef41e8f312e2a32b7031f7b9b2a621b255f867b221f94bb2e9f51ae8"}, {file = "safetensors-0.3.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8ed77cf358abce2307f03634694e0b2a29822e322a1623e0b1aa4b41e871bf8b"}, @@ -8209,6 +8565,7 @@ torch = ["torch (>=1.10)"] name = "scikit-learn" version = "1.3.0" description = "A set of python modules for machine learning and data mining" +category = "main" optional = true python-versions = ">=3.8" files = [ @@ -8251,6 +8608,7 @@ tests = ["black (>=23.3.0)", "matplotlib (>=3.1.3)", "mypy (>=1.3)", "numpydoc ( name = "scipy" version = "1.9.3" description = "Fundamental algorithms for scientific computing in Python" +category = "main" optional = true python-versions = ">=3.8" files = [ @@ -8289,6 +8647,7 @@ test = ["asv", "gmpy2", "mpmath", "pytest", "pytest-cov", "pytest-xdist", "sciki name = "semver" version = "3.0.1" description = "Python helper for Semantic Versioning (https://semver.org)" +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -8300,6 +8659,7 @@ 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 = [ @@ -8316,6 +8676,7 @@ win32 = ["pywin32"] name = "sentence-transformers" version = "2.2.2" description = "Multilingual text embeddings" +category = "main" optional = true python-versions = ">=3.6.0" files = [ @@ -8338,6 +8699,7 @@ transformers = ">=4.6.0,<5.0.0" name = "sentencepiece" version = "0.1.99" description = "SentencePiece python wrapper" +category = "main" optional = true python-versions = "*" files = [ @@ -8392,6 +8754,7 @@ files = [ name = "setuptools" version = "67.8.0" description = "Easily download, build, install, upgrade, and uninstall Python packages" +category = "main" optional = false python-versions = ">=3.7" files = [ @@ -8408,6 +8771,7 @@ testing-integration = ["build[virtualenv]", "filelock (>=3.4.0)", "jaraco.envs ( name = "sgmllib3k" version = "1.0.0" description = "Py3k port of sgmllib." +category = "main" optional = true python-versions = "*" files = [ @@ -8418,6 +8782,7 @@ files = [ name = "shapely" version = "2.0.1" description = "Manipulation and analysis of geometric objects" +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -8465,13 +8830,14 @@ files = [ numpy = ">=1.14" [package.extras] -docs = ["matplotlib", "numpydoc (==1.1.*)", "sphinx", "sphinx-book-theme", "sphinx-remove-toctrees"] +docs = ["matplotlib", "numpydoc (>=1.1.0,<1.2.0)", "sphinx", "sphinx-book-theme", "sphinx-remove-toctrees"] test = ["pytest", "pytest-cov"] [[package]] name = "singlestoredb" version = "0.7.1" description = "Interface to the SingleStore database and cluster management APIs" +category = "main" optional = true python-versions = ">=3.6" files = [ @@ -8504,6 +8870,7 @@ sqlalchemy = ["sqlalchemy-singlestoredb"] name = "six" version = "1.16.0" description = "Python 2 and 3 compatibility utilities" +category = "main" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*" files = [ @@ -8515,6 +8882,7 @@ files = [ name = "smmap" version = "5.0.0" description = "A pure Python implementation of a sliding window memory map manager" +category = "main" optional = true python-versions = ">=3.6" files = [ @@ -8526,6 +8894,7 @@ files = [ name = "sniffio" version = "1.3.0" description = "Sniff out which async library your code is running under" +category = "main" optional = false python-versions = ">=3.7" files = [ @@ -8537,6 +8906,7 @@ files = [ name = "socksio" version = "1.0.0" description = "Sans-I/O implementation of SOCKS4, SOCKS4A, and SOCKS5." +category = "main" optional = true python-versions = ">=3.6" files = [ @@ -8548,6 +8918,7 @@ files = [ name = "soundfile" version = "0.12.1" description = "An audio library based on libsndfile, CFFI and NumPy" +category = "main" optional = true python-versions = "*" files = [ @@ -8571,6 +8942,7 @@ numpy = ["numpy"] name = "soupsieve" version = "2.4.1" description = "A modern CSS selector implementation for Beautiful Soup." +category = "main" optional = false python-versions = ">=3.7" files = [ @@ -8582,6 +8954,7 @@ files = [ name = "soxr" version = "0.3.6" description = "High quality, one-dimensional sample-rate conversion library" +category = "main" optional = true python-versions = ">=3.6" files = [ @@ -8623,6 +8996,7 @@ test = ["pytest"] name = "sqlalchemy" version = "2.0.20" description = "Database Abstraction Library" +category = "main" optional = false python-versions = ">=3.7" files = [ @@ -8670,7 +9044,7 @@ files = [ ] [package.dependencies] -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\""} +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\""} typing-extensions = ">=4.2.0" [package.extras] @@ -8701,6 +9075,7 @@ sqlcipher = ["sqlcipher3-binary"] name = "sqlite-vss" version = "0.1.2" description = "" +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -8716,6 +9091,7 @@ test = ["pytest"] name = "sqlitedict" version = "2.1.0" description = "Persistent dict in Python, backed up by sqlite3 and pickle, multithread-safe." +category = "main" optional = true python-versions = "*" files = [ @@ -8726,6 +9102,7 @@ files = [ name = "sqlparams" version = "5.1.0" description = "Convert between various DB API 2.0 parameter styles." +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -8737,6 +9114,7 @@ files = [ 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 = [ @@ -8756,6 +9134,7 @@ tests = ["cython", "littleutils", "pygments", "pytest", "typeguard"] name = "streamlit" version = "1.22.0" description = "A faster way to build and share data apps" +category = "main" optional = true python-versions = ">=3.7, !=3.9.7" files = [ @@ -8796,6 +9175,7 @@ snowflake = ["snowflake-snowpark-python"] name = "stringcase" version = "1.2.0" description = "String case converter." +category = "main" optional = true python-versions = "*" files = [ @@ -8806,6 +9186,7 @@ files = [ name = "sympy" version = "1.12" description = "Computer algebra system (CAS) in Python" +category = "main" optional = true python-versions = ">=3.8" files = [ @@ -8820,6 +9201,7 @@ mpmath = ">=0.19" name = "syrupy" version = "4.2.1" description = "Pytest Snapshot Test Utility" +category = "dev" optional = false python-versions = ">=3.8.1,<4" files = [ @@ -8835,6 +9217,7 @@ pytest = ">=7.0.0,<8.0.0" name = "telethon" version = "1.29.3" description = "Full-featured Telegram client library for Python 3" +category = "main" optional = true python-versions = ">=3.5" files = [ @@ -8852,6 +9235,7 @@ cryptg = ["cryptg"] name = "tenacity" version = "8.2.3" description = "Retry code until it succeeds" +category = "main" optional = false python-versions = ">=3.7" files = [ @@ -8866,6 +9250,7 @@ doc = ["reno", "sphinx", "tornado (>=4.5)"] name = "tensorboard" version = "2.13.0" description = "TensorBoard lets you watch Tensors Flow" +category = "main" optional = true python-versions = ">=3.8" files = [ @@ -8890,6 +9275,7 @@ wheel = ">=0.26" name = "tensorboard-data-server" version = "0.7.1" description = "Fast data loading for TensorBoard" +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -8902,6 +9288,7 @@ files = [ name = "tensorflow" version = "2.13.0" description = "TensorFlow is an open source machine learning framework for everyone." +category = "main" optional = true python-versions = ">=3.8" files = [ @@ -8954,6 +9341,7 @@ wrapt = ">=1.11.0" name = "tensorflow-estimator" version = "2.13.0" description = "TensorFlow Estimator." +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -8964,6 +9352,7 @@ files = [ name = "tensorflow-hub" version = "0.14.0" description = "TensorFlow Hub is a library to foster the publication, discovery, and consumption of reusable parts of machine learning models." +category = "main" optional = true python-versions = "*" files = [ @@ -8978,6 +9367,7 @@ protobuf = ">=3.19.6" name = "tensorflow-io-gcs-filesystem" version = "0.33.0" description = "TensorFlow IO" +category = "main" optional = true python-versions = ">=3.7, <3.12" files = [ @@ -9008,6 +9398,7 @@ tensorflow-rocm = ["tensorflow-rocm (>=2.13.0,<2.14.0)"] name = "tensorflow-macos" version = "2.13.0" description = "TensorFlow is an open source machine learning framework for everyone." +category = "main" optional = true python-versions = ">=3.8" files = [ @@ -9043,6 +9434,7 @@ wrapt = ">=1.11.0" name = "tensorflow-text" version = "2.13.0" description = "TF.Text is a TensorFlow library of text related ops, modules, and subgraphs." +category = "main" optional = true python-versions = "*" files = [ @@ -9067,6 +9459,7 @@ tests = ["absl-py", "pytest", "tensorflow-datasets (>=3.2.0)"] name = "termcolor" version = "2.3.0" description = "ANSI color formatting for output in terminal" +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -9081,6 +9474,7 @@ tests = ["pytest", "pytest-cov"] 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 = [ @@ -9101,6 +9495,7 @@ test = ["pre-commit", "pytest (>=7.0)", "pytest-timeout"] name = "textstat" version = "0.7.3" description = "Calculate statistical features from text" +category = "main" optional = true python-versions = ">=3.6" files = [ @@ -9115,6 +9510,7 @@ pyphen = "*" name = "threadpoolctl" version = "3.2.0" description = "threadpoolctl" +category = "main" optional = true python-versions = ">=3.8" files = [ @@ -9126,6 +9522,7 @@ files = [ name = "tigrisdb" version = "1.0.0b6" description = "Python SDK for Tigris " +category = "main" optional = true python-versions = ">=3.8,<4.0" files = [ @@ -9141,6 +9538,7 @@ protobuf = ">=3.19.6" name = "tiktoken" version = "0.3.3" description = "tiktoken is a fast BPE tokeniser for use with OpenAI's models" +category = "main" optional = false python-versions = ">=3.8" files = [ @@ -9186,6 +9584,7 @@ blobfile = ["blobfile (>=2)"] name = "tinycss2" version = "1.2.1" description = "A tiny CSS parser" +category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -9204,6 +9603,7 @@ test = ["flake8", "isort", "pytest"] name = "tinysegmenter" version = "0.3" description = "Very compact Japanese tokenizer" +category = "main" optional = true python-versions = "*" files = [ @@ -9214,6 +9614,7 @@ files = [ name = "tldextract" version = "3.4.4" description = "Accurately separates a URL's subdomain, domain, and public suffix, using the Public Suffix List (PSL). By default, this includes the public ICANN TLDs and their exceptions. You can optionally support the Public Suffix List's private domains as well." +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -9231,6 +9632,7 @@ requests-file = ">=1.4" name = "tokenizers" version = "0.13.3" description = "Fast and Customizable Tokenizers" +category = "main" optional = true python-versions = "*" files = [ @@ -9285,6 +9687,7 @@ testing = ["black (==22.3)", "datasets", "numpy", "pytest", "requests"] name = "toml" version = "0.10.2" description = "Python Library for Tom's Obvious, Minimal Language" +category = "main" optional = false python-versions = ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*" files = [ @@ -9296,6 +9699,7 @@ files = [ name = "tomli" version = "2.0.1" description = "A lil' TOML parser" +category = "main" optional = false python-versions = ">=3.7" files = [ @@ -9307,6 +9711,7 @@ files = [ name = "toolz" version = "0.12.0" description = "List processing tools and functional utilities" +category = "main" optional = true python-versions = ">=3.5" files = [ @@ -9318,6 +9723,7 @@ files = [ name = "torch" version = "1.13.1" description = "Tensors and Dynamic neural networks in Python with strong GPU acceleration" +category = "main" optional = true python-versions = ">=3.7.0" files = [ @@ -9358,6 +9764,7 @@ opt-einsum = ["opt-einsum (>=3.3)"] name = "torchvision" version = "0.14.1" description = "image and video datasets and models for torch deep learning" +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -9384,7 +9791,7 @@ files = [ [package.dependencies] numpy = "*" -pillow = ">=5.3.0,<8.3.dev0 || >=8.4.dev0" +pillow = ">=5.3.0,<8.3.0 || >=8.4.0" requests = "*" torch = "1.13.1" typing-extensions = "*" @@ -9396,6 +9803,7 @@ scipy = ["scipy"] name = "tornado" version = "6.3.3" description = "Tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed." +category = "main" optional = false python-versions = ">= 3.8" files = [ @@ -9416,6 +9824,7 @@ files = [ name = "tqdm" version = "4.66.1" description = "Fast, Extensible Progress Meter" +category = "main" optional = false python-versions = ">=3.7" files = [ @@ -9436,6 +9845,7 @@ telegram = ["requests"] name = "traitlets" version = "5.9.0" description = "Traitlets Python configuration system" +category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -9451,6 +9861,7 @@ test = ["argcomplete (>=2.0)", "pre-commit", "pytest", "pytest-mock"] name = "transformers" version = "4.32.0" description = "State-of-the-art Machine Learning for JAX, PyTorch and TensorFlow" +category = "main" optional = true python-versions = ">=3.8.0" files = [ @@ -9520,6 +9931,7 @@ vision = ["Pillow (<10.0.0)"] name = "tritonclient" version = "2.34.0" description = "Python client library and utilities for communicating with Triton Inference Server" +category = "main" optional = true python-versions = "*" files = [ @@ -9541,6 +9953,7 @@ http = ["aiohttp (>=3.8.1,<4.0.0)", "geventhttpclient (>=1.4.4,<=2.0.2)", "numpy name = "types-chardet" version = "5.0.4.6" description = "Typing stubs for chardet" +category = "dev" optional = false python-versions = "*" files = [ @@ -9552,6 +9965,7 @@ files = [ name = "types-protobuf" version = "4.24.0.1" description = "Typing stubs for protobuf" +category = "dev" optional = false python-versions = "*" files = [ @@ -9563,6 +9977,7 @@ files = [ name = "types-pyopenssl" version = "23.2.0.2" description = "Typing stubs for pyOpenSSL" +category = "dev" optional = false python-versions = "*" files = [ @@ -9577,6 +9992,7 @@ cryptography = ">=35.0.0" name = "types-pytz" version = "2023.3.0.1" description = "Typing stubs for pytz" +category = "dev" optional = false python-versions = "*" files = [ @@ -9588,6 +10004,7 @@ files = [ name = "types-pyyaml" version = "6.0.12.11" description = "Typing stubs for PyYAML" +category = "dev" optional = false python-versions = "*" files = [ @@ -9599,6 +10016,7 @@ files = [ name = "types-redis" version = "4.6.0.5" description = "Typing stubs for redis" +category = "dev" optional = false python-versions = "*" files = [ @@ -9614,6 +10032,7 @@ types-pyOpenSSL = "*" name = "types-requests" version = "2.31.0.2" description = "Typing stubs for requests" +category = "main" optional = false python-versions = "*" files = [ @@ -9628,6 +10047,7 @@ types-urllib3 = "*" name = "types-toml" version = "0.10.8.7" description = "Typing stubs for toml" +category = "dev" optional = false python-versions = "*" files = [ @@ -9639,6 +10059,7 @@ files = [ name = "types-urllib3" version = "1.26.25.14" description = "Typing stubs for urllib3" +category = "main" optional = false python-versions = "*" files = [ @@ -9650,6 +10071,7 @@ files = [ name = "typing-extensions" version = "4.5.0" description = "Backported and Experimental Type Hints for Python 3.7+" +category = "main" optional = false python-versions = ">=3.7" files = [ @@ -9661,6 +10083,7 @@ files = [ name = "typing-inspect" version = "0.9.0" description = "Runtime inspection utilities for typing module." +category = "main" optional = false python-versions = "*" files = [ @@ -9676,6 +10099,7 @@ typing-extensions = ">=3.7.4" name = "tzdata" version = "2023.3" description = "Provider of IANA time zone data" +category = "main" optional = false python-versions = ">=2" files = [ @@ -9687,6 +10111,7 @@ files = [ name = "tzlocal" version = "4.3.1" description = "tzinfo object for the local timezone" +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -9706,6 +10131,7 @@ devenv = ["black", "check-manifest", "flake8", "pyroma", "pytest (>=4.3)", "pyte name = "uri-template" version = "1.3.0" description = "RFC 6570 URI Template Processor" +category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -9720,6 +10146,7 @@ dev = ["flake8", "flake8-annotations", "flake8-bandit", "flake8-bugbear", "flake name = "uritemplate" version = "4.1.1" description = "Implementation of RFC 6570 URI Templates" +category = "main" optional = true python-versions = ">=3.6" files = [ @@ -9731,6 +10158,7 @@ files = [ name = "urllib3" version = "1.26.16" description = "HTTP library with thread-safe connection pooling, file post, and more." +category = "main" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*" files = [ @@ -9747,6 +10175,7 @@ socks = ["PySocks (>=1.5.6,!=1.5.7,<2.0)"] name = "validators" version = "0.21.0" description = "Python Data Validation for Humans™" +category = "main" optional = true python-versions = ">=3.8,<4.0" files = [ @@ -9758,6 +10187,7 @@ files = [ name = "vcrpy" version = "5.1.0" description = "Automatically mock your HTTP interactions to simplify and speed up testing" +category = "dev" optional = false python-versions = ">=3.8" files = [ @@ -9775,6 +10205,7 @@ yarl = "*" name = "watchdog" version = "3.0.0" description = "Filesystem events monitoring" +category = "main" optional = false python-versions = ">=3.7" files = [ @@ -9814,6 +10245,7 @@ watchmedo = ["PyYAML (>=3.10)"] name = "wcwidth" version = "0.2.6" description = "Measures the displayed width of unicode strings in a terminal" +category = "dev" optional = false python-versions = "*" files = [ @@ -9825,6 +10257,7 @@ files = [ name = "weaviate-client" version = "3.23.0" description = "A python native Weaviate client" +category = "main" optional = true python-versions = ">=3.8" files = [ @@ -9845,6 +10278,7 @@ grpc = ["grpcio", "grpcio-tools"] 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 = [ @@ -9860,6 +10294,7 @@ 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 = [ @@ -9871,6 +10306,7 @@ files = [ name = "websocket-client" version = "1.6.2" description = "WebSocket client for Python with low level API options" +category = "main" optional = false python-versions = ">=3.8" files = [ @@ -9887,6 +10323,7 @@ test = ["websockets"] name = "websockets" version = "11.0.3" description = "An implementation of the WebSocket Protocol (RFC 6455 & 7692)" +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -9966,6 +10403,7 @@ files = [ name = "werkzeug" version = "2.3.7" description = "The comprehensive WSGI web application library." +category = "main" optional = true python-versions = ">=3.8" files = [ @@ -9983,6 +10421,7 @@ watchdog = ["watchdog (>=2.3)"] name = "wget" version = "3.2" description = "pure python download utility" +category = "main" optional = true python-versions = "*" files = [ @@ -9993,6 +10432,7 @@ files = [ name = "wheel" version = "0.41.2" description = "A built-package format for Python" +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -10007,6 +10447,7 @@ test = ["pytest (>=6.0.0)", "setuptools (>=65)"] name = "whylabs-client" version = "0.5.4" description = "WhyLabs API client" +category = "main" optional = true python-versions = ">=3.6" files = [ @@ -10022,6 +10463,7 @@ urllib3 = ">=1.25.3" name = "whylogs" version = "1.2.6" description = "Profile and monitor your ML data pipeline end-to-end" +category = "main" optional = true python-versions = ">=3.7.1,<4" files = [ @@ -10055,6 +10497,7 @@ viz = ["Pillow (>=9.2.0,<10.0.0)", "ipython", "numpy", "numpy (>=1.23.2)", "pyba name = "whylogs-sketching" version = "3.4.1.dev3" description = "sketching library of whylogs" +category = "main" optional = true python-versions = "*" files = [ @@ -10095,6 +10538,7 @@ files = [ name = "widgetsnbextension" version = "4.0.8" description = "Jupyter interactive widgets for Jupyter Notebook" +category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -10106,6 +10550,7 @@ files = [ name = "wikipedia" version = "1.4.0" description = "Wikipedia API for Python" +category = "main" optional = true python-versions = "*" files = [ @@ -10120,6 +10565,7 @@ requests = ">=2.0.0,<3.0.0" name = "win32-setctime" version = "1.1.0" description = "A small Python utility to set file creation time on Windows" +category = "main" optional = true python-versions = ">=3.5" files = [ @@ -10134,6 +10580,7 @@ dev = ["black (>=19.3b0)", "pytest (>=4.6.2)"] name = "wolframalpha" version = "5.0.0" description = "Wolfram|Alpha 2.0 API client" +category = "main" optional = true python-versions = ">=3.6" files = [ @@ -10154,6 +10601,7 @@ testing = ["keyring", "pmxbot", "pytest (>=3.5,!=3.7.3)", "pytest-black (>=0.3.7 name = "wonderwords" version = "2.2.0" description = "A python package for random words and sentences in the english language" +category = "main" optional = true python-versions = ">=3.6" files = [ @@ -10168,6 +10616,7 @@ cli = ["rich (==9.10.0)"] name = "wrapt" version = "1.15.0" description = "Module for decorators, wrappers and monkey patching." +category = "main" optional = false python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,>=2.7" files = [ @@ -10252,6 +10701,7 @@ files = [ name = "xata" version = "1.0.0b0" description = "Python client for Xata.io" +category = "main" optional = true python-versions = ">=3.8,<4.0" files = [ @@ -10269,6 +10719,7 @@ requests = ">=2.28.1,<3.0.0" name = "xmltodict" version = "0.13.0" description = "Makes working with XML feel like you are working with JSON" +category = "main" optional = true python-versions = ">=3.4" files = [ @@ -10280,6 +10731,7 @@ files = [ name = "yarl" version = "1.9.2" description = "Yet another URL library" +category = "main" optional = false python-versions = ">=3.7" files = [ @@ -10367,6 +10819,7 @@ multidict = ">=4.0" name = "zipp" version = "3.16.2" description = "Backport of pathlib-compatible object wrapper for zip files" +category = "main" optional = false python-versions = ">=3.8" files = [ @@ -10382,6 +10835,7 @@ testing = ["big-O", "jaraco.functools", "jaraco.itertools", "more-itertools", "p name = "zstandard" version = "0.21.0" description = "Zstandard bindings for Python" +category = "main" optional = true python-versions = ">=3.7" files = [ @@ -10437,15 +10891,15 @@ cffi = {version = ">=1.11", markers = "platform_python_implementation == \"PyPy\ cffi = ["cffi (>=1.11)"] [extras] -all = ["O365", "aleph-alpha-client", "amadeus", "arxiv", "atlassian-python-api", "awadb", "azure-ai-formrecognizer", "azure-ai-vision", "azure-cognitiveservices-speech", "azure-cosmos", "azure-identity", "beautifulsoup4", "clarifai", "clickhouse-connect", "cohere", "deeplake", "docarray", "duckduckgo-search", "elasticsearch", "esprima", "faiss-cpu", "google-api-python-client", "google-auth", "google-search-results", "gptcache", "html2text", "huggingface_hub", "jinja2", "jq", "lancedb", "langkit", "lark", "libdeeplake", "librosa", "lxml", "manifest-ml", "marqo", "momento", "nebula3-python", "neo4j", "networkx", "nlpcloud", "nltk", "nomic", "openai", "openlm", "opensearch-py", "pdfminer-six", "pexpect", "pgvector", "pinecone-client", "pinecone-text", "psycopg2-binary", "pymongo", "pyowm", "pypdf", "pytesseract", "python-arango", "pyvespa", "qdrant-client", "rdflib", "redis", "requests-toolbelt", "sentence-transformers", "singlestoredb", "tensorflow-text", "tigrisdb", "tiktoken", "torch", "transformers", "weaviate-client", "wikipedia", "wolframalpha"] -azure = ["azure-ai-formrecognizer", "azure-ai-vision", "azure-cognitiveservices-speech", "azure-core", "azure-cosmos", "azure-identity", "azure-search-documents", "openai"] +all = ["clarifai", "cohere", "openai", "nlpcloud", "huggingface_hub", "manifest-ml", "elasticsearch", "opensearch-py", "google-search-results", "faiss-cpu", "sentence-transformers", "transformers", "nltk", "wikipedia", "beautifulsoup4", "tiktoken", "torch", "jinja2", "pinecone-client", "pinecone-text", "marqo", "pymongo", "weaviate-client", "redis", "google-api-python-client", "google-auth", "wolframalpha", "qdrant-client", "tensorflow-text", "pypdf", "networkx", "nomic", "aleph-alpha-client", "deeplake", "libdeeplake", "pgvector", "psycopg2-binary", "pyowm", "pytesseract", "html2text", "atlassian-python-api", "gptcache", "duckduckgo-search", "arxiv", "azure-identity", "clickhouse-connect", "azure-cosmos", "lancedb", "langkit", "lark", "pexpect", "pyvespa", "O365", "jq", "docarray", "pdfminer-six", "lxml", "requests-toolbelt", "neo4j", "openlm", "azure-ai-formrecognizer", "azure-ai-vision", "azure-cognitiveservices-speech", "momento", "singlestoredb", "tigrisdb", "nebula3-python", "awadb", "esprima", "rdflib", "amadeus", "librosa", "python-arango"] +azure = ["azure-identity", "azure-cosmos", "openai", "azure-core", "azure-ai-formrecognizer", "azure-ai-vision", "azure-cognitiveservices-speech", "azure-search-documents"] clarifai = ["clarifai"] cohere = ["cohere"] docarray = ["docarray"] embeddings = ["sentence-transformers"] -extended-testing = ["amazon-textract-caller", "assemblyai", "atlassian-python-api", "beautifulsoup4", "bibtexparser", "cassio", "chardet", "esprima", "faiss-cpu", "feedparser", "geopandas", "gitpython", "gql", "html2text", "jinja2", "jq", "lxml", "markdownify", "mwparserfromhell", "mwxml", "newspaper3k", "openai", "openai", "openapi-schema-pydantic", "pandas", "pdfminer-six", "pgvector", "psychicapi", "py-trello", "pymupdf", "pypdf", "pypdfium2", "pyspark", "rank-bm25", "rapidfuzz", "requests-toolbelt", "scikit-learn", "sqlite-vss", "streamlit", "sympy", "telethon", "tqdm", "xata", "xmltodict"] +extended-testing = ["amazon-textract-caller", "assemblyai", "beautifulsoup4", "bibtexparser", "cassio", "chardet", "esprima", "jq", "pdfminer-six", "pgvector", "pypdf", "pymupdf", "pypdfium2", "tqdm", "lxml", "atlassian-python-api", "mwparserfromhell", "mwxml", "pandas", "telethon", "psychicapi", "gql", "requests-toolbelt", "html2text", "py-trello", "scikit-learn", "streamlit", "pyspark", "openai", "sympy", "rapidfuzz", "openai", "rank-bm25", "geopandas", "jinja2", "gitpython", "newspaper3k", "feedparser", "xata", "xmltodict", "faiss-cpu", "openapi-schema-pydantic", "markdownify", "sqlite-vss"] javascript = ["esprima"] -llms = ["clarifai", "cohere", "huggingface_hub", "manifest-ml", "nlpcloud", "openai", "openlm", "torch", "transformers"] +llms = ["clarifai", "cohere", "openai", "openlm", "nlpcloud", "huggingface_hub", "manifest-ml", "torch", "transformers"] openai = ["openai", "tiktoken"] qdrant = ["qdrant-client"] text-helpers = ["chardet"] @@ -10453,4 +10907,4 @@ text-helpers = ["chardet"] [metadata] lock-version = "2.0" python-versions = ">=3.8.1,<4.0" -content-hash = "1fbea4c22b1df46fd1062b58657321ef49b4c503851859d3ad1109acf427df9d" +content-hash = "47e048f7708139d5e5040c6d56ef4cb66153c3052a9237d6ea42eeb2565ad470" diff --git a/libs/langchain/pyproject.toml b/libs/langchain/pyproject.toml index 101c385da3..0856f190d8 100644 --- a/libs/langchain/pyproject.toml +++ b/libs/langchain/pyproject.toml @@ -109,7 +109,7 @@ azure-search-documents = {version = "11.4.0b8", optional = true} esprima = {version = "^4.0.1", optional = true} streamlit = {version = "^1.18.0", optional = true, python = ">=3.8.1,<3.9.7 || >3.9.7,<4.0"} psychicapi = {version = "^0.8.0", optional = true} -cassio = {version = "^0.0.7", optional = true} +cassio = {version = "^0.1.0", optional = true} rdflib = {version = "^6.3.2", optional = true} sympy = {version = "^1.12", optional = true} rapidfuzz = {version = "^3.1.1", optional = true} @@ -174,7 +174,7 @@ pytest-vcr = "^1.0.2" wrapt = "^1.15.0" openai = "^0.27.4" python-dotenv = "^1.0.0" -cassio = "^0.0.7" +cassio = "^0.1.0" tiktoken = "^0.3.2" [tool.poetry.group.lint.dependencies] diff --git a/libs/langchain/tests/integration_tests/cache/test_cassandra.py b/libs/langchain/tests/integration_tests/cache/test_cassandra.py new file mode 100644 index 0000000000..760458f12b --- /dev/null +++ b/libs/langchain/tests/integration_tests/cache/test_cassandra.py @@ -0,0 +1,100 @@ +"""Test Cassandra caches. Requires a running vector-capable Cassandra cluster.""" +import os +import time +from typing import Any, Iterator, Tuple + +import pytest + +import langchain +from langchain.cache import CassandraCache, CassandraSemanticCache +from langchain.schema import Generation, LLMResult +from tests.integration_tests.vectorstores.fake_embeddings import FakeEmbeddings +from tests.unit_tests.llms.fake_llm import FakeLLM + + +@pytest.fixture(scope="module") +def cassandra_connection() -> Iterator[Tuple[Any, str]]: + from cassandra.cluster import Cluster + + keyspace = "langchain_cache_test_keyspace" + # get db connection + if "CASSANDRA_CONTACT_POINTS" in os.environ: + contact_points = os.environ["CONTACT_POINTS"].split(",") + cluster = Cluster(contact_points) + else: + cluster = Cluster() + # + session = cluster.connect() + # ensure keyspace exists + session.execute( + ( + f"CREATE KEYSPACE IF NOT EXISTS {keyspace} " + f"WITH replication = {{'class': 'SimpleStrategy', 'replication_factor': 1}}" + ) + ) + + yield (session, keyspace) + + +def test_cassandra_cache(cassandra_connection: Tuple[Any, str]) -> None: + session, keyspace = cassandra_connection + cache = CassandraCache(session, keyspace) + langchain.llm_cache = cache + llm = FakeLLM() + params = llm.dict() + params["stop"] = None + llm_string = str(sorted([(k, v) for k, v in params.items()])) + langchain.llm_cache.update("foo", llm_string, [Generation(text="fizz")]) + output = llm.generate(["foo"]) + print(output) + expected_output = LLMResult( + generations=[[Generation(text="fizz")]], + llm_output={}, + ) + print(expected_output) + assert output == expected_output + cache.clear() + + +def test_cassandra_cache_ttl(cassandra_connection: Tuple[Any, str]) -> None: + session, keyspace = cassandra_connection + cache = CassandraCache(session, keyspace, ttl_seconds=2) + langchain.llm_cache = cache + llm = FakeLLM() + params = llm.dict() + params["stop"] = None + llm_string = str(sorted([(k, v) for k, v in params.items()])) + langchain.llm_cache.update("foo", llm_string, [Generation(text="fizz")]) + expected_output = LLMResult( + generations=[[Generation(text="fizz")]], + llm_output={}, + ) + output = llm.generate(["foo"]) + assert output == expected_output + time.sleep(2.5) + # entry has expired away. + output = llm.generate(["foo"]) + assert output != expected_output + cache.clear() + + +def test_cassandra_semantic_cache(cassandra_connection: Tuple[Any, str]) -> None: + session, keyspace = cassandra_connection + sem_cache = CassandraSemanticCache(session, keyspace, embedding=FakeEmbeddings()) + langchain.llm_cache = sem_cache + llm = FakeLLM() + params = llm.dict() + params["stop"] = None + llm_string = str(sorted([(k, v) for k, v in params.items()])) + langchain.llm_cache.update("foo", llm_string, [Generation(text="fizz")]) + output = llm.generate(["bar"]) # same embedding as 'foo' + expected_output = LLMResult( + generations=[[Generation(text="fizz")]], + llm_output={}, + ) + assert output == expected_output + # clear the cache + sem_cache.clear() + output = llm.generate(["bar"]) # 'fizz' is erased away now + assert output != expected_output + sem_cache.clear()