Neo4j Bolt driver for Python
Project description
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
Example Usage
from neo4j.v1 import GraphDatabase, basic_auth
driver = GraphDatabase.driver("bolt://localhost", auth=basic_auth("neo4j", "neo4j"))
session = driver.session()
session.run("CREATE (a:Person {name:'Bob'})")
result = session.run("MATCH (a:Person) RETURN a.name AS name")
for record in result:
print(record["name"])
session.close()
Command Line
python -m neo4j "CREATE (a:Person {name:'Alice'}) RETURN a, labels(a), a.name"
Documentation
For more information such as manual, driver API documentations, changelogs, please find them in the wiki of this repo.
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.0b1.tar.gz
(23.7 kB
view hashes)
Built Distribution
Close
Hashes for neo4j_driver-1.1.0b1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26872aaa2dfee7ddd78e7e2fcd150a47ad92c568cce1f4d511a536ae58d44bce |
|
MD5 | 39a989349a5268e81ab8dc64e135f902 |
|
BLAKE2b-256 | 53d2f37b025caefb62adc248eeb8cc51f12572e8ed48ce9a67f74e75ebe75adf |