freshcrate
Home > Databases > neo4j

neo4j

Neo4j Bolt driver for Python

Description

**************************** Neo4j Bolt Driver for Python **************************** This repository contains the official Neo4j driver for Python. Driver upgrades within a major version will never contain breaking API changes. For version compatibility with Neo4j server, please refer to: https://neo4j.com/developer/kb/neo4j-supported-versions/ + Python 3.14 supported. + Python 3.13 supported. + Python 3.12 supported. + Python 3.11 supported. + Python 3.10 supported. Installation ============ To install the latest stable version, use: .. code:: bash pip install neo4j .. TODO: 7.0 - remove this note .. note:: ``neo4j-driver`` is the old name for this package. It is now deprecated and and will receive no further updates starting with 6.0.0. Make sure to install ``neo4j`` as shown above. Alternative Installation for Better Performance ----------------------------------------------- You may want to have a look at the available Rust extensions for this driver for better performance. The Rust extensions are not installed by default. For more information, see `neo4j-rust-ext`_. .. _neo4j-rust-ext: https://github.com/neo4j/neo4j-python-driver-rust-ext Quick Example ============= .. code-block:: python from neo4j import GraphDatabase, RoutingControl URI = "neo4j://localhost:7687" AUTH = ("neo4j", "password") def add_friend(driver, name, friend_name): driver.execute_query( "MERGE (a:Person {name: $name}) " "MERGE (friend:Person {name: $friend_name}) " "MERGE (a)-[:KNOWS]->(friend)", name=name, friend_name=friend_name, database_="neo4j", ) def print_friends(driver, name): records, _, _ = driver.execute_query( "MATCH (a:Person)-[:KNOWS]->(friend) WHERE a.name = $name " "RETURN friend.name ORDER BY friend.name", name=name, database_="neo4j", routing_=RoutingControl.READ, ) for record in records: print(record["friend.name"]) with GraphDatabase.driver(URI, auth=AUTH) as driver: add_friend(driver, "Arthur", "Guinevere") add_friend(driver, "Arthur", "Lancelot") add_friend(driver, "Arthur", "Merlin") print_friends(driver, "Arthur") Further Information =================== * `The Neo4j Operations Manual`_ (docs on how to run a Neo4j server) * `The Neo4j Python Driver Manual`_ (good introduction to this driver) * `Python Driver API Documentation`_ (full API documentation for this driver) * `Neo4j Cypher Cheat Sheet`_ (summary of Cypher syntax - Neo4j's graph query language) * `Example Project`_ (small web application using this driver) * `GraphAcademy`_ (interactive, free online trainings for Neo4j) * `Driver Wiki`_ (includes change logs) * `Neo4j Migration Guide`_ .. _`The Neo4j Operations Manual`: https://neo4j.com/docs/operations-manual/current/ .. _`The Neo4j Python Driver Manual`: https://neo4j.com/docs/python-manual/current/ .. _`Python Driver API Documentation`: https://neo4j.com/docs/api/python-driver/current/ .. _`Neo4j Cypher Cheat Sheet`: https://neo4j.com/docs/cypher-cheat-sheet/ .. _`Example Project`: https://github.com/neo4j-examples/movies-python-bolt .. _`GraphAcademy`: https://graphacademy.neo4j.com/categories/python/ .. _`Driver Wiki`: https://github.com/neo4j/neo4j-python-driver/wiki .. _`Neo4j Migration Guide`: https://neo4j.com/docs/migration-guide/current/

Release History

