There is an official Python driver for Neo4j, which you can install using pip:

pip install neo4j-driver

Usage example:

from neo4j.v1 import GraphDatabase, basic_auth

driver = GraphDatabase.driver("bolt://your-domain.provider.graphstory.com", auth=basic_auth("username", "password"))
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"])
result.close()
session.close()

Other Python libraries

  • Py2neo - a comprehensive toolkit for working with Neo4j from within Python applications or from the command line
  • Neomodel - an Object Graph Mapper (OGM) for the neo4j graph database, built on the awesome py2neo

More information on using Neo4j with Python

Did this answer your question?