Skip to main content

Composable graph tooling for analysis, construction, and refinement

Project description

PyPI version Python License

Pydantic openCypher TCK target

GraphForge

Composable graph tooling for analysis, construction, and refinement

A lightweight, embedded, openCypher-compatible graph engine for research and investigative workflows


Why GraphForge?

Modern data science and ML workflows increasingly produce graph-shaped data—entities and relationships extracted from text, tables, and LLM outputs. Yet practitioners face a painful choice:

NetworkX Production DBs (Neo4j, Memgraph)
Durability Manual serialization only ✓ Persistent
Query language None Cypher
Operational overhead Minimal High (services, config)
Notebook-friendly
Iterative analysis Poor

GraphForge fills the gap—embedded, durable, and declarative—without running external services.

We are not building a database for applications.
We are building a graph execution environment for thinking.


Features

  • Embedded & local-first — No server, no daemon. Runs entirely inside your Python process.
  • openCypher subset — Declarative pattern matching with semantic correctness validated against the TCK.
  • Graph-native execution — Adjacency-based traversal, not relational joins.
  • Durable but disposable — Persist graphs across restarts; treat them as analytical artifacts.
  • Python-first — Designed for notebooks, scripts, and agentic pipelines.

Planned v1 Scope

  • MATCH (nodes, relationships, directionality)
  • WHERE (boolean logic, comparisons, property access)
  • RETURN, LIMIT, SKIP
  • Node and relationship materialization
  • Optional Pydantic-backed data models for validation

Installation

# Using uv (recommended)
uv add graphforge

# Using pip
pip install graphforge

Requirements: Python 3.10+


Quick Start

from graphforge import GraphForge

# Create a graph (API in development)
db = GraphForge("my-graph.db")

# Execute openCypher queries
rows = db.execute("""
  MATCH (n:Person)
  WHERE n.age > 30
  RETURN n.name
  LIMIT 5
""")

Note: GraphForge is early in development. The core API and storage layer are being built out per the requirements document.


Design Principles

  • Spec-driven correctness — openCypher semantics over performance.
  • Deterministic & reproducible — Stable behavior across runs.
  • Inspectable — Query plans, storage layout, and execution behavior are observable.
  • Replaceable internals — Minimal operational overhead, stable APIs.

Links


License

MIT © David Spencer

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

graphforge-0.1.1.tar.gz (27.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

graphforge-0.1.1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file graphforge-0.1.1.tar.gz.

File metadata

  • Download URL: graphforge-0.1.1.tar.gz
  • Upload date:
  • Size: 27.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.16

File hashes

Hashes for graphforge-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6a19a12f1c4b5b8b04fb6c41820944fe0b1ca1fd096e6b66462fb3ffbed41102
MD5 a281188807b1d7f19a1e856f70a91c05
BLAKE2b-256 df3e5740150927c69c050681a54644b1ad832862c8aff88bdb346a3cfdd9f8af

See more details on using hashes here.

File details

Details for the file graphforge-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: graphforge-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.16

File hashes

Hashes for graphforge-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d1bac6bdc6441752712d6959e3f2faf47745e35ec8c82b16124102989727dd69
MD5 a3b3c1c660d4008e5fb5a5aa5a20505c
BLAKE2b-256 f00f483675a3bdb3978e35ab5f70d077005821d389c5a61047a49f9e5752c3e9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page