Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Python Rexster Client

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 rexster
Octocat-spinner-32 AUTHORS.txt
Octocat-spinner-32 CHANGES.txt
Octocat-spinner-32 LICENSE-GPL.txt
Octocat-spinner-32 MANIFEST.in
Octocat-spinner-32 README.rst
Octocat-spinner-32 README.txt
Octocat-spinner-32 setup.py
Octocat-spinner-32 test_rexster.py
README.rst

python-rexster

synopsis: Implements a client over Rexster (https://github.com/tinkerpop/rexster/) providing the Python developer an easy way to interact with the databases supported.

The layer follows the pyblueprints graph model interface letting the programmer work in the same way, no matter which underlying graph database is being used.

Installation

The easiest way to get python-rexster installed in your virtualenv is by:

pip install python-rexster

Usage

Connecting to a Rexster instance

>>> from rexster import RexsterServer, RexsterGraph
>>> #Connecting to server
>>> HOST = 'http://localhost:8182'
>>> server = RexsterServer(HOST)
>>> #List graphs availbale in server
>>> server.graphs()
[u'tinkergraph', u'gratefulgraph', u'tinkergraph-readonly', u'sailgraph', u'emptygraph']
>>> #Connecting to a given graph
>>> graph = RexsterIndexableGraph(server, 'tinkergraph')
Something went wrong with that request. Please try again.