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