forked from Graphify-Labs/graphify
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
181 lines (168 loc) · 7.97 KB
/
Copy pathpyproject.toml
File metadata and controls
181 lines (168 loc) · 7.97 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
172
173
174
175
176
177
178
179
180
181
[build-system]
requires = ["setuptools>=83.0.0"]
build-backend = "setuptools.build_meta"
[project]
name = "graphifyy"
version = "0.9.72"
description = "AI coding assistant skill (Claude Code, CodeBuddy, Codex, OpenCode, Kilo Code, Cursor, Gemini CLI, Aider, OpenClaw, Factory Droid, Trae, Hermes, Kiro, Pi, Devin CLI, Google Antigravity) - turn any folder of code, docs, papers, images, or videos into a queryable knowledge graph"
readme = "README.md"
license = "Apache-2.0"
license-files = ["LICENSE", "LICENSE-MIT", "NOTICE"]
keywords = ["claude", "claude-code", "codex", "opencode", "kilo", "cursor", "gemini", "aider", "kiro", "pi", "devin", "knowledge-graph", "rag", "graphrag", "obsidian", "community-detection", "tree-sitter", "leiden", "llm"]
requires-python = ">=3.10"
dependencies = [
"networkx>=3.4",
"numpy>=1.21",
"rapidfuzz>=3.0",
"tomli>=2.0.1; python_version < '3.11'",
"tree-sitter>=0.23.0,<0.26",
"tree-sitter-python>=0.23,<0.26",
"tree-sitter-javascript>=0.23,<0.26",
"tree-sitter-typescript>=0.23,<0.25",
"tree-sitter-go>=0.23,<0.26",
"tree-sitter-rust>=0.23,<0.25",
"tree-sitter-java>=0.23,<0.25",
"tree-sitter-groovy>=0.1,<0.3",
"tree-sitter-c>=0.23,<0.25",
"tree-sitter-cpp>=0.23,<0.25",
"tree-sitter-ruby>=0.23,<0.25",
"tree-sitter-c-sharp>=0.23,<0.25",
"tree-sitter-kotlin>=1.0,<2.0",
"tree-sitter-scala>=0.23,<0.27",
"tree-sitter-php>=0.23,<0.25",
"tree-sitter-swift>=0.7,<0.9",
"tree-sitter-lua>=0.2,<0.6",
"tree-sitter-zig>=1.0,<2.0",
"tree-sitter-powershell>=0.26,<0.28",
"tree-sitter-elixir>=0.3,<0.5",
"tree-sitter-objc>=3.0,<4.0",
"tree-sitter-julia>=0.23,<0.25",
"tree-sitter-verilog>=1.0,<2.0",
"tree-sitter-fortran>=0.6,<0.8",
"tree-sitter-bash>=0.23,<0.27",
"tree-sitter-json>=0.23,<0.26",
]
[project.urls]
Homepage = "https://github.com/Graphify-Labs/graphify"
Repository = "https://github.com/Graphify-Labs/graphify"
Issues = "https://github.com/Graphify-Labs/graphify/issues"
[project.optional-dependencies]
# starlette is pulled in transitively by mcp, but graphify/serve.py imports it
# directly for the HTTP transport, so declare it here and floor it above the
# CVE-2026-48818 / CVE-2026-54283 fixes (both resolved by 1.3.1) (#1391, #1396).
# serve.py is dual-compat with the 1.x decorator API and the 2.x on_*
# constructor-callback API (registration is picked at runtime in
# _build_server), lifting the <2 cap 0.9.30 introduced for #2277/#2279/#2291;
# cap below 3 as the tested range. starlette stays capped below its next major.
mcp = ["mcp>=1,<3", "starlette>=1.3.1,<2"]
neo4j = ["neo4j"]
falkordb = ["falkordb"]
pdf = ["pypdf>=6.16.1", "markdownify"]
watch = ["watchdog"]
svg = ["matplotlib", "pillow>=12.3.0", "numpy>=2.0; python_version >= '3.13'"]
leiden = [
"graspologic; python_version < '3.13'",
"graspologic-native>=1.3.1,<2; python_version >= '3.13'",
]
office = ["python-docx", "openpyxl"]
google = ["openpyxl"]
# --postgres reconstructs DDL and feeds it to extract_sql(), which needs the
# tree-sitter-sql grammar; without it introspection silently returns 0 nodes,
# so the postgres extra must carry the grammar too.
postgres = ["psycopg[binary]", "tree-sitter-sql"]
video = ["faster-whisper; python_version >= '3.11'", "yt-dlp>=2026.7.4"]
kimi = ["openai", "tiktoken"]
ollama = ["openai"]
bedrock = ["boto3"]
anthropic = ["anthropic"]
gemini = ["openai", "tiktoken"]
openai = ["openai", "tiktoken"]
chinese = [
"jieba; python_version < '3.12'",
"jieba-py>=0.46.12,<1; python_version >= '3.12'",
]
sql = ["tree-sitter-sql"]
# extract_pascal() uses tree-sitter-pascal for AST-quality extraction (more
# accurate calls/inherits edges) and falls back to a regex extractor when it is
# absent (#781), so this stays optional. Unlike tree-sitter-dm below, it ships
# prebuilt wheels for every platform (win/macOS/Linux), so no C toolchain needed.
pascal = ["tree-sitter-pascal"]
# tree-sitter-dm (BYOND DreamMaker) ships only a Windows wheel, so on Linux/Mac it
# must compile from source (needs a C toolchain + python3-dev). Keeping it optional
# avoids breaking the default `uv tool install graphifyy` for everyone (#1104).
dm = ["tree-sitter-dm"]
terraform = ["tree-sitter-hcl"]
# tree-sitter-ocaml ships prebuilt abi3 wheels for every platform, so no C
# toolchain is needed; kept optional because OCaml is a niche corpus language.
ocaml = ["tree-sitter-ocaml"]
# tree-sitter-commonlisp ships prebuilt abi3 wheels for every platform; optional
# because Common Lisp is a niche corpus language.
commonlisp = ["tree-sitter-commonlisp"]
# The official Robot Framework parser (robot.api) - pure Python, wheels for
# every platform, no C toolchain; optional because Robot Framework corpora are
# QA-automation specific.
robot = ["robotframework>=4.0"]
vbnet = ["tree-sitter-vb-dotnet==0.3.0"]
# No standalone tree-sitter-r / tree-sitter-erlang wheel exists on PyPI; the
# language pack bundles both grammars in a prebuilt, offline-compatible wheel.
# Optional extras (large shared dep, resolved once in `all`).
r = ["tree-sitter-language-pack==0.11.0"]
erlang = ["tree-sitter-language-pack==0.11.0"]
solidity = ["tree-sitter-solidity==1.2.13"]
all = ["mcp>=1,<3", "starlette>=1.3.1,<2", "neo4j", "falkordb", "pypdf>=6.16.1", "markdownify", "watchdog", "graspologic; python_version < '3.13'", "graspologic-native>=1.3.1,<2; python_version >= '3.13'", "python-docx", "openpyxl", "psycopg[binary]", "faster-whisper; python_version >= '3.11'", "yt-dlp>=2026.7.4", "matplotlib", "pillow>=12.3.0", "numpy>=2.0; python_version >= '3.13'", "openai", "tiktoken", "boto3", "anthropic", "tree-sitter-sql", "jieba; python_version < '3.12'", "jieba-py>=0.46.12,<1; python_version >= '3.12'", "tree-sitter-dm", "tree-sitter-hcl", "tree-sitter-pascal", "tree-sitter-ocaml", "tree-sitter-commonlisp", "robotframework>=4.0", "tree-sitter-vb-dotnet==0.3.0", "tree-sitter-language-pack==0.11.0", "tree-sitter-solidity==1.2.13"]
[project.scripts]
graphify = "graphify.__main__:main"
graphify-mcp = "graphify.serve:_main"
[dependency-groups]
dev = [
"bandit>=1.9.4",
"build>=1.5.0",
"hypothesis>=6.152.7",
"nuitka>=4.1",
"patchelf>=0.17.2.4 ; sys_platform != 'win32'",
"pip-audit>=2.10.0",
"pre-commit>=4.6.0",
"pyright>=1.1.409",
"pytest>=9.0.3",
"pytest-cov>=7.1.0",
"ruff>=0.15.13",
"setuptools>=83.0.0",
"wheel>=0.47.0",
"tomli>=2.0 ; python_version < '3.11'",
"tree-sitter-hcl>=1.2.0",
"tree-sitter-ocaml>=0.25.0",
"tree-sitter-commonlisp>=0.4.1",
]
[tool.uv]
# Install via: uv tool install graphifyy
# Run without installing: uvx graphifyy install
package = true
[tool.setuptools]
packages = ["graphify", "graphify.extractors", "graphify.exporters"]
include-package-data = false
[tool.setuptools.package-data]
# The skill bodies ship as graphify/skill*.md (the SKILL.md a host installs is
# copied from one of these). The progressive-disclosure references sidecar ships
# under graphify/skills/<host>/references/, and the always-on injection blocks
# under graphify/always_on/. There is no graphify/skills/<host>/SKILL.md in the
# repo, so no SKILL.md glob is needed here.
graphify = ["skill.md", "skill-codex.md", "skill-opencode.md", "skill-kilo.md", "command-kilo.md", "skill-aider.md", "skill-amp.md", "skill-agents.md", "skill-copilot.md", "skill-claw.md", "skill-windows.md", "skill-droid.md", "skill-trae.md", "skill-kiro.md", "skill-vscode.md", "skill-pi.md", "skill-devin.md", "skills/*/references/*.md", "always_on/*.md"]
[tool.pytest.ini_options]
testpaths = ["tests"]
norecursedirs = [
"graphify-benchmark", "graphify_eval", "graphify_test",
"worked", "llm-stack-corpus", "llm-stack-demo", "product-site",
"scripts", "ebook", ".github", "dist", "build",
]
[tool.bandit]
skips = ["B404"]
[tool.ruff]
line-length = 100
target-version = "py310"
[tool.ruff.lint]
# Keep the committed baseline conservative until upstream adopts a broader lint policy.
select = ["E9", "F63", "F7", "F82"]
[tool.pyright]
include = ["graphify", "tests"]
pythonVersion = "3.10"
typeCheckingMode = "basic"