VersionChangesUrgencyDate
6.1.0Imported from PyPI (6.1.0)Low4/21/2026
5.28.3https://github.com/neo4j/neo4j-python-driver/wiki/5.x-changelog#5283-ltsLow1/12/2026
6.0.3https://github.com/neo4j/neo4j-python-driver/wiki/6.x-changelog#603Low11/6/2025
6.0.2https://github.com/neo4j/neo4j-python-driver/wiki/6.x-changelog#602Low10/2/2025
6.0.1https://github.com/neo4j/neo4j-python-driver/wiki/6.x-changelog#601Low10/1/2025
6.0.0https://github.com/neo4j/neo4j-python-driver/wiki/6.x-changelog#600Low9/30/2025
4.4.13https://github.com/neo4j/neo4j-python-driver/wiki/4.4-changelog#4413Low7/30/2025
5.28.2https://github.com/neo4j/neo4j-python-driver/wiki/5.x-changelog#5282-ltsLow7/30/2025
6.0.0a1https://github.com/neo4j/neo4j-python-driver/wiki/6.x-changelog#600a1Low7/21/2025
5.28.1https://github.com/neo4j/neo4j-python-driver/wiki/5.x-changelog#5281-ltsLow2/10/2025
5.28.0https://github.com/neo4j/neo4j-python-driver/wiki/5.x-changelog#5280-ltsLow2/5/2025
5.27.0https://github.com/neo4j/neo4j-python-driver/wiki/5.x-changelog#5270Low11/28/2024
5.26.0https://github.com/neo4j/neo4j-python-driver/wiki/5.x-changelog#5260Low11/1/2024
5.25.0https://github.com/neo4j/neo4j-python-driver/wiki/5.x-changelog#5250Low9/26/2024
5.24.0https://github.com/neo4j/neo4j-python-driver/wiki/5.x-changelog#5240Low8/29/2024
5.23.1https://github.com/neo4j/neo4j-python-driver/wiki/5.x-changelog#5231Low8/5/2024
5.23.0https://github.com/neo4j/neo4j-python-driver/wiki/5.x-changelog#5230Low7/29/2024
5.22.0https://github.com/neo4j/neo4j-python-driver/wiki/5.x-changelog#5220Low6/27/2024
5.21.0https://github.com/neo4j/neo4j-python-driver/wiki/5.x-changelog#5210Low6/11/2024
4.4.12https://github.com/neo4j/neo4j-python-driver/wiki/4.4-changelog#4412Low4/26/2024
5.20.0https://github.com/neo4j/neo4j-python-driver/wiki/5.x-changelog#5200Low4/26/2024
5.19.0https://github.com/neo4j/neo4j-python-driver/wiki/5.x-changelog#5190Low4/2/2024
5.18.0https://github.com/neo4j/neo4j-python-driver/wiki/5.x-changelog#5180Low2/29/2024
5.17.0https://github.com/neo4j/neo4j-python-driver/wiki/5.x-changelog#5170Low1/29/2024
5.16.0https://github.com/neo4j/neo4j-python-driver/wiki/5.x-changelog#5160Low12/28/2023
5.15.0https://github.com/neo4j/neo4j-python-driver/wiki/5.x-changelog#5150Low11/28/2023
5.14.1https://github.com/neo4j/neo4j-python-driver/wiki/5.x-changelog#5141Low11/3/2023
5.14.0https://github.com/neo4j/neo4j-python-driver/wiki/5.x-changelog#5140Low10/26/2023
5.13.0https://github.com/neo4j/neo4j-python-driver/wiki/5.x-changelog#5130Low9/28/2023
5.12.0https://github.com/neo4j/neo4j-python-driver/wiki/5.x-changelog#5120Low8/31/2023
5.11.0https://github.com/neo4j/neo4j-python-driver/wiki/5.x-changelog#5110Low7/31/2023
5.10.0https://github.com/neo4j/neo4j-python-driver/wiki/5.x-changelog#5100Low6/29/2023
5.9.0https://github.com/neo4j/neo4j-python-driver/wiki/5.x-changelog#590Low5/26/2023
5.8.1https://github.com/neo4j/neo4j-python-driver/wiki/5.x-changelog#581Low5/17/2023
5.8.0https://github.com/neo4j/neo4j-python-driver/wiki/5.x-changelog#580Low4/28/2023
4.4.11https://github.com/neo4j/neo4j-python-driver/wiki/4.4-changelog#4411Low4/28/2023
5.7.0https://github.com/neo4j/neo4j-python-driver/wiki/5.x-changelog#570Low3/31/2023
5.6.0https://github.com/neo4j/neo4j-python-driver/wiki/5.x-changelog#560Low2/27/2023
5.5.0https://github.com/neo4j/neo4j-python-driver/wiki/5.x-changelog#550Low1/27/2023
5.4.0https://github.com/neo4j/neo4j-python-driver/wiki/5.x-changelog#540Low1/9/2023
4.4.10https://github.com/neo4j/neo4j-python-driver/wiki/4.4-changelog#4410Low11/28/2022
5.3.0https://github.com/neo4j/neo4j-python-driver/wiki/5.x-changelog#530Low11/25/2022
5.2.1https://github.com/neo4j/neo4j-python-driver/wiki/5.x-changelog#521Low11/17/2022
5.2.0https://github.com/neo4j/neo4j-python-driver/wiki/5.x-changelog#520Low10/31/2022
4.4.9https://github.com/neo4j/neo4j-python-driver/wiki/4.4-changelog#449Low10/28/2022
5.1.0https://github.com/neo4j/neo4j-python-driver/wiki/5.x-changelog#510Low10/11/2022
5.0.1https://github.com/neo4j/neo4j-python-driver/wiki/5.x-changelog#501Low9/20/2022
4.4.8https://github.com/neo4j/neo4j-python-driver/wiki/4.4-changelog#448Low9/20/2022
5.0.0https://github.com/neo4j/neo4j-python-driver/wiki/5.x-changelog#500Low9/9/2022
4.4.7https://github.com/neo4j/neo4j-python-driver/wiki/4.4-changelog#447Low9/9/2022

Dependencies & License Audit

Loading dependencies...

Similar Packages

ibmcloudantPython client library for IBM Cloudant0.11.5
django-celery-resultsCelery result backends for Django.2.6.0
django-celery-beatDatabase-backed Periodic Tasks.2.9.0
pineconePinecone client and SDK8.1.2
asyncpgAn asyncio PostgreSQL driver0.31.0