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://", auth=basic_auth("username", "password"))
session = driver.session()"CREATE (a:Person {name:'Bob'})")
result ="MATCH (a:Person) RETURN AS name")
for record in result:

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?