Skip to main content

Medulla

The medulla distribution provides Medulla; import it as medulla. The repository is medulla. Package, CLI and API identifiers remain unchanged.

Medulla logo

A durable graph database and reasoning engine for connected, evidence-rich data.
Property graph · SQL · RDF/OWL · vectors · time · provenance · multimodal records

PyPI - Version Documentation GitHub license Version Build GitHub Repo stars GitHub forks GitHub contributors GitHub last commit (by committer) GitHub pull requests GitHub closed pull requests GitHub issues GitHub top language GitHub language count GitHub repo size GitHub repo file count (file type) PyPI - Downloads PyPI - License PyPI - Wheel PyPI - Implementation

Documentation · Capabilities · Interfaces · Status

Overview

Medulla is a Rust-native database and compute engine for teams building knowledge systems, evidence-led applications, analytics, and agent memory. It stores and queries connected graph records, relational data, RDF/OWL knowledge, vectors, time-series, events, documents, and media through one engine.

Claims can retain their evidence, provenance, confidence, and time of validity, so applications can inspect why information is present and how it changes. Use Medulla directly through its clients and query interfaces. It also serves as the durable knowledge layer beneath Arbora and Agent Utilities. Medulla is the database. Agent execution and connector runtimes live in their respective ecosystem projects.

Key capabilities

Capability What it provides
One multi-model engine Property graph, relational tables, RDF, vectors, time-series, events, blobs, and media
Query across interfaces UQL, SQL, SPARQL, Cypher/Bolt, GraphQL, and typed native clients
Semantic constraints OWL reasoning, SHACL validation, and ShEx shape validation
Evidence-aware knowledge Claims, provenance, confidence, contradiction handling, and bitemporal validity
Durable operation Commit-before-ack persistence, audit, change data capture, tenant isolation, and observability
Distributed deployment Single-node operation and an optional cluster build with replication and coordinated placement

Check the capability matrix and generated method ledger for the current behavior of each operation.

Packages

This repository publishes two PyPI packages and one container image, all at the same version.

Medulla Stem is the native server, distributed as medulla-stem. The server executable, module and packaging-path identifiers remain unchanged.

Artifact Contents Install
medulla The Python client, the in-process engine module and the numeric kernel. Carries no executable. pip install medulla
medulla-stem The native medulla-server executable (Linux x86_64 and aarch64) and medulla_server.binary_path(). Source in packaging/medulla-server. pip install medulla-stem
medulla[server] The client plus the server package pinned to the same version. pip install "medulla[server]"
medulla-stem image The server binary on a slim base, one tag for linux/amd64 and linux/arm64, built from the server wheel. docker pull <registry-user>/medulla-stem:<version>

Documentation

  • Start here for a guided engine tour.
  • Interfaces explains UQL, SQL, SPARQL, Cypher, GraphQL, vectors, time-series, and clients.
  • Architecture covers query execution, reasoning, storage, and distribution.
  • Deploy Medulla covers durable server, TLS, containers, and clusters.
  • Operations covers day-two procedures and recovery.

Architecture

People use browser, terminal, desktop, or messaging clients. Arbora serves clients. Agent Utilities coordinates agents. Medulla stores knowledge. Connectors synchronize source systems.
Explore the live architecture

Medulla architecture. Authenticated interfaces feed one planner. It composes graph, semantic, analytical, temporal, and multimodal engines over one durable store.

People use the Overstory (browser), Tuig (terminal), Axil (desktop), or the messaging services hosted by Arbora. The terminal UI reaches Arbora through its REST API. External applications and agents connect through Arbora using MCP, REST, or A2A. Arbora governs the runtime boundary. Meristem is the in-run harness. It applies the decisions it receives and holds no store. Medulla stores and reasons over their durable knowledge. Source systems enter through Scion SDK, which holds connector contracts and transports. External stores stay connector sources, read as virtual graphs.

This repository owns Ecosystem projects own
Durable graph and multimodal state, query planning, reasoning, and engine authorization Arbora owns MCP/REST/A2A entrypoints, runtime policy, and frontend hosting
Rust serde types as the contract source of truth; hand-written clients tested on round-trip vectors Meristem owns the in-run harness: run loop, context, and fan-out
Source-ingestion admission, schema validation, evidence, and provenance commits Scion SDK owns connector execution and source-system adapters
Database and compute execution Overstory, Tuig, and Axil provide user-facing clients

Quick start

Install the release wheel and open an in-process graph. This mode is explicit, ephemeral, and needs no server or TLS configuration.

