-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
200 lines (184 loc) · 5.5 KB
/
pyproject.toml
File metadata and controls
200 lines (184 loc) · 5.5 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
[build-system]
requires = ["setuptools>=68", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "selectools"
version = "0.23.0"
description = "Production-ready Python framework for AI agents with multi-agent graphs, hybrid RAG, guardrails, audit logging, 50 evaluators, and a visual builder. Supports OpenAI, Anthropic, Gemini, Ollama. By NichevLabs."
readme = "README.md"
requires-python = ">=3.9"
license = "Apache-2.0"
authors = [{name = "John Nichev", email = "johnnichev@gmail.com"}]
maintainers = [{name = "NichevLabs", email = "support@nichevlabs.com"}]
dependencies = [
"openai>=1.30.0,<2.0.0",
"anthropic>=0.28.0,<1.0.0",
"google-genai>=1.0.0",
"numpy>=1.24.0,<3.0.0",
]
keywords = [
"llm", "ai", "agent", "agents", "multi-agent", "agent-framework",
"tool-calling", "openai", "anthropic", "gemini", "ollama",
"rag", "hybrid-search", "vector-search", "embeddings",
"guardrails", "evals", "evaluators", "visual-builder",
"structured-output", "observability", "fallback", "langchain-alternative",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
[project.urls]
Homepage = "https://selectools.dev"
Documentation = "https://selectools.dev"
Repository = "https://github.com/johnnichev/selectools"
Issues = "https://github.com/johnnichev/selectools/issues"
Changelog = "https://github.com/johnnichev/selectools/blob/main/CHANGELOG.md"
Builder = "https://selectools.dev/builder/"
Examples = "https://selectools.dev/examples/"
"NichevLabs" = "https://nichevlabs.com"
[project.optional-dependencies]
dev = [
"pytest>=7.0.0",
"pytest-asyncio>=0.23.0",
"pytest-xdist>=3.5.0",
"build>=1.2.1",
"twine>=5.0.0",
"pre-commit>=3.6.0",
"ruff>=0.6.0",
"mypy>=1.8.0",
"bandit>=1.7.0",
"hypothesis>=6.100.0",
"mkdocs-material>=9.5.0",
]
rag = [
"chromadb>=0.4.0",
"pinecone-client>=3.0.0",
"voyageai>=0.2.0",
"cohere>=5.0.0",
"pypdf>=4.0.0",
"qdrant-client>=1.7.0",
"faiss-cpu>=1.7.0",
"beautifulsoup4>=4.12.0",
]
observe = [
"opentelemetry-api>=1.20.0",
"langfuse>=2.0.0",
]
evals = [
"pyyaml>=6.0.0",
]
mcp = [
"mcp>=1.0.0,<2.0.0",
]
postgres = [
"psycopg2-binary>=2.9.0",
]
supabase = [
"supabase>=2.0.0",
]
serve = [
"pyyaml>=6.0.0",
"starlette>=0.27.0",
"uvicorn[standard]>=0.24.0",
]
[project.scripts]
selectools = "selectools.serve.cli:main"
[tool.setuptools]
package-dir = {"" = "src"}
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
"selectools.serve" = ["_static/*.html", "_static/*.css", "_static/*.js"]
[tool.ruff]
line-length = 100
target-version = "py39"
extend-exclude = [
".eggs",
".git",
".hg",
".mypy_cache",
".tox",
".venv",
"build",
"dist",
]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"B", # flake8-bugbear
"I", # isort
]
ignore = [
"E203", # whitespace before ':' (conflicts with formatter)
"E501", # line too long (handled by formatter)
"E402", # module-level import not at top
"E721", # type comparison with == (allowed; legacy test pattern)
"F401", # unused imports (common in __init__.py re-exports)
"F541", # f-string without placeholder
"F841", # local variable assigned but never used
"B011", # do not call assert False
"B023", # function definition does not bind loop variable
"B904", # raise without `from` in except (TODO: fix pre-existing violations)
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["B"]
"examples/*" = ["B", "F"]
"scripts/*" = ["B", "F"]
[tool.ruff.lint.isort]
known-first-party = ["selectools"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
line-ending = "lf"
[tool.mypy]
python_version = "3.13"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
ignore_missing_imports = true
exclude = [
"tests/",
"examples/",
"build/",
"dist/",
]
[[tool.mypy.overrides]]
module = [
"selectools.agent._tool_executor",
"selectools.agent._provider_caller",
"selectools.agent._lifecycle",
"selectools.agent._memory_manager",
"selectools.providers._openai_compat",
]
disable_error_code = ["attr-defined"]
[tool.bandit]
exclude_dirs = ["tests", "examples", "scripts"]
skips = ["B101", "B104", "B110", "B310", "B324", "B601", "B602"] # Skip assert_used, bind_all_interfaces, try_except_pass, urlopen, weak_hash, shell, subprocess
targets = ["src/"]
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["src", "."]
asyncio_mode = "strict"
addopts = "-v"
filterwarnings = [
"ignore:urllib3 v2 only supports OpenSSL",
]
python_files = ["test_*.py", "sim_*.py"]
markers = [
"e2e: mark test as end-to-end (requires real API keys, use --run-e2e to run)",
"integration: mark test as integration (no API keys, uses real implementations with mocks)",
"openai: mark test as requiring OpenAI API key",
"anthropic: mark test as requiring Anthropic API key",
"gemini: mark test as requiring Gemini API key",
"ollama: mark test as requiring Ollama running locally",
]