The Official Neo4j Driver for Python supports Neo4j 3.0 and above and Python versions 2.7, 3.4 and 3.5.
Quick Example
from neo4j.v1 import GraphDatabase, basic_auth
uri = "bolt://localhost:7687"
auth_token = basic_auth("neo4j", "password")
driver = GraphDatabase.driver(uri, auth=auth_token)
def print_friends_of(name):
with driver.session() as session:
with session.begin_transaction() as tx:
for record in tx.run("MATCH (a:Person)-[:KNOWS]->(f) "
"WHERE a.name = {name} "
"RETURN f.name", name=name):
print(record["f.name"])
print_friends_of("Alice")
Installation
To install the latest stable version, use:
pip install neo4j-driver
For the most up-to-date version (possibly unstable), use:
pip install git+https://github.com/neo4j/neo4j-python-driver.git#egg=neo4j-driver
Other Information
Driver Wiki (includes change logs)
Metadata
Release files for neo4j-driver 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| neo4j-driver-1.1.0.tar.gz | 29.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| neo4j_driver-1.1.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 72.5 kB
Release files / neo4j-driver-1.1.0.tar.gz
| Download URL | neo4j-driver-1.1.0.tar.gz |
|---|---|
| Size | 29.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e20fc58362999863400cfca409fc55ddc11627309f7f6b7f59de3c499e424fa4
|
|
BLAKE2b-256 checksum How to use checksums |
7c7d043e6338301d6d3bf6d24428628d5fcf490a40ad8bf9e9ea2b0d1b948d8e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / neo4j_driver-1.1.0-py2.py3-none-any.whl
| Download URL | neo4j_driver-1.1.0-py2.py3-none-any.whl |
|---|---|
| Size | 43.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
30e9fb77525f4f5d25ef9935bc48e6d7d02132efdd727170d1dc6ec7da26678a
|
|
BLAKE2b-256 checksum How to use checksums |
86030b4a2db7512051f64e2974e7537f9e4ce65c660cf25d9b9f5b179fc6ba0e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |