forked from InfinitiBit/graphbit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
409 lines (394 loc) · 10 KB
/
Copy pathpyproject.toml
File metadata and controls
409 lines (394 loc) · 10 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
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
[build-system]
build-backend = "maturin"
requires = ["maturin>=1.0,<2.0"]
[project]
authors = [
{name = "InfinitiBit Team", email = "contact@infinitibit.ai"}
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: InfinitiBit Approved :: Custom License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Rust",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: System :: Distributed Computing",
"Typing :: Typed"
]
dependencies = [
"aiofiles>=23.0.0",
"aiohttp>=3.12.15",
"python-dotenv>=1.0.0",
"rich>=13.0.0",
"typer>=0.9.0",
"huggingface_hub>=0.33.4",
"numpy>=1.24.0"
]
description = "GraphBit - Advanced workflow automation and AI agent orchestration library"
keywords = ["ai", "agents", "workflow", "automation", "rust", "python", "llm", "orchestration"]
license = {file = "LICENSE.md"}
maintainers = [
{name = "InfinitiBit Team", email = "contact@infinitibit.ai"}
]
name = "graphbit"
readme = "README.md"
requires-python = ">=3.10"
version = "0.5.1"
[project.optional-dependencies]
ai = [
"anthropic>=0.24.0",
"openai>=1.30.0",
"huggingface_hub>=0.33.4",
"numpy>=1.24.0"
]
benchmark = [
"click>=8.2.1",
"matplotlib>=3.7.0",
"numpy>=1.24.0",
"pandas>=2.0.0",
"psutil>=5.9.0",
"seaborn>=0.12.0",
"tabulate>=0.9.0",
"memory-profiler>=0.61.0",
"crewai>=0.41.0",
"langchain>=0.1.0",
"langchain-anthropic>=0.3.19",
"langchain-ollama>=0.3.7",
"langchain-openai>=0.1.0",
"langgraph>=0.1.0",
"llama-index>=0.9.0",
"llama-index-cli>=0.5.0",
"llama-index-llms-anthropic>=0.8.5",
"llama-index-llms-ollama>=0.7.1",
"pydantic-ai>=0.0.5"
]
databases = [
"boto3>=1.26.0",
"ibm-db>=3.1.0",
"mariadb>=1.1.0",
"psycopg2>=2.9.0",
"pymongo>=4.0.0"
]
full = [
# AI dependencies
"anthropic>=0.24.0",
"openai>=1.30.0",
# Vector DB dependencies
"astrapy>=1.0.0",
"chromadb>=0.4.0",
"elasticsearch>=8.0.0",
"faiss-cpu>=1.7.0",
"pinecone>=4.0.0",
"pymilvus>=2.3.0",
"qdrant-client>=1.7.0",
"weaviate-client>=4.4.0",
# Database dependencies
"boto3>=1.26.0",
"ibm-db>=3.1.0",
"mariadb>=1.1.0",
"psycopg2>=2.9.0",
"pymongo>=4.0.0",
# Benchmark dependencies
"click>=8.2.1",
"matplotlib>=3.7.0",
"numpy>=1.24.0",
"pandas>=2.0.0",
"psutil>=5.9.0",
"seaborn>=0.12.0",
"tabulate>=0.9.0",
"memory-profiler>=0.61.0",
"crewai>=0.41.0",
"langchain>=0.1.0",
"langchain-anthropic>=0.3.19",
"langchain-ollama>=0.3.7",
"langchain-openai>=0.1.0",
"langgraph>=0.1.0",
"llama-index>=0.9.0",
"llama-index-cli>=0.5.0",
"llama-index-llms-anthropic>=0.8.5",
"llama-index-llms-ollama>=0.7.1",
"pydantic-ai>=0.0.5",
# Additional dependencies
"requests>=2.25.0",
"types-pyyaml>=6.0.12.20250822"
]
vector-db = [
"astrapy>=1.0.0",
"chromadb>=0.4.0",
"elasticsearch>=8.0.0",
"faiss-cpu>=1.7.0",
"pinecone>=4.0.0",
"pymilvus>=2.3.0",
"qdrant-client>=1.7.0",
"weaviate-client>=4.4.0"
]
[project.urls]
"Bug Tracker" = "https://github.com/InfinitiBit/graphbit/issues"
Changelog = "https://github.com/InfinitiBit/graphbit/blob/main/CHANGELOG.md"
Discord = "https://discord.com/invite/huVJwkyu"
Documentation = "https://docs.graphbit.ai"
Homepage = "https://github.com/InfinitiBit/graphbit"
Repository = "https://github.com/InfinitiBit/graphbit"
[tool.bandit]
exclude_dirs = ["tests", "test"]
skips = ["B101", "B601"]
# Tool configurations
[tool.black]
extend-exclude = '''
/(
# directories
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
| target
)/
'''
include = '\.pyi?$'
line-length = 200
target-version = ['py310']
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if self.debug:",
"if settings.DEBUG",
"raise AssertionError",
"raise NotImplementedError",
"if 0:",
"if __name__ == .__main__.:",
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod"
]
[tool.coverage.run]
omit = [
"*/tests/*",
"*/test_*",
"*/__pycache__/*",
"*/site-packages/*"
]
source = ["graphbit"]
[tool.isort]
ensure_newline_before_comments = true
force_grid_wrap = 0
include_trailing_comma = true
known_first_party = ["graphbit"]
line_length = 200
multi_line_output = 3
profile = "black"
skip_gitignore = true
use_parentheses = true
[tool.maturin]
# PyO3 bindings configuration
bindings = "pyo3"
# Compatibility settings for PyPI distribution
compatibility = "linux"
# Manifest path for the Rust project
manifest-path = "python/Cargo.toml"
# Module configuration
module-name = "graphbit"
# Build profile for optimized releases
profile = "release"
# Python interpreter finding
python-source = "python-src"
# Enable auditwheel for proper PyPI compatibility
skip-auditwheel = false
# Build optimizations
strip = true
[tool.mypy]
check_untyped_defs = true
disallow_incomplete_defs = true
disallow_untyped_decorators = true
disallow_untyped_defs = true
ignore_missing_imports = true
no_implicit_optional = true
python_version = "3.10"
strict_equality = true
warn_no_return = true
warn_redundant_casts = true
warn_return_any = true
warn_unreachable = true
warn_unused_configs = true
warn_unused_ignores = true
[tool.poetry]
authors = ["InfinitiBit Team"]
description = "GraphBit - Advanced workflow automation and AI agent orchestration library"
homepage = "https://github.com/InfinitiBit/graphbit"
name = "graphbit"
package-mode = true
readme = "README.md"
repository = "https://github.com/InfinitiBit/graphbit"
version = "0.5.1"
[tool.poetry.dependencies]
# Core dependencies - minimal for framework functionality
aiofiles = ">=23.0.0"
aiohttp = "^3.12.15"
# Optional AI/ML dependencies
anthropic = {version = ">=0.24.0", optional = true}
# Vector database dependencies
astrapy = {version = ">=1.0.0", optional = true}
boto3 = {version = ">=1.26.0", optional = true}
# Optional benchmarking dependencies
chromadb = {version = ">=0.4.0", optional = true}
click = {version = "^8.2.1", optional = true}
crewai = {version = ">=0.41.0", optional = true}
elasticsearch = {version = ">=8.0.0", optional = true}
faiss-cpu = {version = ">=1.7.0", optional = true}
huggingface_hub = ">=0.33.4"
ibm-db = {version = ">=3.1.0", optional = true}
langchain = {version = ">=0.1.0", optional = true}
langchain-anthropic = {version = "^0.3.19", optional = true}
langchain-ollama = {version = "^0.3.7", optional = true}
langchain-openai = {version = ">=0.1.0", optional = true}
langgraph = {version = ">=0.1.0", optional = true}
llama-index = {version = ">=0.9.0", optional = true}
llama-index-cli = {version = "^0.5.0", optional = true}
llama-index-llms-anthropic = {version = "^0.8.5", optional = true}
llama-index-llms-ollama = {version = "^0.7.1", optional = true}
mariadb = {version = ">=1.1.0", optional = true}
matplotlib = {version = ">=3.7.0", optional = true}
memory-profiler = {version = ">=0.61.0", optional = true}
numpy = ">=1.24.0"
openai = {version = ">=1.30.0", optional = true}
pandas = {version = ">=2.0.0", optional = true}
pinecone = {version = ">=4.0.0", optional = true}
# Benchmarking specific dependencies
psutil = {version = ">=5.9.0", optional = true}
psycopg2 = {version = ">=2.9.0", optional = true}
pydantic-ai = {version = ">=0.0.5", optional = true}
pymilvus = {version = ">=2.3.0", optional = true}
pymongo = {version = ">=4.0.0", optional = true}
python = ">=3.10,<=3.13.7"
python-dotenv = ">=1.0.0"
qdrant-client = {version = ">=1.7.0", optional = true}
requests = {version = ">=2.25.0", optional = true}
rich = ">=13.0.0"
seaborn = {version = ">=0.12.0", optional = true}
tabulate = {version = ">=0.9.0", optional = true}
typer = ">=0.9.0"
types-pyyaml = {version = "^6.0.12.20250822", optional = true}
weaviate-client = {version = ">=4.4.0", optional = true}
# Optional dependency groups for pip install
[tool.poetry.extras]
aiohttp = ["aiohttp"]
astradb = ["astrapy"]
benchmark = [
"click",
"matplotlib",
"numpy",
"pandas",
"psutil",
"seaborn",
"tabulate",
"memory-profiler",
"anthropic",
"openai",
"langchain",
"langchain-openai",
"langchain-anthropic",
"langchain-ollama",
"langgraph",
"llama-index",
"llama-index-llms-anthropic",
"llama-index-llms-ollama",
"llama-index-cli",
"crewai",
"pydantic-ai"
]
boto3 = ["boto3"]
chromadb = ["chromadb"]
db2 = ["ibm-db", "numpy"]
elasticsearch = ["elasticsearch"]
faiss = ["faiss-cpu", "numpy"]
full = [
"click",
"matplotlib",
"numpy",
"pandas",
"psutil",
"seaborn",
"tabulate",
"memory-profiler",
"anthropic",
"openai",
"langchain",
"langchain-openai",
"langchain-anthropic",
"langchain-ollama",
"langgraph",
"llama-index",
"llama-index-llms-anthropic",
"llama-index-llms-ollama",
"llama-index-cli",
"crewai",
"pydantic-ai",
"astrapy",
"boto3",
"chromadb",
"elasticsearch",
"faiss-cpu",
"ibm-db",
"mariadb",
"pinecone",
"psycopg2",
"pymilvus",
"pymongo",
"qdrant-client",
"requests",
"weaviate-client",
"types-pyyaml",
"aiohttp"
]
huggingface = ["huggingface_hub", "numpy"]
mariadb = ["mariadb", "numpy"]
milvus = ["pymilvus"]
mongodb = ["pymongo"]
numpy = ["numpy"]
pgvector = ["psycopg2"]
pinecone = ["pinecone"]
qdrant = ["qdrant-client"]
requests = ["requests"]
weaviate = ["weaviate-client"]
[tool.poetry.group.dev.dependencies]
bandit = "^1.7.0"
# Code quality tools
black = "^24.3.0"
detect-secrets = "^1.4.0"
flake8 = "^6.0.0"
flake8-bugbear = "^23.0.0"
flake8-comprehensions = "^3.14.0"
flake8-docstrings = "^1.7.0"
flake8-simplify = "^0.20.0"
isort = "^5.12.0"
maturin = "^1.8.6"
mypy = "^1.0.0"
pre-commit = "^3.6.0"
pytest = ">=7.0.0"
pytest-asyncio = ">=0.21.0"
pytest-cov = ">=4.0.0"
requests = ">=2.25.0"
safety = "^2.3.0"
types-pyyaml = "^6.0.12.20250822"
[tool.pytest.ini_options]
addopts = "-ra -q --strict-markers --strict-config"
minversion = "7.0"
python_files = [
"test_*.py",
"tests_*.py",
"*_test.py"
]
testpaths = [
"tests"
]