Skip to main content

CypherDB is a lightweight, zero-dependency, embedded graph database written entirely in Go. Think of it as SQLite for Graph Databases

Project description

GoGraph

The Minimalist Embedded Graph Database in Pure Go and Python bindings

Go Reference Go Version License: MIT Go Report Card codecov Docs


📖 Project Overview

GoGraph is a lightweight, zero-dependency, embedded graph database written entirely in Go. Think of it as "SQLite for Graph Databases".

It allows Go and Python developers to execute Cypher queries (the standard graph query language) and manage local graph data—nodes, relationships, and properties—without the overhead of external heavy database services like Neo4j.

⚡ Quick Start

1. Install CLI (Recommended)

The fastest way to explore GoGraph is via the CLI.

macOS / Linux (Homebrew):

brew install dotnetage/tap/gograph

Run TUI (Interactive Shell):

# Simply run without arguments to open default.db in interactive mode
gograph

2. Use as a python package

Basic Example:

import gograph

# 创建数据库
db = gograph.Database("my_graph.db")

# 使用事务
with db.transaction() as tx:
    node_id = tx.create_node("Person", {"name": "Alice"})
    print(f"Created node: {node_id}")
    # 自动提交

# 手动事务
tx = db.transaction()
try:
    tx.create_node("Person", {"name": "Bob"})
    tx.commit()
except:
    tx.rollback()

✨ Key Features

  • 🚀 Pure Go: No CGO, seamless cross-platform support.
  • 📦 Embedded: Zero-config, single-directory storage (Pebble DB).
  • 🔍 Cypher Support: Native MATCH, CREATE, SET, DELETE.
  • 🛡️ ACID: MVCC, thread-safety, and WAL recovery.
  • 🛠️ TUI Included: Interactive shell with auto-completion and ASCII tables.

💻 CLI Usage

The gograph binary provides a powerful TUI and command-line utilities.

Command Description
gograph Launch Interactive TUI (default to default.db)
gograph query <cypher> Run a read-only query
gograph exec <cypher> Run a data modification command

Example:

gograph query "MATCH (n) RETURN n"

🧩 System Compatibility

  • OS: macOS, Linux, Windows.
  • Arch: amd64, arm64.

📚 Documentation

Check out the full Documentation or the Docs Folder.

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

cypherdb-0.2.2.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

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

cypherdb-0.2.2-cp314-cp314-macosx_26_0_x86_64.whl (4.7 MB view details)

Uploaded CPython 3.14macOS 26.0+ x86-64

File details

Details for the file cypherdb-0.2.2.tar.gz.

File metadata

  • Download URL: cypherdb-0.2.2.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for cypherdb-0.2.2.tar.gz
Algorithm Hash digest
SHA256 b217710e23b07e76bdb66464daa2e3143a13cf9b00308fa30d227680d9eca466
MD5 170a2c8c988cdf006cf455fa1de05b67
BLAKE2b-256 01c6f7020e58a0dcf904e2ef464ba8781e398753997f1e4b5684f42b124d9443

See more details on using hashes here.

File details

Details for the file cypherdb-0.2.2-cp314-cp314-macosx_26_0_x86_64.whl.

File metadata

File hashes

Hashes for cypherdb-0.2.2-cp314-cp314-macosx_26_0_x86_64.whl
Algorithm Hash digest
SHA256 4692f1cd2e957eba17baf728f73ee58e481a7f75791e8f131b760480aaa380b2
MD5 e23224df667feb5d2d6c58aff8afe913
BLAKE2b-256 47eb883c4bc18b9d9e58465f4a49eb22a46ab9193f37a70dd2f19ce18c49a531

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