use requests instead of aiohttp for underlying http client (#803)

instead of starting and stopping the current thread's event loop on
every http call, just make an http call.
This commit is contained in:
Sebastian Law
2024-01-09 21:07:50 -08:00
committed by Andrew Miracle
parent 91d64d86e0
commit eda4c587fc
5 changed files with 72 additions and 93 deletions

View File

@@ -7,7 +7,6 @@ dependencies = [
"ratelimiter~=1.0",
"retry>=0.9.2",
"tqdm>=4.27.0",
"aiohttp",
"pydantic>=1.10",
"attrs>=21.3.0",
"semver>=3.0",
@@ -49,7 +48,7 @@ classifiers = [
repository = "https://github.com/lancedb/lancedb"
[project.optional-dependencies]
tests = ["pandas>=1.4", "pytest", "pytest-mock", "pytest-asyncio", "requests", "duckdb", "pytz"]
tests = ["aiohttp", "pandas>=1.4", "pytest", "pytest-mock", "pytest-asyncio", "duckdb", "pytz"]
dev = ["ruff", "pre-commit", "black"]
docs = ["mkdocs", "mkdocs-jupyter", "mkdocs-material", "mkdocstrings[python]"]
clip = ["torch", "pillow", "open-clip"]