-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpyproject.toml
More file actions
160 lines (150 loc) · 5.51 KB
/
Copy pathpyproject.toml
File metadata and controls
160 lines (150 loc) · 5.51 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
[build-system]
requires = ["setuptools>=77.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "engraphis"
version = "0.9.6"
description = "Local-first AI memory engine for agents — Ebbinghaus decay, interaction-aware recall, bi-temporal facts, hybrid retrieval, and an MCP server. You bring the LLM."
readme = "README.md"
license = "Apache-2.0"
license-files = ["LICENSE", "NOTICE"]
requires-python = ">=3.9"
authors = [{ name = "The Engraphis Authors" }]
keywords = ["ai", "agents", "memory", "mcp", "rag", "vector-search", "llm", "retrieval"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries",
]
dependencies = [
"numpy>=1.24",
]
[project.optional-dependencies]
# The REST server + real embeddings (the full self-hosted stack).
server = [
"fastapi>=0.110",
"uvicorn[standard]>=0.29",
"httpx>=0.25",
"pydantic>=2.0",
"python-dotenv>=1.0",
"sentence-transformers>=2.7",
]
# The MCP server — plug Engraphis into Claude Code, Cursor, Cline, Zed, etc.
# The upstream MCP SDK requires Python 3.10+; the numpy-only core remains Python 3.9.
mcp = [
"mcp>=1.2.0; python_version >= '3.10'",
"pydantic>=2.0",
"sentence-transformers>=2.7",
]
# Code-symbol graph indexing. Optional: index_repo()/search_code()
# fall back to a dependency-free regex indexer without this — see backends/codegraph.py.
code = [
"tree-sitter>=0.23",
"tree-sitter-language-pack>=0.2",
]
# Local resource extraction. Text/code/HTML/DOCX remain stdlib-only; this adds PDF
# extraction and image OCR bindings (the Tesseract executable is installed separately).
documents = [
"pypdf>=4.0",
"Pillow>=10.0",
"pytesseract>=0.3.10",
]
transcription = [
"faster-whisper>=1.0",
# onnxruntime 1.24+ dropped CPython 3.10 wheels; keep the advertised 3.10
# install path resolvable while faster-whisper still supports it.
"onnxruntime<1.24; python_version < '3.11'",
]
postgres = [
"psycopg[binary]>=3.1",
]
# Encryption at rest for the memory database (SQLCipher / AES-256). Opt-in: set
# ENGRAPHIS_DB_KEY (or ENGRAPHIS_DB_KEY_FILE). Without this the DB is plaintext.
encryption = [
"sqlcipher3-binary>=0.5.0",
]
# Everything available on the current platform, for a full self-hosted install.
# sqlcipher3-binary currently publishes Linux wheels only; Windows users can still
# install ``all`` and add a separately provisioned SQLCipher driver if desired.
all = [
"fastapi>=0.110",
"uvicorn[standard]>=0.29",
"httpx>=0.25",
"pydantic>=2.0",
"python-dotenv>=1.0",
"sentence-transformers>=2.7",
"mcp>=1.2.0; python_version >= '3.10'",
"tree-sitter>=0.23",
"tree-sitter-language-pack>=0.2",
"pypdf>=4.0",
"Pillow>=10.0",
"pytesseract>=0.3.10",
"faster-whisper>=1.0",
"onnxruntime<1.24; python_version < '3.11'",
"psycopg[binary]>=3.1",
"sqlcipher3-binary>=0.5.0; platform_system != 'Windows'",
]
dev = ["pytest>=8.0", "pytest-asyncio>=0.23", "ruff>=0.4"]
# Everything needed to run the FULL offline gate in CI (lint + all extras-gated tests)
# WITHOUT pulling torch/sentence-transformers — no test needs the real embedder.
test = [
"pytest>=8.0",
"pytest-asyncio>=0.23",
"ruff>=0.4",
"fastapi>=0.110",
"httpx>=0.25",
"mcp>=1.2.0; python_version >= '3.10'",
"tree-sitter>=0.23",
"tree-sitter-language-pack>=0.2",
"pypdf>=4.0",
"Pillow>=10.0",
"pytesseract>=0.3.10",
"faster-whisper>=1.0",
"onnxruntime<1.24; python_version < '3.11'",
"psycopg[binary]>=3.1",
"sqlcipher3-binary>=0.5.0; platform_system != 'Windows'",
]
[project.urls]
Homepage = "https://github.com/Coding-Dev-Tools/engraphis"
Repository = "https://github.com/Coding-Dev-Tools/engraphis"
Issues = "https://github.com/Coding-Dev-Tools/engraphis/issues"
[project.scripts]
engraphis-server = "scripts.start_server:main"
engraphis-cli = "scripts.cli:main"
engraphis-mcp = "engraphis.mcp_server:main"
engraphis-inspector = "scripts.inspector:main"
engraphis-dashboard = "scripts.start_dashboard:main"
engraphis-consolidate = "scripts.consolidate:main"
engraphis-graph = "scripts.graph_cli:main"
engraphis-graph-server = "scripts.graph_server:main"
engraphis-init = "scripts.init:main"
engraphis-update = "scripts.update:main"
[tool.setuptools]
include-package-data = false
[tool.setuptools.packages.find]
include = ["engraphis*", "scripts*"]
[tool.setuptools.package-data]
"engraphis.inspector" = ["index.html"]
# Keep the shipped dashboard assets explicit. A recursive catch-all also packages ignored
# runtime artifacts such as static/__pycache__/*.pyc after a local compile check.
# vendor/**/* covers nested vendor assets too (vendor/* alone doesn't cross "/").
"engraphis.static" = ["*.html", "*.png", "*.ico", "vendor/*", "vendor/**/*"]
[tool.setuptools.exclude-package-data]
"*" = ["*.pyc", "*.pyo", "__pycache__/*"]
[tool.ruff]
line-length = 100
target-version = "py39"
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-q"
filterwarnings = [
# Third-party (Starlette's TestClient), not our code and not fixable without a
# dependency bump — silence just this one message so the suite output stays clean.
"ignore:Using `httpx` with `starlette.testclient` is deprecated",
]