colliery-io/graphqlite
colliery-io/graphqlite has 530 GitHub stars and 33 forks. GitHot measured +2 stars in 24 hours. Last checked 2026-11-11 20:25 UTC. Last push 2026-11-09.
A SQLite extension that adds graph database capabilities with Cypher query language support and built-in graph algorithms.
可以做什么
- Cypher queries — MATCH, CREATE, MERGE, SET, DELETE, WITH, UNWIND, RETURN
- Graph algorithms — PageRank, Louvain, Dijkstra, BFS/DFS, connected components, and more
- Zero configuration — Works with any SQLite database, no server required
- Multiple bindings — Python, Rust, and raw SQL interfaces
实测星标增长
- 24小时
- +2
- 7天
- 更新延迟
- 15天
- 更新延迟
- 1个月
- 更新延迟
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文GraphQLite
An SQLite extension that adds graph database capabilities using the Cypher query language.
Store and query graph data directly in SQLite—combining the simplicity of a single-file, zero-config embedded database with Cypher's expressive power for modeling relationships.
Installation
brew install graphqlite # macOS/Linux (Homebrew)
pip install graphqlite # Python
cargo add graphqlite # Rust
Quick Start
from graphqlite import Graph
g = Graph(":memory:")
g.upsert_node("alice", {"name": "Alice", "age": 30}, label="Person")
g.upsert_node("bob", {"name": "Bob", "age": 25}, label="Person")
g.upsert_edge("alice", "bob", {"since": 2020}, rel_type="KNOWS")
# Query with Cypher
results = g.query("MATCH (a:Person)-[:KNOWS]->(b) RETURN a.name, b.name")
# Built-in graph algorithms
g.pagerank()
g.louvain()
g.dijkstra("alice", "bob")
Features
- Cypher queries — MATCH, CREATE, MERGE, SET, DELETE, WITH, UNWIND, RETURN
- Graph algorithms — PageRank, Louvain, Dijkstra, BFS/DFS, connected components, and more
- Zero configuration — Works with any SQLite database, no server required
- Multiple bindings — Python, Rust, and raw SQL interfaces
openCypher Conformance
GraphQLite is validated against the official openCypher Technology Compatibility Kit (TCK) — the canonical conformance suite for the Cypher query language. Current coverage:
| Area | Scenarios | Passing |
|---|---|---|
| Overall | 3,880 | 98.5% |
| Expressions (temporal, lists, maps, comparison, literals, …) | 2,599 | 98.5% |
| Clauses (MATCH, WITH, MERGE, CREATE, SET, DELETE, UNWIND, …) | 1,251 | 98.6% |
| Use cases (triadic selection, subgraph counting) | 30 | 100% |
Run it yourself with angreal test tck. The remaining gaps are tracked in
docs/testing/semantic-coverage-matrix.md
and concentrate in a few deep areas (DST-aware timezone arithmetic, nested
existential subqueries, multi-row MERGE). Booleans, strings, null handling,
CREATE/SET/DELETE/REMOVE, UNION, and SKIP/LIMIT are at 100%.
Documentation
Full Documentation — Tutorials, how-to guides, and API reference
Examples
# SQL tutorials
sqlite3 < examples/sql/01_getting_started.sql
# GraphRAG with HotpotQA dataset
cd examples/llm-graphrag
uv sync && uv run python ingest.py
uv run python rag.py "Were Scott Derrickson and Ed Wood of the same nationality?"
License
探索相关项目
Asabeneh/30-Days-Of-Python
30 Days of Python 编程挑战是一份循序渐进的指南,用于在 30 天内学习 Python 编程语言。这项挑战可能需要超过 100 天。请按自己的节奏进行。这些视频或许也有帮助:https://www.youtube.com/channel/UC7PNRuno1rzYPb1xLa4yktw
78,560 星标grafana/grafana
开放且可组合的可观测性与数据可视化平台。可对来自 Prometheus、Loki、Elasticsearch、InfluxDB、Postgres 等众多数据源的指标、日志和追踪进行可视化。
77,830 星标redis/redis
对于正在构建实时数据驱动应用的开发者而言,Redis 是首选、速度最快且功能最丰富的缓存、数据结构服务器和文档与向量查询引擎。
77,395 星标apache/superset
Apache Superset 是一个数据可视化与数据探索平台
75,473 星标