IronGraph for Python
Embeddable Cypher graph database with sub-µs point reads, built-in streams, queues, and local text embeddings. Python SDK.
Use Cypher to query graph structure, search text and vectors, inspect property history, and
administer the database. Built-in Kafka-compatible Streams and AMQP-compatible Queues handle event
and message workloads. The irongraph package provides native embedded access and remote Query
API/Bolt clients for Python. IronGraph is open-source software released under the Apache License 2.0.
Install
You need Python 3.9 or later and an official wheel. Native release targets are macOS 15+ ARM64 and Linux with glibc 2.28+ on ARM64 or AMD64. These are package build baselines; check your release's qualification results before deploying. After configuring the official package source supplied with your release:
python -m pip install --only-binary=:all: irongraph
The matching wheel must be published to that source. Installation uses a compiled database binary and does not require a Rust compiler.
Store and read a text document
Use a writable directory exclusively owned by your application process. Default startup downloads the local embedding model if absent, then loads and warms it. Allow network access and sufficient disk space on first use.
from irongraph import EmbeddedDatabase
with EmbeddedDatabase("./irongraph-data", device="cpu") as database:
database.query("CREATE PROJECT IF NOT EXISTS notes")
result = database.query(
"""USE notes
MERGE (document:Document {id: $id})
SET document.body = $body
RETURN document.body AS body""",
parameters={"id": "welcome", "body": "Graphs connect facts."},
)
print(result["rows"][0][0]["value"])
Expected output: Graphs connect facts. The context manager closes the database and the
text document persists. Run the example again to update the same text document.
The example selects CPU across native release targets and keeps automatic text embedding
enabled. Select embedding_device="metal" on a supported Mac to accelerate text inference.
Next, declare an embedding index on the text document body and use MATCH … SEARCH … RETURN to
combine vector retrieval with graph filters. The same query method supports text document updates,
indexes, temporal data, graph algorithms, and topic, queue, exchange, and binding administration.
Text documents are ordinary graph nodes; their complete text remains on the owning node.
Use an async application
Use the async methods in an asyncio application. Concurrent calls share the same embedded database and graph, and database work runs outside the event loop.
import asyncio
from irongraph import EmbeddedDatabase
async def main():
database = await EmbeddedDatabase.open_async("./irongraph-data", device="cpu")
async with database:
await database.query_async("CREATE PROJECT IF NOT EXISTS notes")
result = await database.query_async("USE notes MATCH (n) RETURN count(n)")
print(len(result["rows"]))
asyncio.run(main())
Expected output: 1. The async context manager closes the database. Async variants also cover streaming, status,
cancellation and flushing. Concurrent data calls wait asynchronously for an
available worker without a configurable operation quota.
Operate the database
Choose projects explicitly with USE or project_id; there is no implicit default. Each project
has OBSERVED, KNOWLEDGE, and WORKSPACE layers for source facts, curated facts, and working
data. Transactions, asynchronous asynchronous persistence and recovery apply to embedded
data as they do in a standalone instance.
One process uses one shared CPU graph and one active embedded instance. Text inference selects its CPU, Metal, or CUDA device independently; CUDA requires a CUDA-enabled release. Parallel reads do not wait for writers and may observe mixed values during a multi-record write. Keep the database open for the application's lifetime. IronGraph embeds text locally and does not run generative language models.
For remote access, use Client.api_mtls or Client.bolt_mtls with a client certificate,
private-key path, and trusted certificate authority. Plain connections are loopback-only;
remote access requires mutual TLS and a credential authorized for the project and operations.
Database capabilities
| Capability | What you can do |
|---|---|
| Graph queries and analytics | Match relationships and paths with Cypher; run shortest paths, PageRank, connected components, and community detection. |
| Temporal properties and analysis | Retain property history, read values with AT TIME, inspect samples with HISTORY, and aggregate with time windows and maintained rollups. |
| Text documents and search | Store the full text of articles, notes, manuals, and other written content on graph nodes; search that text with text and vector indexes and automatic local embeddings. |
| Built-in Kafka-compatible Streams | Produce and consume events through supported Kafka clients; manage topics, partitions, retention, and consumer-lag monitoring. |
| Built-in AMQP-compatible Queues | Use classic and stream queues, direct/fanout/topic exchanges, bindings, and retention with supported AMQP clients. |
Cypher handles graph operations, temporal analysis, search, and stream/queue administration. Message producers and consumers use the supported Kafka or AMQP protocols through the instance's configured listeners. The SDK query interface does not replace those protocol clients.
Explicit projects and the OBSERVED, KNOWLEDGE, and WORKSPACE layers organize data.
Indexes and unique constraints, transactions, asynchronous persistence and recovery are part of the database.
The standalone instance serves its web console at
http://127.0.0.1:18484/web/ by default and also supports local MCP
access. Start the official standalone distribution before opening that address. Opening an
embedded database through Python, Node.js, or Rust does not start a web server or expose the
console. For a configured remote instance, use its HTTPS address followed by /web/, with
the required browser-managed client certificate.
Temporal reads apply to declared properties within their retention window. Graph topology and ordinary properties are read in their current state.
License
IronGraph is licensed under the Apache License 2.0. Third-party components and the embedding model retain their own terms.
Metadata
Release files for irongraph 0.1.12
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| irongraph-0.1.12-cp39-abi3-manylinux_2_28_x86_64.whl | CPython 3.9 | abi3 | Linux glibc 2.28+ x86-64 | Details for irongraph-0.1.12-cp39-abi3-manylinux_2_28_x86_64.whl |
| irongraph-0.1.12-cp39-abi3-manylinux_2_28_aarch64.whl | CPython 3.9 | abi3 | Linux glibc 2.28+ ARM64 | Details for irongraph-0.1.12-cp39-abi3-manylinux_2_28_aarch64.whl |
| irongraph-0.1.12-cp39-abi3-macosx_15_0_arm64.whl | CPython 3.9 | abi3 | macOS 15.0+ ARM64 | Details for irongraph-0.1.12-cp39-abi3-macosx_15_0_arm64.whl |
Total release size: 109.4 MB
Release files / irongraph-0.1.12-cp39-abi3-manylinux_2_28_x86_64.whl
| Download URL | irongraph-0.1.12-cp39-abi3-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 37.3 MB |
| Tags | CPython 3.9 Linux glibc 2.28+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
4f0e2d44758992b181a346bf9e0581c2aaef6f6212e1bf8583ad706ea3bbe484
|
|
BLAKE2b-256 checksum How to use checksums |
c893d69893b0b2a6df4a14b54dd9636e45caaac7bd1d53d76d2c323cf5a58df7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.6
|
Release files / irongraph-0.1.12-cp39-abi3-manylinux_2_28_aarch64.whl
| Download URL | irongraph-0.1.12-cp39-abi3-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 36.3 MB |
| Tags | CPython 3.9 Linux glibc 2.28+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
c6d35b3e8dfe040433b4bde638da7caa24c0f96cadba3e6214c6f12a436b4aca
|
|
BLAKE2b-256 checksum How to use checksums |
0b6422dd5b6d6da0ffbc0df999c8d4aaca966012e133fb233bfed1e5f93eae0d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.6
|
Release files / irongraph-0.1.12-cp39-abi3-macosx_15_0_arm64.whl
| Download URL | irongraph-0.1.12-cp39-abi3-macosx_15_0_arm64.whl |
|---|---|
| Size | 35.8 MB |
| Tags | CPython 3.9 abi3 macOS 15.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
201250957dafefd79066680c8b0988bf404c594c46a7b330c00d97af5317836b
|
|
BLAKE2b-256 checksum How to use checksums |
a68fd587c41657f8a98e45fc72a0e222f3e5675dd8615d520354e46ffee4c35e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.6
|
Security for irongraph 0.1.12
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.