from pypher.builder import Node, Cypher n = Node("Person") query = Cypher().Match(n).Return(n) print(query)
MATCH (n:`Person`) RETURN n
from pypher.builder import Node, DirEdge, Cypher a = Node() b = Node() r = DirEdge(a, 'KNOWS', b) query = Cypher().Match(r).Return(a, r, b) print(query)
MATCH (a)-[r:`KNOWS`]->(b) RETURN a,r,bIn both examples above, the Pypher.builder package is imported and used to define the nodes, relationships, and the overall structure of the Cypher query. Overall, Pypher.builder can be classified as a package library for building and manipulating Cypher queries for Neo4j databases.