-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
324 lines (281 loc) · 8 KB
/
pyproject.toml
File metadata and controls
324 lines (281 loc) · 8 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
[project]
name = "sygaldry-cli"
version = "0.1.0"
description = "Production-ready AI components that you can copy and paste into your apps"
authors = [
{name = "greyhaven-ai", email = "info@sygaldry.ai"}
]
license = {text = "MIT"}
readme = "README_PYPI.md"
keywords = ["ai", "llm", "agents", "tools", "components", "mirascope", "lilypad"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
requires-python = ">=3.12,<3.13"
dependencies = [
"typer[all]>=0.12.3,<0.13.0", # CLI framework
"httpx>=0.27.0,<0.28.0", # HTTP client
"pydantic>=2.5.0,<3.0.0", # Data validation
"rich>=13.0.0,<14.0.0", # Pretty output
"platformdirs>=4.0.0,<5.0.0" # Cross-platform cache directories
]
[project.urls]
homepage = "https://sygaldry.ai"
repository = "https://github.com/sygaldry-ai/sygaldry"
documentation = "https://sygaldry.ai/docs"
[project.optional-dependencies]
# ========== Agent Dependencies (Granular) ==========
# Core agent support - required for using any agent
agents = [
"mirascope>=2.0.0a1", # LLM abstraction framework (v2)
]
# Observability features (used by 5 agents)
# Agents requiring this: multi_source_news_verification, enhanced_knowledge_graph,
# multi_agent_coordinator, prompt_engineering_optimizer, decision_quality_assessor
observability = [
"lilypad-sdk>=0.1.0",
]
# Async file I/O (used by 1 agent)
# Agents requiring this: code_generation_execution
async-io = [
"aiofiles>=0.8.0",
]
# Search tools - web search, Exa AI search
# Agents requiring this: web_search, research_assistant, hallucination_detector,
# multi_source_news_verification, academic_research, sales_intelligence,
# market_intelligence, recruiting_assistant, sourcing_assistant
search = [
"duckduckgo-search>=3.8.0", # Privacy-focused web search
"exa-py>=1.0.0", # AI-powered semantic search
]
# Database support - SQLAlchemy, PostgreSQL, SQLite
# Agents/tools requiring this: sqlalchemy_db, pg_search_tool, dnd_game_master
database = [
"sqlalchemy>=2.0.0",
"asyncpg>=0.29.0", # Async PostgreSQL driver
"psycopg2-binary>=2.9.0", # PostgreSQL adapter
"alembic>=1.12.0", # Database migrations
]
# Web scraping and parsing
# Tools requiring this: firecrawl_scrape_tool, url_content_parser_tool,
# mdx_search_tool, code_docs_search_tool
web = [
"beautifulsoup4>=4.12.0", # HTML/XML parsing
"firecrawl-py>=0.0.1", # Advanced web scraping
"lxml>=4.9.0", # Fast XML/HTML processing
]
# Document processing - PDF, DOCX, Markdown, etc.
# Tools requiring this: pdf_search_tool, docx_search_tool, mdx_search_tool
documents = [
"PyPDF2>=3.0.0", # PDF processing
"python-docx>=1.0.0", # DOCX processing
"markdown>=3.5.0", # Markdown processing
"python-frontmatter>=1.0.0", # Frontmatter parsing
]
# Git and GitHub integration
# Tools requiring this: git_repo_search_tool
git = [
"GitPython>=3.1.0",
"PyGithub>=2.1.0",
]
# Data processing and analysis
data = [
"pandas>=2.0.0", # Data manipulation
"jsonpath-ng>=1.6.0", # JSON querying
"pyyaml>=6.0", # YAML parsing
]
# Fuzzy matching and search
fuzzy = [
"fuzzywuzzy>=0.18.0",
"python-Levenshtein>=0.20.0",
]
# YouTube tools
youtube = [
"youtube-transcript-api>=0.6.0",
]
# Install all agent dependencies at once
all-agents = [
"sygaldry-cli[agents,observability,async-io,search,database,web,documents,git,data,fuzzy,youtube]",
]
# ========== Development Dependencies ==========
dev = [
"argcomplete>=3.5.0,<4.0.0",
"deptry>=0.23.0,<1.0.0",
"icecream>=2.1.3,<3.0.0",
"ipython>=8.27.0,<9.0.0",
"mypy>=1.14.1,<2.0.0",
"pyclean>=3.0.0,<4.0.0",
"pytest>=8.3.4,<9.0.0",
"pytest-asyncio>=0.25.2,<1.0.0",
"pytest-cov>=6.0.0,<7.0.0",
"ruff>=0.9.5",
# Include all agent dependencies for development
"sygaldry-cli[all-agents]",
]
# ========== Testing Dependencies ==========
test = [
"coverage>=7.6.1,<8.0.0",
"hypothesis[cli]>=6.112.1,<7.0.0",
"pytest>=8.3.3,<9.0.0",
"pytest-asyncio>=0.24.0,<1.0.0",
"pytest-cov>=6.1.1",
"pytest-datafiles>=3.0.0,<4.0.0",
"pytest-xdist>=3.6.1,<4.0.0",
]
[project.scripts]
sygaldry = "sygaldry_cli.main:main"
[tool.deptry]
# DEP003: transitive deps
ignore = [
"DEP003"
]
[tool.deptry.per_rule_ignores]
# DEP002: not used in codebase (excluding dev deps)
DEP002 = [
"deptry",
"mypy",
"pyclean",
"pytest",
"pytest-asyncio",
"pytest-cov",
"ruff",
"uvicorn"
]
[tool.mypy]
python_version = "3.11"
warn_return_any = false
warn_unused_configs = true
disallow_untyped_defs = false
check_untyped_defs = false
ignore_missing_imports = true
no_implicit_optional = false
implicit_reexport = true
warn_unreachable = false
disable_error_code = ["empty-body", "return"]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = "test_*.py"
python_functions = "test_*"
python_classes = "Test*"
asyncio_mode = "auto"
markers = [
"unit: marks tests as unit tests",
"integration: marks tests as integration tests",
"e2e: marks tests as end-to-end tests",
"benchmark: marks performance benchmark tests"
]
[tool.coverage.run]
source = ["sygaldry"]
omit = [
"*/tests/*",
"*/migrations/*",
"*/alembic/*"
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise NotImplementedError",
"if TYPE_CHECKING:",
"pass",
"..."
]
[tool.ruff]
# Fix without reporting on leftover violations
fix-only = true
# Enumerate all fixed violations
show-fixes = true
# Indent width (default: 4)
indent-width = 4
# Black (default: 88)
line-length = 130
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
"dist",
".eggs",
".git",
".git-rewrite",
".hg",
".mypy_cache",
".nox",
".pants.d",
"__pycache__",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
]
# Assume Python 3.11
target-version = "py311"
[tool.ruff.format]
# Use spaces instead of tabs
indent-style = "space"
# Use `\n` line endings for all files
line-ending = "lf"
# Set quote style for strings
quote-style = "preserve"
[tool.ruff.lint]
select = [
# pycodestyle
"E",
# Pyflakes
"F",
# pyupgrade
"UP",
# flake8-bugbear
"B",
# flake8-simplify
"SIM",
# isort
"I",
]
ignore = ["D203", "E203", "E251", "E266", "E401", "E402", "E501", "F401", "F403", "F841"]
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["A", "B", "C", "D", "E", "F", "G", "I", "N", "Q", "S", "T", "W", "ANN", "ARG", "BLE", "COM", "DJ", "DTZ", "EM", "ERA", "EXE", "FBT", "ICN", "INP", "ISC", "NPY", "PD", "PGH", "PIE", "PL", "PT", "PTH", "PYI", "RET", "RSE", "RUF", "SIM", "SLF", "TID", "TRY", "UP", "YTT"]
# unfixable = []
[tool.ruff.lint.isort]
combine-as-imports = true
from-first = false
no-sections = true
order-by-type = true
[tool.ruff.lint.flake8-quotes]
docstring-quotes = "double"
[tool.ruff.lint.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 10
[tool.setuptools]
package-dir = {"" = "src"}
packages = ["sygaldry_cli", "sygaldry_cli.commands", "sygaldry_cli.core"]
[tool.setuptools.package-data]
"sygaldry_cli.core" = ["known_llms.json"]
[dependency-groups]
dev = [
"mypy>=1.15.0",
"pre-commit>=4.2.0",
"pytest>=8.3.5",
"pytest-asyncio>=0.26.0",
"pytest-cov>=6.1.1",
"reportlab>=4.4.2",
"ruff>=0.11.6",
"types-aiofiles>=24.1.0.20250516",
"types-markdown>=3.8.0.20250415",
"types-pyyaml>=6.0.12.20250516",
"types-requests>=2.32.0.20250515",
]