Object-oriented Python library to interact with Neo4j standalone REST server
Python Shell
Latest commit 6e8b0bd Jun 15, 2016 @versae committed on GitHub Merge pull request #124 from PabloCastellano/docs2
[docs] Added imports to query example
Permalink
Failed to load latest commit information.
docs Merge pull request #124 from PabloCastellano/docs2 Jun 14, 2016
neo4jrestclient Prep for version 2.1.1 Nov 20, 2015
.travis.yml Add dockerized travis Nov 20, 2015
AUTHORS.txt Bump new version Nov 10, 2014
CHANGES.txt Prep for version 2.1.1 Nov 20, 2015
LICENSE-GPL.txt Packaging the library for easy_install and pip. Apr 15, 2011
MANIFEST.in Updated changes, manifes and readme files. Jul 11, 2011
README.rst Added Gitter badge Apr 16, 2015
README.txt
dev_requirements.txt Add development requirements and PyPy to Travis Dec 22, 2013
install_local_neo4j.bash Fix #122. Problem clearing labels of a node. Fix also a cache issue. … Nov 20, 2015
requirements.txt
setup.cfg Add wheels Nov 18, 2013
setup.py Fix #122. Problem clearing labels of a node. Fix also a cache issue. … Nov 20, 2015
tox.ini

README.rst

https://travis-ci.org/versae/neo4j-rest-client.png?branch=master https://coveralls.io/repos/versae/neo4j-rest-client/badge.png?branch=master Downloads

Neo4j Python REST Client

synopsis:Object-oriented Python library to interact with Neo4j standalone REST server.

The first objective of Neo4j Python REST Client is to make transparent for Python programmers the use of a local database through python-embedded or a remote database thanks to Neo4j REST Server. So, the syntax of this API is fully compatible with python-embedded. However, a new syntax is introduced in order to reach a more pythonic style.

Installation

Available throught Python Package Index:

$ pip install neo4jrestclient

Or:

$ easy_install neo4jrestclient

Getting started

The main class is GraphDatabase, exactly how in python-embedded:

>>> from neo4jrestclient.client import GraphDatabase

>>> gdb = GraphDatabase("http://localhost:7474/db/data/")

Due to the syntax is fully compatible with python-embedded, the next lines only show the commands added and its differences.

Creating a node:

>>> n = gdb.nodes.create()

# Equivalent to
>>> n = gdb.node()

Specify properties for new node:

>>> n = gdb.nodes.create(color="Red", width=16, height=32)

Accessing properties:

>>> value = n['key'] # Get property value

>>> n['key'] = value # Set property value

Create relationship:

>>> n1.relationships.create("Knows", n2) # Useful when the name of
                                         # relationship is stored in a variable

Specify properties for new relationships:

>>> n1.Knows(n2, since=123456789, introduced_at="Christmas party")

Documentation

For the extended and latest version of the documentation, please, visit the read the docs site

Join the chat at https://gitter.im/versae/neo4j-rest-client