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, 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 details)

Uploaded Source

Built Distribution

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

neo4j_driver-1.1.0b1-py2.py3-none-any.whl (34.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file neo4j-driver-1.1.0b1.tar.gz.

File metadata

File hashes

Hashes for neo4j-driver-1.1.0b1.tar.gz
Algorithm Hash digest
SHA256 a498805e1d8220eefb07b679d1186405f548f9013299213d2a380aead6db1348
MD5 f5b9a34288b5baf4a4f78d62ededca85
BLAKE2b-256 f0db4cdeffbb0bda711152acf5e5ff03def7c4d8c17a217a3538e686d5b8c457

See more details on using hashes here.

File details

Details for the file neo4j_driver-1.1.0b1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for neo4j_driver-1.1.0b1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 26872aaa2dfee7ddd78e7e2fcd150a47ad92c568cce1f4d511a536ae58d44bce
MD5 39a989349a5268e81ab8dc64e135f902
BLAKE2b-256 53d2f37b025caefb62adc248eeb8cc51f12572e8ed48ce9a67f74e75ebe75adf

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