Skip to main content

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

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)

Uploaded Source

Built Distribution

neo4j_driver-1.1.0b3-py2.py3-none-any.whl (40.3 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

File hashes

Hashes for neo4j-driver-1.1.0b3.tar.gz
Algorithm Hash digest
SHA256 6403f9d1793bba208f417e76febf649693aad4cb00dd5f7f6c7a6557ca330375
MD5 49f2573f03768162b5d29764d2c2b539
BLAKE2b-256 7bfc258d929864f9092dc82db30ed75ed724ff6394be4eda71548d0e8e2e6dc9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for neo4j_driver-1.1.0b3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 33702066574b60b17785c4f8e5f3e6a3d565f46af53f297df6b46a88493665c3
MD5 c82c9d2dd3a01a600579384158090693
BLAKE2b-256 599603de7f19f06ecceda449a48d6183b0590fd3dbdd6ea5818f33b4dc51134f

See more details on using hashes here.

Supported by

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