neo4j-rust-ext
Rust Extensions for a Faster Neo4j Bolt Driver for Python
What it is and what it does
neo4j-rust-ext is a drop-in performance accelerator for the official Neo4j Python driver. It wraps the driver with Rust-compiled extensions that speed up data marshalling and protocol handling without requiring any changes to your application code. You install it in place of the base neo4j package, and it automatically pulls in the driver as a dependency, then registers itself so the driver picks it up at runtime.
The package trades medium install friction (pre-built wheels for common platforms, but source compilation as a fallback) for measurable speed gains on workloads that move large or numerous records. It's maintained actively, supports Python 3.10–3.14, and carries no known vulnerabilities. The dual Apache-2.0 and MIT license poses no restrictions for commercial use.
Use it for:
- Accelerating bulk data exports or large result-set processing from Neo4j without rewriting driver code.
- Improving throughput in high-volume transactional applications where driver overhead is a bottleneck.
- Reducing latency in applications that move many records per query, where Rust optimizations have the most impact.
- Deploying on Linux, macOS, or Windows where pre-built wheels eliminate compilation overhead.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Rust-compiled extensions that accelerate the official Neo4j Python driver by optimizing performance-critical operations, requiring no code changes to existing driver usage.
Yes, if you use the official Neo4j Python driver and your workload involves moving substantial data per query. The installation is straightforward on common platforms (wheels provided for Python 3.10–3.12 on Linux, macOS, Windows), requires no code changes, and carries no license friction. Install friction is medium only if you hit an unsupported platform and must compile from source. No known vulnerabilities and active maintenance make it a low-risk performance win.
Install
neo4j-rust-ext on PyPI
pip
pip install neo4j-rust-extuv
uv add neo4j-rust-extpoetry
poetry add neo4j-rust-extInstalling neo4j-rust-ext
Before you install
Medium install friction due to pre-built wheels for common platforms (Python 3.10–3.12 on Linux, macOS, Windows) but falls back to source compilation if your platform lacks a wheel, requiring Rust 1.88 or later and platform-specific build tools.
License in practice
Dual-licensed under Apache-2.0 and MIT (permissive), so you may choose either license term; no restrictions on commercial or proprietary use.
Quickstart
# Install neo4j-rust-ext instead of neo4j
pip install neo4j-rust-ext==6.2.0.0
# Use the driver as normal—no code changes needed
from neo4j import GraphDatabase
driver = GraphDatabase.driver("bolt://localhost", auth=("user", "pass"))
Rust 1.88 or later must be installed if a pre-built wheel is unavailable for your platform; platform-specific build tools (e.g., gcc on Linux) may also be required.
Verify before relying
- Whether the measured 10x speedup applies to your specific workload or only to use-cases moving large records.
- Compatibility with Neo4j driver versions older than 5.14.1.
- Whether pre-built wheels exist for Python 3.13 and 3.14 (classifiers list them but friction_evidence only shows 3.10–3.12).
Package facts
| License | Apache-2.0 AND MIT (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | 1 — neo4j |
| Maintenance | actively maintained — 101 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 340,133/month — #7,415 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: neo4j_rust_ext-6.2.0.0-cp310-cp310-macosx_10_12_x86_64.whl; neo4j_rust_ext-6.2.0.0-cp310-cp310-macosx_11_0_arm64.whl; neo4j_rust_ext-6.2.0.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; neo4j_rust_ext-6.2.0.0-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl; neo4j_rust_ext-6.2.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; neo4j_rust_ext-6.2.0.0-cp310-cp310-musllinux_1_2_x86_64.whl; neo4j_rust_ext-6.2.0.0-cp310-cp310-win32.whl; neo4j_rust_ext-6.2.0.0-cp310-cp310-win_amd64.whl; neo4j_rust_ext-6.2.0.0-cp310-cp310-win_arm64.whl; neo4j_rust_ext-6.2.0.0-cp311-cp311-macosx_10_12_x86_64.whl; neo4j_rust_ext-6.2.0.0-cp311-cp311-macosx_11_0_arm64.whl; neo4j_rust_ext-6.2.0.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; neo4j_rust_ext-6.2.0.0-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl; neo4j_rust_ext-6.2.0.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; neo4j_rust_ext-6.2.0.0-cp311-cp311-musllinux_1_2_x86_64.whl; neo4j_rust_ext-6.2.0.0-cp311-cp311-win32.whl; neo4j_rust_ext-6.2.0.0-cp311-cp311-win_amd64.whl; neo4j_rust_ext-6.2.0.0-cp311-cp311-win_arm64.whl; neo4j_rust_ext-6.2.0.0-cp312-cp312-macosx_10_12_x86_64.whl; neo4j_rust_ext-6.2.0.0-cp312-cp312-macosx_11_0_arm64.whl
Keywords: neo4j, graph, database
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
kailash-enterpriseA Rust-compiled workflow orchestration engine…
unclear · top 15,000 on PyPI
neo4j-driverPython driver for connecting to and querying…
permissive · top 15,000 on PyPI
neo4jOfficial Python driver for connecting to and…
permissive · top 5,000 on PyPI
prometheus-client-python-speedupsProvides optional C/Rust-compiled speedups for…
unclear · top 15,000 on PyPI
ormar-utilsProvides Rust-accelerated implementations of…
permissive · top 15,000 on PyPI
py2neoPy2neo is a Python client library for Neo4j…
permissive · top 15,000 on PyPI
py2neo-historyProvides access to archived versions of the…
permissive · top 15,000 on PyPI
fable-libraryFable Library for Python provides runtime…
permissive · top 15,000 on PyPI
neo4j-graphragBuilds graph retrieval-augmented generation…
permissive · top 15,000 on PyPI
pyston-autoloadAutomatically loads and enables Pyston, a…
unclear · top 15,000 on PyPI