Building Web Applications with Python and Neo4j

Develop exciting real-world Python-based web applications with Neo4j using frameworks such as Flask, Py2neo, and Django
Preview in Mapt

Building Web Applications with Python and Neo4j

Sumit Gupta

Develop exciting real-world Python-based web applications with Neo4j using frameworks such as Flask, Py2neo, and Django
Mapt Subscription
FREE
$29.99/m after trial
eBook
$19.60
RRP $27.99
Save 29%
Print + eBook
$34.99
RRP $34.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packtโ€™s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$19.60
$34.99
$29.99p/m after trial
RRP $27.99
RRP $34.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


Building Web Applications with Python and Neo4j Book Cover
Building Web Applications with Python and Neo4j
$ 27.99
$ 19.60
Learning Neo4j Graphs and Cypher [Video] Book Cover
Learning Neo4j Graphs and Cypher [Video]
$ 124.99
$ 106.25
Buy 2 for $35.00
Save $117.98
Add to Cart
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 

Book Details

ISBN 139781783983988
Paperback184 pages

Book Description

Py2neo is a simple and pragmatic Python library that provides access to the popular graph database Neo4j via its RESTful web service interface. This brings with it a heavily refactored core, a cleaner API, better performance, and some new idioms.

You will begin with licensing and installing Neo4j, learning the fundamentals of Cypher as a graph query language, and exploring Cypher optimizations. You will discover how to integrate with various Python frameworks such as Flask and its extensions: Py2neo, Neomodel, and Django. Finally, the deployment aspects of your Python-based Neo4j applications in a production environment is also covered. By sequentially working through the steps in each chapter, you will quickly learn and master the various implementation details and integrations of Python and Neo4j, helping you to develop your use cases more quickly.

Table of Contents

Chapter 1: Your First Query with Neo4j
Thinking in graphs for SQL developers
Licensing and configuring โ€“ Neo4j
Using the Neo4j shell
Introducing the Neo4j REST interface
Running queries from the Neo4j browser
Summary
Chapter 2: Querying the Graph with Cypher
Basic anatomy of a Cypher query
Pattern and pattern matching
Summary
Chapter 3: Mutating Graph with Cypher
Creating nodes and relationships
Transforming nodes and relationships
Cypher query optimizations
Summary
Chapter 4: Getting Python and Neo4j to Talk Py2neo
Installing and configuring py2neo
Exploring the py2neo APIs
Creating a social network with py2neo
Batch imports
Unit testing
Summary
Chapter 5: Build RESTful Service with Flask and Py2neo
Introducing (and installing) Flask
Setting up web applications with Flask and Flask-RESTful
REST APIs for social network data using py2neo
Summary
Chapter 6: Using Neo4j with Django and Neomodel
Installing and configuring Neomodel
Declaring models and properties
Adding relationships to models
Running Cypher queries
Using Neomodel in a Django app
Summary
Chapter 7: Deploying Neo4j in Production
Neo4j logical architecture
Neo4j physical architecture
Monitoring the health of the Neo4J nodes
Backup and recovery
Summary

What You Will Learn

  • Understand the licensing and installation of the Neo4j database and work with its various tools and utilities
  • Learn the intricacies of Cypher as a graph query language
  • Work with Cypher to create and modify graph data models
  • Integrate Python and Neo4j using Py2neo
  • Develop REST-based services over social network data using Flask and object graph models over Neo4j
  • Integrate Django-based web applications over graph data models using Neomodel
  • Explore different deployment models and their applicability with existing applications

Authors

Table of Contents

Chapter 1: Your First Query with Neo4j
Thinking in graphs for SQL developers
Licensing and configuring โ€“ Neo4j
Using the Neo4j shell
Introducing the Neo4j REST interface
Running queries from the Neo4j browser
Summary
Chapter 2: Querying the Graph with Cypher
Basic anatomy of a Cypher query
Pattern and pattern matching
Summary
Chapter 3: Mutating Graph with Cypher
Creating nodes and relationships
Transforming nodes and relationships
Cypher query optimizations
Summary
Chapter 4: Getting Python and Neo4j to Talk Py2neo
Installing and configuring py2neo
Exploring the py2neo APIs
Creating a social network with py2neo
Batch imports
Unit testing
Summary
Chapter 5: Build RESTful Service with Flask and Py2neo
Introducing (and installing) Flask
Setting up web applications with Flask and Flask-RESTful
REST APIs for social network data using py2neo
Summary
Chapter 6: Using Neo4j with Django and Neomodel
Installing and configuring Neomodel
Declaring models and properties
Adding relationships to models
Running Cypher queries
Using Neomodel in a Django app
Summary
Chapter 7: Deploying Neo4j in Production
Neo4j logical architecture
Neo4j physical architecture
Monitoring the health of the Neo4J nodes
Backup and recovery
Summary

Book Details

ISBN 139781783983988
Paperback184 pages
Read More

Read More Reviews

Recommended for You

Neo4j Graph Data Modeling Book Cover
Neo4j Graph Data Modeling
$ 23.99
$ 16.80
Python Machine Learning Book Cover
Python Machine Learning
$ 35.99
$ 25.20
Building Machine Learning Systems with Python Book Cover
Building Machine Learning Systems with Python
$ 29.99
$ 6.00
Practical Data Science Cookbook Book Cover
Practical Data Science Cookbook
$ 29.99
$ 21.00
MySQL for Python Book Cover
MySQL for Python
$ 29.99
$ 21.00
Machine Learning with Spark Book Cover
Machine Learning with Spark
$ 29.99
$ 3.00