-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
140 lines (123 loc) · 3.78 KB
/
pyproject.toml
File metadata and controls
140 lines (123 loc) · 3.78 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
[build-system]
requires = ["setuptools>=68.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "knowledge-bank-tools"
version = "2.0.0"
description = "ChromaDB-based vector database with semantic search and vocabulary extraction"
readme = "README.md"
requires-python = ">=3.8"
license = {text = "MIT"}
authors = [
{name = "Krisoye Smith", email = "krisoye@example.com"},
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Text Processing :: Linguistic",
]
# All runtime dependencies for KB server + MCP server.
# pip install -e . installs runtime
# pip install -e '.[dev]' installs runtime + test/lint tools
dependencies = [
# Vector database
"chromadb>=0.4.0",
"sentence-transformers>=2.2.0",
# Content extraction
"yt-dlp>=2023.0.0",
"youtube-transcript-api>=0.6.0",
"pdfplumber>=0.10.0",
"PyPDF2>=3.0.0",
"anthropic>=0.40.0",
"beautifulsoup4>=4.12.0",
# Text processing
"python-dateutil>=2.8.0",
"pyyaml>=6.0", # taxonomy.yaml parsing (auto-tagging, issue #71)
# Caching (issue #52)
"cachetools>=5.3.0",
# CLI and API
"click>=8.0.0",
"fastapi>=0.100.0",
"uvicorn>=0.23.0",
"requests>=2.31.0",
# MCP server
"fastmcp>=0.4.0",
"httpx>=0.24.0",
"python-dotenv>=1.0.0",
"pydantic>=2.0.0",
"pydantic-settings>=2.0.0",
]
[project.optional-dependencies]
dev = [
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
"pytest-mock>=3.10.0",
"pytest-asyncio>=0.23.0",
"pytest-benchmark>=4.0",
"psutil>=5.9",
"ruff>=0.4.0",
"mypy>=1.5.0",
"reportlab>=4.0.0",
]
[project.urls]
Homepage = "https://github.com/krisoye/knowledge-bank-tools"
Repository = "https://github.com/krisoye/knowledge-bank-tools.git"
Issues = "https://github.com/krisoye/knowledge-bank-tools/issues"
Documentation = "https://github.com/krisoye/knowledge-bank-tools#readme"
[project.scripts]
# Main CLI interface (click group)
kb-cli = "src.kb_cli:cli"
# Batch ingestion tool
kb-batch-ingest = "src.batch_ingest:main"
# MCP server wrapper
kb-mcp-server = "src.kb_mcp_server:main"
# Auto-tagging enrichment tool
enrich-tags = "src.tagging.enrich_tags:main"
# YouTube parent document migration tool
kb-migrate-youtube-parents = "src.migrate_youtube_parents:main"
[tool.setuptools]
packages = ["src", "src.tagging"]
[tool.setuptools.package-dir]
"" = "."
[tool.ruff]
line-length = 100
target-version = "py38"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # Pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
]
ignore = [
"E501", # line too long (handled by formatter)
]
[tool.ruff.lint.isort]
known-first-party = ["src"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-v --cov=src --cov-report=term-missing --cov-report=html --ignore=tests/benchmarks"
asyncio_mode = "auto"
filterwarnings = ["ignore::DeprecationWarning"]
[tool.mypy]
python_version = "3.8"
warn_return_any = true
warn_unused_configs = true
ignore_missing_imports = true