[project] name = "datakeel" version = "0.27.1" description = "Local-first workbench for auditable AI datasets, traceable business metrics, and human-approved MCP agents." readme = "README.md" requires-python = ">=3.12" license = "Apache-2.0" authors = [ { name = "Datakeel Contributors" }, ] keywords = [ "ai-datasets", "data-catalog", "data-governance", "data-lineage", "data-quality", "dataset-versioning", "human-in-the-loop", "local-first", "mcp", "multimodal", "openlineage", "semantic-layer", "split-leakage", "text-to-sql", "visual-qa", ] classifiers = [ "Development Status :: 4 - Beta", "Framework :: FastAPI", "Framework :: Pydantic :: 2", "Intended Audience :: Developers", "Intended Audience :: Science/Research", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.12", "Topic :: Database", "Topic :: Scientific/Engineering :: Artificial Intelligence", "Typing :: Typed", ] dependencies = [ "fastapi>=0.115,<1", "uvicorn>=0.30,<1", "pydantic>=2.12,<3", "sqlalchemy>=2.0,<3", "pg8000>=1.31,<2", "networkx>=3.3,<4", "pyyaml>=6,<7", "jsonschema>=4.23,<5", "referencing>=0.35,<1", "numpy>=2,<3", "pillow>=12,<14", "boto3>=1.35,<2", "pydantic-settings>=2.16.1", "rich>=15.0.0", "httpx>=0.28.1", "fastmcp==4.1.3", "sqlglot==30.24.0", # The strict checkpoint codec depends on this version's Interrupt fields and constructor. "langgraph==1.2.16", "langchain-core>=1.7.0,<2", "langchain-openai>=1.7.2,<2", # Transport injection relies on the adapter's private _client and _client_params contract. "langchain-anthropic==1.7.6", "opentelemetry-sdk==1.45.1", "opentelemetry-exporter-otlp-proto-http==1.45.1", ] [project.urls] Homepage = "https://datakeel.jiawis.com/" Documentation = "https://datakeel.jiawis.com/docs/" Repository = "https://github.com/chaw1/datakeel.git" Issues = "https://github.com/chaw1/datakeel/issues" Changelog = "https://github.com/chaw1/datakeel/blob/main/CHANGELOG.md" [project.scripts] datakeel = "datakeel.cli:main" [dependency-groups] dev = [ "ruff>=0.8", "pyright>=1.1.390", "pytest>=8", "pytest-cov>=6", "import-linter>=2.15", "pre-commit>=4.7.0", "types-pyyaml>=6.0.12.20260906", "types-jsonschema>=4.26.0.20261006", "boto3-stubs[s3]>=1.43.117", "maturin==1.13.1", "pytest-xdist>=3.8,<4", "faiss-cpu==1.15.1", ] [build-system] requires = ["hatchling"] build-backend = "hatchling.build" [tool.hatch.build.targets.sdist] exclude = [ "/.import_linter_cache", "/.pytest_cache", "/.ruff_cache", "**/__pycache__", "/examples/sample-data/train", "/examples/sample-data/val", "/examples/sample-data/gold.json", "/examples/enterprise/generated", ] [tool.hatch.build.targets.wheel] packages = ["datakeel"] [tool.hatch.build.targets.wheel.force-include] "contracts/delivery-manifest.schema.json" = "datakeel/_contracts/delivery-manifest.schema.json" "contracts/model-prices.yaml" = "datakeel/_contracts/model-prices.yaml" "contracts/golden" = "datakeel/_contracts/golden" "contracts/intents" = "datakeel/_contracts/intents" "contracts/evidence" = "datakeel/_contracts/evidence" "contracts/semantic-layer" = "datakeel/_contracts/semantic-layer" "contracts/ask" = "datakeel/_contracts/ask" "contracts/workflows" = "datakeel/_contracts/workflows" "contracts/routing" = "datakeel/_contracts/routing" "contracts/agents" = "datakeel/_contracts/agents" "contracts/kg" = "datakeel/_contracts/kg" "contracts/assets" = "datakeel/_contracts/assets" "contracts/standards" = "datakeel/_contracts/standards" "contracts/quality-rules" = "datakeel/_contracts/quality-rules" "contracts/annotation_qa" = "datakeel/_contracts/annotation_qa" "docs/p9" = "datakeel/docs/p9" "THIRD_PARTY_NOTICES.md" = "datakeel/THIRD_PARTY_NOTICES.md" [tool.ruff] target-version = "py312" line-length = 100 [tool.ruff.lint] select = ["ALL"] ignore = [ "D203", "D213", # Google docstrings use one blank line and start on the first line. "COM812", "ISC001", # Formatter owns commas and adjacent literal layout. ] [tool.ruff.lint.per-file-ignores] # Pytest assertions and parameterized fixture values intentionally use literals and injected args. "tests/**/*.py" = ["S101", "ARG001", "ARG002", "PLR2004"] [tool.ruff.lint.flake8-type-checking] # Pydantic and SQLAlchemy inspect inherited model annotations when constructing schemas/mappings. runtime-evaluated-base-classes = [ "pydantic.BaseModel", "pydantic.RootModel", "pydantic_settings.BaseSettings", "datakeel.core.models.BoundaryModel", "datakeel.core.models.Record", "sqlalchemy.orm.DeclarativeBase", "datakeel.storage.base.Base", ] # Route request/response annotations are evaluated by FastAPI at router registration. runtime-evaluated-decorators = ["router.get", "router.post", "router.put", "router.patch", "router.delete"] [tool.ruff.lint.mccabe] max-complexity = 10 [tool.ruff.lint.pydocstyle] convention = "google" [tool.pyright] include = ["datakeel"] pythonVersion = "3.12" typeCheckingMode = "strict" venvPath = "." venv = ".venv" [[tool.pyright.executionEnvironments]] root = "datakeel/runtime" # Graph factories expose incomplete third-party stubs and generic callable members. reportMissingTypeStubs = false reportUnknownMemberType = false [[tool.pyright.executionEnvironments]] root = "." [tool.pytest.ini_options] testpaths = ["tests"] addopts = "-ra -m 'not integration'" markers = ["integration: optional real-service integration checks (not run by default)"] [tool.ruff.lint.pylint] max-args = 6 max-positional-args = 6 max-statements = 40