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.2.0b3.tar.gz (161.8 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: neo4j-driver-1.2.0b3.tar.gz
  • Upload date:
  • Size: 161.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for neo4j-driver-1.2.0b3.tar.gz
Algorithm Hash digest
SHA256 a6e1abda3daf5c3b4cc996d845d4ed7c2e5f44112de7de98513b028a68eea8ca
MD5 8fc16989672f3784159172264e2dcb81
BLAKE2b-256 61d9a9b1b6c582ddde0530dc2485ccd9439ab531037d48f32205e9963bc1dba2

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