Voyager OGM for Python
Multi-dialect Object-Graph Mapper (OGM) and query compiler for Python.
Voyager OGM lets you define graph models with Python type annotations and build a query once as an abstract syntax tree, then compile it to the dialect your database speaks: openCypher (Neo4j, Memgraph, FalkorDB), SQL:2023 PGQ GRAPH_TABLE (DuckDB/DuckPGQ, PostgreSQL), ISO GQL, or Apache AGE. Results stream into Polars DataFrames through the Apache Arrow C Data Interface, and optional extras add Bolt, PostgreSQL, embedded DuckDB and Relate, SQLAlchemy, NetworkX, and notebook integrations.
Installation
With pip:
pip install voyager-ogm
In a uv project (adds it to pyproject.toml):
uv add voyager-ogm
Into an existing virtual environment with uv:
uv pip install voyager-ogm
A base install pulls in only polars and pyarrow (tzdata is added on Windows). Prebuilt wheels are available for Python 3.11 through 3.14 on:
- Linux:
manylinux_2_28on x86_64 and aarch64 - macOS: x86_64 and arm64
- Windows: x86_64
The wheels are abi3 (cp311-abi3), so one wheel per platform covers every supported Python version.
Optional extras
Some integrations live behind extras so the base install stays small:
| Extra | Adds | What it enables | Install |
|---|---|---|---|
neo4j |
neo4j |
Bolt bridge to Neo4j and Memgraph (bolt://, neo4j://) |
pip install "voyager-ogm[neo4j]" |
age |
psycopg[binary] |
PostgreSQL and Apache AGE bridge (postgresql://, age://) |
pip install "voyager-ogm[age]" |
duckdb |
duckdb |
Embedded DuckDB / DuckPGQ bridge (duckdb://) |
pip install "voyager-ogm[duckdb]" |
relate |
relate-db |
Embedded Relate bridge (relate://, relatedb://) |
pip install "voyager-ogm[relate]" |
sqlalchemy |
sqlalchemy |
SQLAlchemy interop and SQLAlchemy-backed query compilation (HybridSession) |
pip install "voyager-ogm[sqlalchemy]" |
analytics |
networkx |
NetworkX graph export via to_networkx() |
pip install "voyager-ogm[analytics]" |
notebook |
marimo, anywidget, traitlets |
Interactive show() / explore() viewer widget in Marimo and Jupyter/VS Code notebooks |
pip install "voyager-ogm[notebook]" |
In a uv project, swap pip install for uv add (or use uv pip install for an existing environment). Combine extras in one command, with pip:
pip install "voyager-ogm[neo4j,sqlalchemy]"
or with uv:
uv add "voyager-ogm[neo4j,sqlalchemy]"
The
duckdbandageextras carry apython_version < '3.14'marker, so on Python 3.14 they install without their driver. The FalkorDB/Redis bridge uses thefalkordbpackage, which has no extra:pip install falkordb.
Pre-releases
Pre-releases (X.Y.ZaN) are published to TestPyPI, not PyPI. Install one with PyPI as the fallback index for the dependencies, with pip:
pip install --pre -i https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ voyager-ogm
or with uv:
uv pip install --prerelease allow --index https://test.pypi.org/simple/ --default-index https://pypi.org/simple/ --index-strategy unsafe-best-match voyager-ogm
Quick start
Define models, build one query, and compile it to each dialect:
from voyager_ogm import Node, Relationship, Query, node, relationship
@node(label="Person")
class Person:
name: str
age: int
city: str = "London"
@relationship(type_name="WORKS_AT")
class WorksAt:
since: int = 2024
@node(label="Company")
class Company:
name: str
p = Person()
c = Company()
w = WorksAt()
query = (
Query.match(p)
.to(w)
.node(c)
.where(p.age >= 21, c.name == "Acme Corp")
.return_(p.name, p.age, company_name=c.name)
.order_by(p.name)
.limit(10)
)
# 1. Compile to openCypher (Neo4j, Memgraph, FalkorDB)
cypher = query.compile("cypher")
print(cypher.statement)
# MATCH (_person_0:Person)-[_works_at_0:WORKS_AT]->(_company_0:Company)
# WHERE (_person_0.age >= $p0) AND (_company_0.name = $p1)
# RETURN _person_0.name, _person_0.age, _company_0.name AS company_name
# ORDER BY _person_0.name ASC LIMIT 10
# 2. Compile to SQL:2023 PGQ (DuckDB, PostgreSQL)
pgq = query.compile("sql_pgq", graph_name="corp_graph")
print(pgq.statement)
# 3. Compile to ISO GQL
gql = query.compile("iso_gql")
print(gql.statement)
Features
- Multi-dialect query compilation for openCypher, SQL:2023 PGQ (
GRAPH_TABLE), ISO GQL, and Apache AGE (overview, example). - Zero-copy Apache Arrow and Polars streaming through the Arrow C Data Interface, without materializing Python objects (overview, example).
- Rule-based query optimizer with predicate pushdown, constant folding, and dead-clause elimination (overview, example).
- Complex expressions and graph functions for arithmetic trees, string operations, and built-in graph functions (overview, example).
- Real transactions, identity map, and unit of work for batched writes and consistent in-memory objects (overview, example).
- Interactive graph viewer with force-directed physics, schema legend chips, and an inspector drawer (overview, example).
- Database compatibility with Neo4j, Memgraph, Apache AGE, DuckDB/DuckPGQ, FalkorDB, and PostgreSQL (overview, example).
Links
- Repository: https://github.com/tanishq-kumar/voyager
- Changelog: https://github.com/tanishq-kumar/voyager/blob/main/CHANGELOG.md
- Contributing: https://github.com/tanishq-kumar/voyager/blob/main/CONTRIBUTING.md
- Issue tracker: https://github.com/tanishq-kumar/voyager/issues
- Rust crates:
voyager-ogm,voyager-drivers, andvoyager-clion crates.io. - License: MIT OR Apache-2.0, at your option.
License
Voyager OGM is dual-licensed under either the MIT License or the Apache License, Version 2.0, at your option.
Metadata
Release files for voyager-ogm 0.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| voyager_ogm-0.4.1.tar.gz | 536.4 kB | With provenance | Details for voyager_ogm-0.4.1.tar.gz |
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| voyager_ogm-0.4.1-cp311-abi3-win_amd64.whl | CPython 3.11 | abi3 | Windows x86-64 | Details for voyager_ogm-0.4.1-cp311-abi3-win_amd64.whl |
| voyager_ogm-0.4.1-cp311-abi3-manylinux_2_28_x86_64.whl | CPython 3.11 | abi3 | Linux glibc 2.28+ x86-64 | Details for voyager_ogm-0.4.1-cp311-abi3-manylinux_2_28_x86_64.whl |
| voyager_ogm-0.4.1-cp311-abi3-manylinux_2_28_aarch64.whl | CPython 3.11 | abi3 | Linux glibc 2.28+ ARM64 | Details for voyager_ogm-0.4.1-cp311-abi3-manylinux_2_28_aarch64.whl |
| voyager_ogm-0.4.1-cp311-abi3-macosx_11_0_arm64.whl | CPython 3.11 | abi3 | macOS 11.0+ ARM64 | Details for voyager_ogm-0.4.1-cp311-abi3-macosx_11_0_arm64.whl |
| voyager_ogm-0.4.1-cp311-abi3-macosx_10_12_x86_64.whl | CPython 3.11 | abi3 | macOS 10.12+ x86-64 | Details for voyager_ogm-0.4.1-cp311-abi3-macosx_10_12_x86_64.whl |
Total release size: 12.0 MB
Release files / voyager_ogm-0.4.1.tar.gz
| Download URL | voyager_ogm-0.4.1.tar.gz |
|---|---|
| Size | 536.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
45c68248154603af76879352e41cf40acb9dccf885ac664fb4c6d500f5b13008
|
|
BLAKE2b-256 checksum How to use checksums |
8da7e7c7e83a4996e6ee61dc770a427d202d4533d3e7a43db099685fd5f5a34d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.
Transparency logRelease files / voyager_ogm-0.4.1-cp311-abi3-win_amd64.whl
| Download URL | voyager_ogm-0.4.1-cp311-abi3-win_amd64.whl |
|---|---|
| Size | 2.5 MB |
| Tags | CPython 3.11 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
0719b8cd84a7a9065b029ab9b0681dc62fe4b0e6bde60951a1c1e4682452c234
|
|
BLAKE2b-256 checksum How to use checksums |
036ff00c7aa7bcaa0b051f75bddba284e411890f2eec9afdc0b606594e1db3b1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.
Transparency logRelease files / voyager_ogm-0.4.1-cp311-abi3-manylinux_2_28_x86_64.whl
| Download URL | voyager_ogm-0.4.1-cp311-abi3-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 2.3 MB |
| Tags | CPython 3.11 Linux glibc 2.28+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
a0af22623e95b3781b8d8d2b6e4de9f5674d4bf87dff6dec1897bae9731aecb7
|
|
BLAKE2b-256 checksum How to use checksums |
e81168bef7c6ba7d739f8e421e1a9f8d5a3e4a3145b1dba6d29f74849317a801
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.
Transparency logRelease files / voyager_ogm-0.4.1-cp311-abi3-manylinux_2_28_aarch64.whl
| Download URL | voyager_ogm-0.4.1-cp311-abi3-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 2.2 MB |
| Tags | CPython 3.11 Linux glibc 2.28+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
450d8b8f46e38b7396359d5d0c16641857aaa95b5f4f864fe985deacbb459e3c
|
|
BLAKE2b-256 checksum How to use checksums |
1327ba58e9b4c3c09aa05e1a6ca3107af5974bb948373fdc83d77561167ea1c8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.
Transparency logRelease files / voyager_ogm-0.4.1-cp311-abi3-macosx_11_0_arm64.whl
| Download URL | voyager_ogm-0.4.1-cp311-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 2.1 MB |
| Tags | CPython 3.11 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
143a1e7090973584ad198891bf9f115ade2c172b4815e07206116fe40dc68f19
|
|
BLAKE2b-256 checksum How to use checksums |
368a03e6016b606e4be911907bac5e4ec42476c68fa203a743d2573ac005c783
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.
Transparency logRelease files / voyager_ogm-0.4.1-cp311-abi3-macosx_10_12_x86_64.whl
| Download URL | voyager_ogm-0.4.1-cp311-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 2.3 MB |
| Tags | CPython 3.11 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
35d5e2e615d8b67a3edd649be43be7f2a2b7ad7d31c096ea9849163be283366f
|
|
BLAKE2b-256 checksum How to use checksums |
8e197975b1b37ba5eae60315c0dcadf9c21ac774bd9ca3f3a1a3f5713690c541
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.
Transparency logSecurity for voyager-ogm 0.4.1
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.
Full provenance
All 6 files in this release have been uploaded with provenance metadata.
Attestation for voyager_ogm-0.4.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.
Transparency logA 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.