From 3a1283a5055801b28437ae70cd047dd742ad3622 Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Tue, 3 Feb 2026 01:18:51 +0000 Subject: [PATCH] Initial commit: Add Local API Docs Search CLI tool --- pyproject.toml | 65 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..4e71ddd --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,65 @@ +[build-system] +requires = ["setuptools>=61.0", "wheel"] +build-backend = "setuptools.build_meta" + +[project] +name = "local-api-docs-search" +version = "0.1.0" +description = "A CLI tool that indexes local API documentation and enables natural language semantic search" +readme = "README.md" +requires-python = ">=3.10" +license = {text = "MIT"} +authors = [ + {name = "Developer", email = "dev@example.com"} +] +keywords = ["cli", "documentation", "search", "openapi", "semantic-search"] +classifiers = [ + "Development Status :: 4 - Beta", + "Intended Audience :: Developers", + "License :: OSI Approved :: MIT License", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", +] + +dependencies = [ + "click>=8.1.0", + "sentence-transformers>=3.0.0", + "pyyaml>=6.0", + "rich>=13.0.0", + "chromadb>=0.5.0", + "openapi-spec-validator>=0.7.0", + "python-dotenv>=1.0.0", +] + +[project.scripts] +api-docs = "src.main:main" + +[project.optional-dependencies] +dev = [ + "pytest>=7.0.0", + "pytest-cov>=4.0.0", + "black>=23.0.0", + "ruff>=0.1.0", +] + +[tool.pytest.ini_options] +testpaths = ["tests"] +python_files = ["test_*.py"] +python_functions = ["test_*"] +addopts = "-v --tb=short" + +[tool.black] +line-length = 100 +target-version = ["py310"] + +[tool.ruff] +line-length = 100 +target-version = "py310" + +[tool.api-docs] +index-path = "./docs" +model-name = "all-MiniLM-L6-v2" +embedding-device = "cpu" +chroma-persist-dir = ".api-docs/chroma"