Zero-config, single-file, embedded graph database with bi-temporal Datalog queries
Project description
minigraf (Python)
Python binding for Minigraf — zero-config, single-file, embedded bi-temporal graph database with Datalog queries.
Installation
pip install minigraf
Supports Python 3.9+ on Linux (x86_64, aarch64), macOS (universal2), and Windows (x86_64).
Quick start
import json
from minigraf import MiniGrafDb
# In-memory database
db = MiniGrafDb.open_in_memory()
db.execute('(transact [[:alice :name "Alice"] [:alice :age 30]])')
result = json.loads(db.execute("(query [:find ?n ?a :where [?e :name ?n] [?e :age ?a]])"))
print(result["results"]) # [["Alice", 30]]
# File-backed (persisted to disk)
db = MiniGrafDb.open("path/to/mydb.graph")
db.execute('(transact [[:bob :name "Bob"]])')
db.checkpoint()
Building from source
Requires Rust stable toolchain and maturin.
pip install maturin
maturin develop
Cascade release
This repo receives a core-release repository_dispatch from the minigraf monorepo
cascade whenever a new version of the minigraf core crate is published. The release
workflow pins the new version, commits, tags, builds wheels for all platforms, and
publishes to PyPI.
License
MIT OR Apache-2.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file minigraf-1.2.1-py3-none-win_amd64.whl.
File metadata
- Download URL: minigraf-1.2.1-py3-none-win_amd64.whl
- Upload date:
- Size: 863.8 kB
- Tags: Python 3, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bfeddc75b181bdbb019737b522b6122ab1ddb53aeb0f27c49e24a7a823d87c32
|
|
| MD5 |
8e2445fca5789982436e951567863272
|
|
| BLAKE2b-256 |
b202a689156a5b9f5862694b811f699dad949439cc9fd1ee16d07547f24937ae
|
Provenance
The following attestation bundles were made for minigraf-1.2.1-py3-none-win_amd64.whl:
Publisher:
release.yml on project-minigraf/minigraf-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
minigraf-1.2.1-py3-none-win_amd64.whl -
Subject digest:
bfeddc75b181bdbb019737b522b6122ab1ddb53aeb0f27c49e24a7a823d87c32 - Sigstore transparency entry: 1995162105
- Sigstore integration time:
-
Permalink:
project-minigraf/minigraf-python@8900707be4bd20d3f5664e85678627582d82d89e -
Branch / Tag:
refs/heads/main - Owner: https://github.com/project-minigraf
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@8900707be4bd20d3f5664e85678627582d82d89e -
Trigger Event:
repository_dispatch
-
Statement type:
File details
Details for the file minigraf-1.2.1-py3-none-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: minigraf-1.2.1-py3-none-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 1.0 MB
- Tags: Python 3, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5cad546f87d81a837958ec7b1e7ff9cef0cc97ac27e955eafb2d6a6206e17b29
|
|
| MD5 |
f387cbeadca8f348e3205f28e58fe4b8
|
|
| BLAKE2b-256 |
e8d5cb6d56795bd69308b18c162331c936b4607a18a33aeb933f0c1da9de75e6
|
Provenance
The following attestation bundles were made for minigraf-1.2.1-py3-none-manylinux_2_34_x86_64.whl:
Publisher:
release.yml on project-minigraf/minigraf-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
minigraf-1.2.1-py3-none-manylinux_2_34_x86_64.whl -
Subject digest:
5cad546f87d81a837958ec7b1e7ff9cef0cc97ac27e955eafb2d6a6206e17b29 - Sigstore transparency entry: 1995162355
- Sigstore integration time:
-
Permalink:
project-minigraf/minigraf-python@8900707be4bd20d3f5664e85678627582d82d89e -
Branch / Tag:
refs/heads/main - Owner: https://github.com/project-minigraf
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@8900707be4bd20d3f5664e85678627582d82d89e -
Trigger Event:
repository_dispatch
-
Statement type:
File details
Details for the file minigraf-1.2.1-py3-none-manylinux_2_34_aarch64.whl.
File metadata
- Download URL: minigraf-1.2.1-py3-none-manylinux_2_34_aarch64.whl
- Upload date:
- Size: 993.1 kB
- Tags: Python 3, manylinux: glibc 2.34+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
397b01d0739d1153ebc54d2791e1b6f797ab4602b619878aeab3bedd73642864
|
|
| MD5 |
8c2b9113c61a755656c08af3bdc2cdb1
|
|
| BLAKE2b-256 |
6c81b742a1926728c00fa85bfd578af5a541ffb1e0b4f3ed42e437046dc85e1b
|
Provenance
The following attestation bundles were made for minigraf-1.2.1-py3-none-manylinux_2_34_aarch64.whl:
Publisher:
release.yml on project-minigraf/minigraf-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
minigraf-1.2.1-py3-none-manylinux_2_34_aarch64.whl -
Subject digest:
397b01d0739d1153ebc54d2791e1b6f797ab4602b619878aeab3bedd73642864 - Sigstore transparency entry: 1995162000
- Sigstore integration time:
-
Permalink:
project-minigraf/minigraf-python@8900707be4bd20d3f5664e85678627582d82d89e -
Branch / Tag:
refs/heads/main - Owner: https://github.com/project-minigraf
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@8900707be4bd20d3f5664e85678627582d82d89e -
Trigger Event:
repository_dispatch
-
Statement type:
File details
Details for the file minigraf-1.2.1-py3-none-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl.
File metadata
- Download URL: minigraf-1.2.1-py3-none-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
- Upload date:
- Size: 1.9 MB
- Tags: Python 3, macOS 10.12+ universal2 (ARM64, x86-64), macOS 10.12+ x86-64, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
beb0635c3b31f754be4e8c23ee1412dd31bee4a6f29fb624452842b3182fff0c
|
|
| MD5 |
2ebbe90b9948054852771011552f415f
|
|
| BLAKE2b-256 |
39f11c8851fba5de546b4355cf30b5de0bd6ce64cd1e3f94522dd7fb29c3df38
|
Provenance
The following attestation bundles were made for minigraf-1.2.1-py3-none-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl:
Publisher:
release.yml on project-minigraf/minigraf-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
minigraf-1.2.1-py3-none-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl -
Subject digest:
beb0635c3b31f754be4e8c23ee1412dd31bee4a6f29fb624452842b3182fff0c - Sigstore transparency entry: 1995162257
- Sigstore integration time:
-
Permalink:
project-minigraf/minigraf-python@8900707be4bd20d3f5664e85678627582d82d89e -
Branch / Tag:
refs/heads/main - Owner: https://github.com/project-minigraf
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@8900707be4bd20d3f5664e85678627582d82d89e -
Trigger Event:
repository_dispatch
-
Statement type: