{"id":13529145,"url":"https://github.com/neo4j/neo4j-python-driver","last_synced_at":"2025-05-13T16:07:13.428Z","repository":{"id":31535557,"uuid":"35100117","full_name":"neo4j/neo4j-python-driver","owner":"neo4j","description":"Neo4j Bolt driver for Python","archived":false,"fork":false,"pushed_at":"2025-05-07T09:52:39.000Z","size":5680,"stargazers_count":961,"open_issues_count":8,"forks_count":197,"subscribers_count":96,"default_branch":"6.x","last_synced_at":"2025-05-07T10:50:39.353Z","etag":null,"topics":["binary-protocol","cypher","database-driver","driver","graph-database","neo4j","protocol","python","python3","query-language"],"latest_commit_sha":null,"homepage":"https://neo4j.com/docs/api/python-driver/current/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/neo4j.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.APACHE2.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2015-05-05T13:08:20.000Z","updated_at":"2025-05-07T09:52:43.000Z","dependencies_parsed_at":"2023-01-14T19:30:43.042Z","dependency_job_id":"aef6ff7c-757f-4d7f-813f-fb755a48d149","html_url":"https://github.com/neo4j/neo4j-python-driver","commit_stats":{"total_commits":1329,"total_committers":47,"mean_commits":28.27659574468085,"dds":0.7411587659894658,"last_synced_commit":"a8dc1a544b48c36366c9e694793232cba8e4c64d"},"previous_names":[],"tags_count":137,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neo4j%2Fneo4j-python-driver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neo4j%2Fneo4j-python-driver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neo4j%2Fneo4j-python-driver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neo4j%2Fneo4j-python-driver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neo4j","download_url":"https://codeload.github.com/neo4j/neo4j-python-driver/tar.gz/refs/heads/6.x","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253979991,"owners_count":21994041,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["binary-protocol","cypher","database-driver","driver","graph-database","neo4j","protocol","python","python3","query-language"],"created_at":"2024-08-01T07:00:33.728Z","updated_at":"2025-05-13T16:07:13.422Z","avatar_url":"https://github.com/neo4j.png","language":"Python","readme":"****************************\nNeo4j Bolt Driver for Python\n****************************\n\nThis repository contains the official Neo4j driver for Python.\n\nStarting with 5.0, the Neo4j Drivers will be moving to a monthly release\ncadence. A minor version will be released on the last Friday of each month so\nas to maintain versioning consistency with the core product (Neo4j DBMS) which\nhas also moved to a monthly cadence.\n\nAs a policy, patch versions will not be released except on rare occasions. Bug\nfixes and updates will go into the latest minor version and users should\nupgrade to that. Driver upgrades within a major version will never contain\nbreaking API changes.\n\nSee also: https://neo4j.com/developer/kb/neo4j-supported-versions/\n\n+ Python 3.13 supported.\n+ Python 3.12 supported.\n+ Python 3.11 supported.\n+ Python 3.10 supported.\n\n\nInstallation\n============\n\nTo install the latest stable version, use:\n\n.. code:: bash\n\n    pip install neo4j\n\n\n.. TODO: 7.0 - remove this note\n\n.. note::\n\n    ``neo4j-driver`` is the old name for this package. It is now deprecated and\n    and will receive no further updates starting with 6.0.0. Make sure to\n    install ``neo4j`` as shown above.\n\n\nAlternative Installation for Better Performance\n-----------------------------------------------\n\nYou may want to have a look at the available Rust extensions for this driver\nfor better performance. The Rust extensions are not installed by default. For\nmore information, see `neo4j-rust-ext`_.\n\n.. _neo4j-rust-ext: https://github.com/neo4j/neo4j-python-driver-rust-ext\n\n\nQuick Example\n=============\n\n.. code-block:: python\n\n    from neo4j import GraphDatabase, RoutingControl\n\n\n    URI = \"neo4j://localhost:7687\"\n    AUTH = (\"neo4j\", \"password\")\n\n\n    def add_friend(driver, name, friend_name):\n        driver.execute_query(\n            \"MERGE (a:Person {name: $name}) \"\n            \"MERGE (friend:Person {name: $friend_name}) \"\n            \"MERGE (a)-[:KNOWS]-\u003e(friend)\",\n            name=name, friend_name=friend_name, database_=\"neo4j\",\n        )\n\n\n    def print_friends(driver, name):\n        records, _, _ = driver.execute_query(\n            \"MATCH (a:Person)-[:KNOWS]-\u003e(friend) WHERE a.name = $name \"\n            \"RETURN friend.name ORDER BY friend.name\",\n            name=name, database_=\"neo4j\", routing_=RoutingControl.READ,\n        )\n        for record in records:\n            print(record[\"friend.name\"])\n\n\n    with GraphDatabase.driver(URI, auth=AUTH) as driver:\n        add_friend(driver, \"Arthur\", \"Guinevere\")\n        add_friend(driver, \"Arthur\", \"Lancelot\")\n        add_friend(driver, \"Arthur\", \"Merlin\")\n        print_friends(driver, \"Arthur\")\n\n\nFurther Information\n===================\n\n* `The Neo4j Operations Manual`_ (docs on how to run a Neo4j server)\n* `The Neo4j Python Driver Manual`_ (good introduction to this driver)\n* `Python Driver API Documentation`_ (full API documentation for this driver)\n* `Neo4j Cypher Cheat Sheet`_ (summary of Cypher syntax - Neo4j's graph query language)\n* `Example Project`_ (small web application using this driver)\n* `GraphAcademy`_ (interactive, free online trainings for Neo4j)\n* `Driver Wiki`_ (includes change logs)\n* `Neo4j Migration Guide`_\n\n.. _`The Neo4j Operations Manual`: https://neo4j.com/docs/operations-manual/current/\n.. _`The Neo4j Python Driver Manual`: https://neo4j.com/docs/python-manual/current/\n.. _`Python Driver API Documentation`: https://neo4j.com/docs/api/python-driver/current/\n.. _`Neo4j Cypher Cheat Sheet`: https://neo4j.com/docs/cypher-cheat-sheet/\n.. _`Example Project`: https://github.com/neo4j-examples/movies-python-bolt\n.. _`GraphAcademy`: https://graphacademy.neo4j.com/categories/python/\n.. _`Driver Wiki`: https://github.com/neo4j/neo4j-python-driver/wiki\n.. _`Neo4j Migration Guide`: https://neo4j.com/docs/migration-guide/current/\n","funding_links":[],"categories":["Connectors","Database Clients","Python","Bolt"],"sub_categories":["Bolt"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneo4j%2Fneo4j-python-driver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneo4j%2Fneo4j-python-driver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneo4j%2Fneo4j-python-driver/lists"}