python -m pip install medulla
python -m medulla.cli status  # no server is expected in embedded mode
python - <<'PY'
import msgpack
from medulla.engine import Engine

engine = Engine(persist_dir=":memory:")
engine.create_graph("demo")
engine.add_node(
    "demo",
    "node:hello",
    msgpack.packb({"kind": "Greeting"}, use_bin_type=True),
)
print(engine.has_node("demo", "node:hello"), engine.node_count("demo"))
PY

Expected output:

Status: NOT RUNNING (no PID file)
True 1

For durable storage, authenticated clients, containers, TLS, or clustering, continue with Deploy Medulla.

Contributing

Issues and pull requests are welcome. See CONTRIBUTING.md for development setup and review gates. Architecture and implementation guidance for coding agents lives in AGENTS.md.

License

Licensed under the MIT License.

Metadata

Release files for medulla 3.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for medulla 3.1.0
File Size Uploaded Provenance Actions
medulla-3.1.0.tar.gz 11.5 MB Without provenance Details for medulla-3.1.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for medulla 3.1.0
File Actions
medulla-3.1.0-cp39-abi3-win_amd64.whl CPython 3.9 abi3 Windows x86-64 Details for medulla-3.1.0-cp39-abi3-win_amd64.whl
medulla-3.1.0-cp39-abi3-manylinux_2_28_x86_64.whl CPython 3.9 abi3 Linux glibc 2.28+ x86-64 Details for medulla-3.1.0-cp39-abi3-manylinux_2_28_x86_64.whl
medulla-3.1.0-cp39-abi3-manylinux_2_28_aarch64.whl CPython 3.9 abi3 Linux glibc 2.28+ ARM64 Details for medulla-3.1.0-cp39-abi3-manylinux_2_28_aarch64.whl
medulla-3.1.0-cp39-abi3-macosx_11_0_arm64.whl CPython 3.9 abi3 macOS 11.0+ ARM64 Details for medulla-3.1.0-cp39-abi3-macosx_11_0_arm64.whl

Total release size: 44.4 MB

Release files / medulla-3.1.0.tar.gz

Download URL medulla-3.1.0.tar.gz
Size 11.5 MB
Tags Source
SHA-256 checksum
How to use checksums
634a1cbe211defc0dc087e4ed7371e6a7c0d28619d3711fe4b17c9607b6dd4ea
BLAKE2b-256 checksum
How to use checksums
e949d11d6699750bd81d6f301c785a7b5075d41e61a9bf272ab9622c32a81a80
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.9

Release files / medulla-3.1.0-cp39-abi3-win_amd64.whl

Download URL medulla-3.1.0-cp39-abi3-win_amd64.whl
Size 9.3 MB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
88412229c25985fc311b2e9e736220eb79d9df35bc9dd0808e3e6c7c309b73aa
BLAKE2b-256 checksum
How to use checksums
ddc300e56864c73c42e4b905f71e658c1ff3c187f7b2e42216f5bb828b311f45
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.10

Release files / medulla-3.1.0-cp39-abi3-manylinux_2_28_x86_64.whl

Download URL medulla-3.1.0-cp39-abi3-manylinux_2_28_x86_64.whl
Size 8.4 MB
Tags CPython 3.9 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
38d914260d326603621804273b870be372342f5051b5e0e7d80b3b3f2b5f6720
BLAKE2b-256 checksum
How to use checksums
aa52d7ed6ae1259f616ea9d434bcf9d93d8a965dd7e6a9284393f59f7a99d313
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.9

Release files / medulla-3.1.0-cp39-abi3-manylinux_2_28_aarch64.whl

Download URL medulla-3.1.0-cp39-abi3-manylinux_2_28_aarch64.whl
Size 7.7 MB
Tags CPython 3.9 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
a9ef0ed5aa404a5b8a3be3300f21c5d31fc7a3ec57ab00cda3149e46f5f17668
BLAKE2b-256 checksum
How to use checksums
1e1be2a9f2a78d5657f0767ef7a941a021cbd7e1a19419a4874bf8766b7337e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.9

Release files / medulla-3.1.0-cp39-abi3-macosx_11_0_arm64.whl

Download URL medulla-3.1.0-cp39-abi3-macosx_11_0_arm64.whl
Size 7.5 MB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
46fa3d5020330b76b7cdc89ccdf877ba4e6a92503949627b00ad47b90fc18b11
BLAKE2b-256 checksum
How to use checksums
a08929c53ea7aea44f2b3a0f3d8d6725c1c6bd3f4997d5b6b8f84cf9367db25f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Security for medulla 3.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page