-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
171 lines (148 loc) · 4.86 KB
/
pyproject.toml
File metadata and controls
171 lines (148 loc) · 4.86 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
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
where = ["src"]
include = ["blockether_catalyst*"]
[tool.setuptools.package-data]
"blockether_catalyst" = ["assets/static_models/**/*", "assets/knowledge/**/*.j2", "integrations/**/*.j2"]
[project]
name = "blockether-catalyst"
version = "0.1.0"
description = "A comprehensive toolkit for building enterprise-grade LLM-powered applications"
readme = "README.md"
license = { text = "MIT" }
authors = [{ name = "Blockether", email = "contact@blockether.com" }]
maintainers = [{ name = "Blockether", email = "contact@blockether.com" }]
requires-python = ">=3.12"
keywords = ["llm", "ai", "document-processing", "knowledge-base", "enterprise"]
classifiers = [
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Text Processing :: Indexing",
"Natural Language :: English",
]
# Core runtime dependencies only
dependencies = [
"langchain-core>=0.3.75",
"model2vec>=0.6.0",
"numpy>=2.3.2",
"tenacity>=9.1.2",
"trio>=0.30.0",
"sqlalchemy>=2.0.43",
"scikit-learn>=1.7.2",
]
[project.urls]
Homepage = "https://github.com/Blockether/catalyst"
Documentation = "https://github.com/Blockether/catalyst"
Repository = "https://github.com/Blockether/catalyst.git"
Issues = "https://github.com/Blockether/catalyst/issues"
Changelog = "https://github.com/Blockether/catalyst/blob/main/CHANGELOG.md"
[project.optional-dependencies]
api = ["fastapi>=0.116.1", "fastmcp>=2.12.3", "agno>=2.0.11", "mdformat>=0.7.22"]
extraction = [
"pdfplumber>=0.11.7",
"rapidfuzz>=3.14.1",
"pyoxipng>=9.1.1",
"pypdf>=6.0.0",
"rich>=14.1.0",
"celery>=5.5.3",
"redis>=6.4.0",
"flower>=2.0.1",
]
[dependency-groups]
test = [
"pytest>=8.4.1",
"pytest-cov>=6.2.1",
"pytest-timeout>=2.4.0",
"pytest-randomly>=3.16.0",
"pytest-asyncio>=0.24.0",
"mangum>=0.19.0",
"anyio>=4.10.0",
]
# Development tools
dev = [
"mypy>=1.17.1",
"ruff>=0.12.8",
"isort>=5.10.0",
"black>=24.0.0",
"poethepoet>=0.37.0",
"instructor>=1.10.0",
"pytest-timeout>=2.4.0",
"httpx>=0.28.1",
"pyright>=1.1.405",
"blockether-peekle",
"mangum>=0.19.0",
"litellm>=1.77.3",
"celery-types>=0.23.0",
]
# Documentation generation
docs = [
"mkdocs>=1.6.1",
"mkdocs-shadcn>=0.9.0",
"mkdocs-llmstxt>=0.3.1",
"mkdocstrings>=0.30.0",
"mkdocstrings-python>=1.17.0",
]
[tool.pytest.ini_options]
pythonpath = ["src"]
testpaths = ["tests"]
python_files = ["test_*.py", "*Test.py", "*_test.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = "-v --tb=short --timeout=600 --timeout-method=thread"
timeout = 600
timeout_method = "thread"
markers = [
"integration: marks tests as integration tests (deselect with '-m \"not integration\"')",
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"anyio: marks tests as async tests with anyio",
"asyncio: marks tests as async tests with pytest-asyncio",
]
asyncio_mode = "auto"
[tool.mypy]
ignore_missing_imports = true
disallow_untyped_defs = true
warn_return_any = true
explicit_package_bases = true
mypy_path = "src"
[tool.ruff.lint]
ignore = ["E501", "F401"]
[tool.isort]
profile = "black"
line_length = 120
known_first_party = ["blockether_catalyst"]
[tool.black]
line-length = 120
target-version = ["py312"]
[tool.poe.tasks]
# Linting and type checking
lint = "uv run ruff check src/ tests/"
typecheck = "uv run mypy src/ tests/"
verify = ["lint", "typecheck"]
# Formatting
format-ruff = "uv run ruff format src/ tests/"
format-black = "uv run black src/ tests/"
format-isort = "uv run isort src/ tests/"
format = ["format-ruff", "format-black", "format-isort"]
# Testing
test = { cmd = "uv run python3 -m pytest", env = { ANYIO_BACKEND = "asyncio" } }
test-cov = { cmd = "uv run python3 -m pytest --cov=src --cov-report=html", env = { ANYIO_BACKEND = "asyncio" } }
test-cov-check = { cmd = "uv run python3 -m pytest --cov=src --cov-report=term-missing --cov-fail-under=85", env = { ANYIO_BACKEND = "asyncio" } }
# Documentation
docs-serve = "uv run mkdocs serve"
docs-build = "uv run mkdocs build"
# Cleaning tasks
clean-cache = "uv cache clean"
clean-pyc = { shell = "find . -type f -name '*.pyc' -delete && find . -type d -name '__pycache__' -exec rm -rf {} + 2>/dev/null || true" }
clean = ["clean-pyc", "clean-cache"]
# LiteLLM Proxy Server
litellm_proxy = "uvx --with 'litellm[proxy]' litellm --config config.yml --port 3005"
# Complete workflow
check = ["format", "verify", "test-cov-check"]
[tool.uv.sources]
blockether-peekle = { git = "https://github.com/Blockether/peekle.git" }