Skip to main content

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


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

minigraf-1.2.1-py3-none-win_amd64.whl (863.8 kB view details)

Uploaded Python 3Windows x86-64

minigraf-1.2.1-py3-none-manylinux_2_34_x86_64.whl (1.0 MB view details)

Uploaded Python 3manylinux: glibc 2.34+ x86-64

minigraf-1.2.1-py3-none-manylinux_2_34_aarch64.whl (993.1 kB view details)

Uploaded Python 3manylinux: glibc 2.34+ ARM64

minigraf-1.2.1-py3-none-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (1.9 MB view details)

Uploaded Python 3macOS 10.12+ universal2 (ARM64, x86-64)macOS 10.12+ x86-64macOS 11.0+ ARM64

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

Hashes for minigraf-1.2.1-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 bfeddc75b181bdbb019737b522b6122ab1ddb53aeb0f27c49e24a7a823d87c32
MD5 8e2445fca5789982436e951567863272
BLAKE2b-256 b202a689156a5b9f5862694b811f699dad949439cc9fd1ee16d07547f24937ae

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file minigraf-1.2.1-py3-none-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for minigraf-1.2.1-py3-none-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 5cad546f87d81a837958ec7b1e7ff9cef0cc97ac27e955eafb2d6a6206e17b29
MD5 f387cbeadca8f348e3205f28e58fe4b8
BLAKE2b-256 e8d5cb6d56795bd69308b18c162331c936b4607a18a33aeb933f0c1da9de75e6

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file minigraf-1.2.1-py3-none-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for minigraf-1.2.1-py3-none-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 397b01d0739d1153ebc54d2791e1b6f797ab4602b619878aeab3bedd73642864
MD5 8c2b9113c61a755656c08af3bdc2cdb1
BLAKE2b-256 6c81b742a1926728c00fa85bfd578af5a541ffb1e0b4f3ed42e437046dc85e1b

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

File hashes

Hashes for minigraf-1.2.1-py3-none-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 beb0635c3b31f754be4e8c23ee1412dd31bee4a6f29fb624452842b3182fff0c
MD5 2ebbe90b9948054852771011552f415f
BLAKE2b-256 39f11c8851fba5de546b4355cf30b5de0bd6ce64cd1e3f94522dd7fb29c3df38

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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