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.0rc1.tar.gz (28.5 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.0rc1-py2.py3-none-any.whl (42.4 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

File hashes

Hashes for neo4j-driver-1.1.0rc1.tar.gz
Algorithm Hash digest
SHA256 96ac502e2f039ed99cc41f705ef50cf8a81239702c57874a816844b9d763bba6
MD5 2391aaf7432be26bbcbb693c846ed5f0
BLAKE2b-256 d01a3ebd18cd307b9ab76f0c868e4546e262d83e6f6bde61e82d8dc571cf8ad7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for neo4j_driver-1.1.0rc1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 eb0c224700763701b05ede784f1c44eeafb968de3bf0795db949825c35a73ae6
MD5 c2979a1cec6cc4cea5278b4bc4a0e6a9
BLAKE2b-256 419c07f495c2adcc6eff4e3371ec444652559d42f4206d5dabe6c5e30fce53fb

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