Skip to main content

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
driver = GraphDatabase.driver("bolt://localhost")
session = driver.session()
session.run("CREATE (a:Person {name:'Bob'})")
cursor = session.run("MATCH (a:Person) RETURN a.name AS name")
while cursor.next()
    print(cursor["name"])
cursor.close()
session.close()

Command Line

python -m neo4j "CREATE (a:Person {name:'Alice'}) RETURN a, labels(a), a.name"

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.0.0b2.tar.gz (26.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

neo4j_driver-1.0.0b2-py2.py3-none-any.whl (28.8 kB view details)

Uploaded Python 2Python 3

File details

Details for the file neo4j-driver-1.0.0b2.tar.gz.

File metadata

File hashes

Hashes for neo4j-driver-1.0.0b2.tar.gz
Algorithm Hash digest
SHA256 1ac9aa2a03eec3d4c32cc691ea43e05671db10f0301b891b09c4e8bd6d6e12f1
MD5 345d88f6780c59d0a24c14d87d75c1e1
BLAKE2b-256 04894197afaab5dd7d74bdf10e50e52ffc04ef5159836a39145a94858ce97c9f

See more details on using hashes here.

File details

Details for the file neo4j_driver-1.0.0b2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for neo4j_driver-1.0.0b2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 28cff457c2754e6ac44dd8ffc12d9e06ef78924c1e76f179b6bedd5abf7baa31
MD5 8bf8a6fa96bd96dc84fffb563c27e7bc
BLAKE2b-256 e0407ace4100120a315194abe8bb91049168ac8a5e0835f6c0359b07d6bccbf3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page