-
Notifications
You must be signed in to change notification settings - Fork 48
Expand file tree
/
Copy pathpyproject.toml
More file actions
193 lines (178 loc) · 5.23 KB
/
Copy pathpyproject.toml
File metadata and controls
193 lines (178 loc) · 5.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "dynavec"
version = "0.7.0"
description = "Serverless hybrid vector database for AWS: fuses DynamoDB (single-digit-ms metadata + document store) with Amazon S3 Vectors (billion-scale serverless ANN). A drop-in, in-your-own-account alternative to Pinecone / Qdrant / Milvus / Weaviate / OpenSearch."
readme = "README.md"
requires-python = ">=3.9"
license = { text = "Apache-2.0" }
authors = [{ name = "dynavec contributors" }]
keywords = [
"vector-database", "vector-search", "rag", "embeddings", "dynamodb",
"s3-vectors", "aws", "serverless", "semantic-search", "ann",
"langchain", "llamaindex", "pinecone-alternative",
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Database :: Database Engines/Servers",
]
# Base install stays light: boto3 (AWS) + numpy (vector math) only.
dependencies = [
"boto3>=1.40.0",
"botocore>=1.40.0",
"numpy>=1.24",
]
[project.optional-dependencies]
# --- Pluggable, bring-your-own-key embedders (users pick one or more) ---
openai = ["openai>=1.40"]
anthropic = ["anthropic>=0.40"]
gemini = ["google-generativeai>=0.8"]
cohere = ["cohere>=5.0"]
voyage = ["voyageai>=0.3.2"]
mistral = ["mistralai>=2.0; python_version >= '3.10'"]
sentence-transformers = ["sentence-transformers>=3.0"]
# bedrock needs nothing beyond boto3.
# --- Optional capabilities ---
async = ["aioboto3>=13"]
rerank = ["sentence-transformers>=3.0"] # cross-encoder reranking
redis = ["redis>=5.0"] # RedisCache / AWS ElastiCache
mcp = ["mcp>=1.0; python_version >= '3.10'"] # MCP client ingestion
pinecone = ["pinecone>=5.0"] # for benchmarks/examples comparison
ingest = ["pypdf>=4.0", "python-docx>=1.1", "python-pptx>=0.6", "openpyxl>=3.1", "beautifulsoup4>=4.12", "requests>=2.31", "PyYAML>=6.0",]
# --- Agent framework integrations ---
langchain = ["langchain-core>=0.3"]
llamaindex = ["llama-index-core>=0.11"]
crewai = ["crewai>=0.70,!=1.14.0; python_version >= '3.10'"]
semantic-kernel = ["semantic-kernel>=1.44"]
haystack = ["haystack-ai>=2.0"]
dspy = ["dspy>=3.3; python_version >= '3.10'"]
# Framework APIs imported by strict mypy checks. Keep this in sync with the
# integration adapters covered by tests/typing.
typecheck = [
"langchain-core>=0.3",
"llama-index-core>=0.11",
"haystack-ai>=2.0",
"dspy>=3.3; python_version >= '3.10'",
"semantic-kernel>=1.44; python_version >= '3.10'",
"anthropic>=0.40",
]
all = [
"openai>=1.40",
"anthropic>=0.40",
"google-generativeai>=0.8",
"cohere>=5.0",
"voyageai>=0.3.2",
"mistralai>=2.0; python_version >= '3.10'",
"sentence-transformers>=3.0",
"redis>=5.0",
"mcp>=1.0; python_version >= '3.10'",
"langchain-core>=0.3",
"llama-index-core>=0.11",
"haystack-ai>=2.0",
"crewai>=0.70,!=1.14.0; python_version >= '3.10'",
"semantic-kernel>=1.44",
"dspy>=3.3; python_version >= '3.10'",
]
# --- Dev / test / benchmark ---
dev = [
"pytest>=8.0",
"pytest-asyncio>=0.23",
"pytest-cov>=5.0",
"hypothesis>=6.100",
"aioboto3>=13",
"moto[dynamodb,server]>=5.0",
"mypy>=1.11,<2.0",
"ruff>=0.6",
"pre-commit>=3.5",
"syrupy>=6.0; python_version >= '3.10'",
]
benchmark = [
"pandas>=2.0",
"matplotlib>=3.7",
"tabulate>=0.9",
]
[project.urls]
Homepage = "https://github.com/codeforstartups/dynavec"
Documentation = "https://github.com/codeforstartups/dynavec#readme"
Issues = "https://github.com/codeforstartups/dynavec/issues"
[project.scripts]
dynavec = "dynavec.cli:main"
[tool.hatch.build.targets.wheel]
packages = ["src/dynavec"]
include = ["src/dynavec/py.typed"]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-q"
asyncio_mode = "auto"
pythonpath = ["."]
[tool.ruff]
line-length = 100
target-version = "py39"
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B"]
ignore = ["E501"]
[tool.mypy]
python_version = "3.12"
files = ["src/dynavec", "tests/typing"]
mypy_path = "typings"
strict = true
pretty = true
show_error_codes = true
# Optional integrations deliberately remain importable only when their extras are
# installed. Keep those dependency boundaries explicit while still checking all
# dynavec code that uses them.
[[tool.mypy.overrides]]
module = [
"anthropic",
"anthropic.*",
"bs4",
"bs4.*",
"boto3",
"boto3.*",
"botocore",
"botocore.*",
"crewai",
"crewai.*",
"docx",
"docx.*",
"dspy",
"dspy.*",
"google",
"google.*",
"langchain_core",
"langchain_core.*",
"llama_index",
"llama_index.*",
"matplotlib",
"matplotlib.*",
"mcp",
"mcp.*",
"mistralai",
"mistralai.*",
"openai",
"openai.*",
"openpyxl",
"openpyxl.*",
"pptx",
"pptx.*",
"pypdf",
"pypdf.*",
"redis",
"redis.*",
"requests",
"requests.*",
"semantic_kernel",
"semantic_kernel.*",
"sentence_transformers",
"sentence_transformers.*",
"voyageai",
"voyageai.*",
"yaml",
]
ignore_missing_imports = true