https://py2neo.org/v4/database.html
2. py2neo.database – Graph Databases — The Py2neo v4 Handbook
2. py2neo.database – Graph Databases The py2neo.database package contains classes and functions required to interact with a Neo4j server. The most important of these is the Graph class which represents a Neo4j graph database instance and provides access to
py2neo.org
py2neohttps://py2neo.org/v4/
The Py2neo v4 Handbook — The Py2neo v4 Handbook
py2neo.org
https://pypi.org/project/py2neo/
py2neo
Python client library and toolkit for Neo4j
pypi.org
pip install py2neo==4.2.0
pip freeze | grep py2neo
from py2neo import Graph, Node, Relationship
g = Graph("bolt://192.168.1.99:6687")
a = Node("Person", name="Alice", age=33)
b = Node("Person", name="Bob", age=44)
KNOWS = Relationship.type("KNOWS")
g.merge(KNOWS(a, b), "Person", "name")
print("lenth of node %d" % len(g.nodes))
print(g.nodes.match("Person", name="Alice").first())