neomodel is a Graph Object Mapper for Python whose syntax is very close to Django's object-relational mapping (ORM). For instance, in order to retrieve the user whose ID is 1 from a User table (SQL), in Django, you would write the following:
User.objects.get(id=1
The same goal can be achieved with neomodel to retrieve the node with the User label, whose id property is 1, with the following code:
User.nodes.get(id=1)
In both cases, this statement returns a User object whose id is 1. How we define this object in the case of Neo4j is the topic of the upcoming subsection.
The previous statement is equivalent to the following Cypher query:
MATCH (u:User {id: 1}) RETURN u
By using this package, you can also traverse relationships, which is the purpose of graphs!