Book Image

Building web applications with Python and Neo4j

By : Sumit Gupta
Book Image

Building web applications with Python and Neo4j

By: Sumit Gupta

Overview of this book

Table of Contents (14 chapters)
Building Web Applications with Python and Neo4j
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Installing and configuring Neomodel


In this section, we will talk about installing and configuring Neomodel on a virtual environment provided by Python.

Py2neo provides the lower-level APIs for interacting with Neo4j, which sometimes becomes difficult as a lot of boilerplate code needs to be written for performing CRUD or search operation over Neo4j database. Though it provides APIs for dealing with all the features of Neo4j version 1.9 or earlier, fundamentally it doesn't provide object relational mapping between the entities or nodes. In contrast, Neomodel exploits the same py2neo APIs and adds some more code to support the features of Neo4j 2.0 and above, such as labels, constraints, and so on, and provides object relational mapping for Neo4j entities or nodes. We will discuss this in detail in the upcoming sections but let's first look at the basic steps of installing Neomodel.

Neomodel is available in PyPI (https://pypi.python.org/pypi/neomodel), so it can be installed using the pip command...