neo4j 6.0.2


pip install neo4j

  Latest version

Released: Oct 02, 2025


Meta
Author: Neo4j, Inc.
Requires Python: >=3.10

Classifiers

Development Status
  • 5 - Production/Stable

Framework
  • AsyncIO

Intended Audience
  • Developers

Operating System
  • OS Independent

Programming Language
  • Python :: 3.10
  • Python :: 3.11
  • Python :: 3.12
  • Python :: 3.13

Topic
  • Database
  • Software Development

Typing
  • Typed

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.13 supported.

  • Python 3.12 supported.

  • Python 3.11 supported.

  • Python 3.10 supported.

Installation

To install the latest stable version, use:

pip install neo4j

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.

Quick Example

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

6.0.2 Oct 02, 2025
6.0.1 Oct 01, 2025
6.0.0 Sep 30, 2025
6.0.0a1 Jul 21, 2025
5.28.2 Jul 30, 2025
5.28.1 Feb 10, 2025
5.28.0 Feb 05, 2025
5.27.0 Nov 28, 2024
5.26.0 Nov 01, 2024
5.25.0 Sep 26, 2024
5.24.0 Aug 29, 2024
5.23.1 Aug 05, 2024
5.23.0 Jul 29, 2024
5.22.0 Jun 27, 2024
5.21.0 Jun 11, 2024
5.20.0 Apr 26, 2024
5.19.0 Apr 02, 2024
5.18.0 Feb 29, 2024
5.17.0 Jan 29, 2024
5.16.0 Dec 28, 2023
5.15.0 Nov 28, 2023
5.14.1 Nov 03, 2023
5.14.0 Oct 26, 2023
5.13.0 Sep 28, 2023
5.12.0 Aug 31, 2023
5.11.0 Jul 31, 2023
5.10.0 Jun 29, 2023
5.9.0 May 26, 2023
5.8.1 May 17, 2023
5.8.0 Apr 28, 2023
5.7.0 Mar 31, 2023
5.6.0 Feb 27, 2023
5.5.0 Jan 27, 2023
5.4.0 Jan 09, 2023
5.3.0 Nov 25, 2022
5.2.1 Nov 17, 2022
5.2.0 Oct 31, 2022
5.1.0 Oct 11, 2022
5.0.1 Sep 20, 2022
5.0.0 Sep 09, 2022
5.0.0a2 Aug 31, 2022
5.0.0a1 Jan 03, 2022
4.4.13 Jul 30, 2025
4.4.12 Apr 26, 2024
4.4.11 Apr 28, 2023
4.4.10 Nov 28, 2022
4.4.9 Oct 28, 2022
4.4.8 Sep 20, 2022
4.4.7 Sep 09, 2022
4.4.6 Aug 31, 2022
4.4.5 Jul 07, 2022
4.4.4 Jun 02, 2022
4.4.3 Apr 25, 2022
4.4.2 Mar 15, 2022
4.4.1 Dec 17, 2021
4.4.0 Nov 05, 2021
4.4.0b1 Oct 22, 2021
4.4.0a1 Oct 15, 2021
4.3.9 Dec 17, 2021
4.3.8 Nov 05, 2021
4.3.7 Oct 22, 2021
4.3.6 Oct 05, 2021
4.3.5 Sep 21, 2021
4.3.4 Aug 02, 2021
4.3.3 Jul 13, 2021
4.3.2 Jul 08, 2021
4.3.1 Jun 01, 2021
4.3.0 May 27, 2021
4.3.0rc1 May 14, 2021
4.3.0b1 May 05, 2021
4.3.0a1 Apr 20, 2021
4.2.1 Dec 21, 2020
4.2.0 Nov 17, 2020
4.2.0a1 Oct 22, 2020
4.1.3 Dec 18, 2020
4.1.2 Nov 17, 2020
4.1.1 Aug 27, 2020
4.1.0 Jul 30, 2020
4.1.0rc2 Jul 16, 2020
4.1.0rc1 Jul 09, 2020
4.0.3 Aug 31, 2020
4.0.2 Jul 16, 2020
4.0.1 Jul 03, 2020
4.0.0 Jun 11, 2020
4.0.0rc1 Jun 05, 2020
4.0.0b2 Jun 03, 2020
4.0.0b1 May 19, 2020
4.0.0a4 Apr 17, 2020
4.0.0a3 Apr 09, 2020
4.0.0a2 Mar 27, 2020
4.0.0a1 Mar 18, 2020
1.7.6 Nov 11, 2019
1.7.5 Oct 04, 2019
1.7.4 May 16, 2019
1.7.3 May 08, 2019
1.7.2 Mar 07, 2019
1.7.1 Nov 02, 2018
1.7.0 Oct 19, 2018
1.7.0rc2 Oct 12, 2018
1.7.0rc1 Oct 05, 2018
1.7.0b4 Sep 28, 2018
1.7.0b3 Sep 07, 2018
1.7.0b2 Aug 24, 2018
1.7.0b1 Aug 10, 2018

Wheel compatibility matrix

Platform Python 3
any

Files in release

Extras:
Dependencies:
pytz