Neo4j Bolt driver for Python
Project description
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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
neo4j-driver-1.1.0b3.tar.gz
(28.1 kB
view details)
Built Distribution
File details
Details for the file neo4j-driver-1.1.0b3.tar.gz
.
File metadata
- Download URL: neo4j-driver-1.1.0b3.tar.gz
- Upload date:
- Size: 28.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
6403f9d1793bba208f417e76febf649693aad4cb00dd5f7f6c7a6557ca330375
|
|
MD5 |
49f2573f03768162b5d29764d2c2b539
|
|
BLAKE2b-256 |
7bfc258d929864f9092dc82db30ed75ed724ff6394be4eda71548d0e8e2e6dc9
|
File details
Details for the file neo4j_driver-1.1.0b3-py2.py3-none-any.whl
.
File metadata
- Download URL: neo4j_driver-1.1.0b3-py2.py3-none-any.whl
- Upload date:
- Size: 40.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
33702066574b60b17785c4f8e5f3e6a3d565f46af53f297df6b46a88493665c3
|
|
MD5 |
c82c9d2dd3a01a600579384158090693
|
|
BLAKE2b-256 |
599603de7f19f06ecceda449a48d6183b0590fd3dbdd6ea5818f33b4dc51134f
|