Skip to main content

A Python version of the Blueprints property graph model interface

Project description

SYNOPSIS: Provides a layer to abstract the Python developer from the graph database system used

Following the set of interfaces provided by tinkerpop for Blueprints, this proyect aims to give Python developers a similar functionality. A set of abstract classes are defined in order to guide the design of implementations for the different graph database engines.

Features

This is an experimental version only permitting partial functionality to:

Installation

The easiest way to get pyblueprints installed in your virtualenv is by:

pip install pyblueprints

Usage

This version of pybluerprints allows you to connect to graph databases by a Rexster Instance or through the neo4j-rest-client API. Therefore a Neo4j database can be accessed with both options. The Rexster instance also provides connection to the following databases:

  • TinkerGraph

  • OrientDB

  • DEX

  • Sail RDF Stores

Rexster

Connecting to a Rexster instance

>>> from pyblueprints 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')

neo4j-rest-client

Creating a graph object through the neo4j-rest-client API

>>> from pyblueprints.neo4j import Neo4jGraph
>>> g = Neo4jGraph('http://localhost:7474/db/data')

Creating an indexable graph object through the neo4j-rest-client API

>>> from pyblueprints.neo4j import Neo4jIndexableGraph
>>> g = Neo4jIndexableGraph('http://localhost:7474/db/data')

lease keep in mind to backup your data before trying this library.

Changes

0.3.2 (2011-07-15)

  • Bugfixes

0.3.1 (2011-07-14)

  • Fixed removeProperty bug

0.3 (2011-07-12)

  • Added unittests

  • Added getEdge, removeProperty and getBothEdges methods

  • Returning None in NotFoundErrors instead of raising exception

  • Bugfixes

0.2.2 (2011-07-11)

  • Added basic installation and usage documentation

0.2.1 (2011-07-06)

  • Updated documentation

0.2 (2011-07-06)

  • Added integration with python-rexster

0.1 (2011-06-29)

  • First Python Index Package release.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyblueprints-0.3.2.tar.gz (24.0 kB view details)

Uploaded Source

File details

Details for the file pyblueprints-0.3.2.tar.gz.

File metadata

  • Download URL: pyblueprints-0.3.2.tar.gz
  • Upload date:
  • Size: 24.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyblueprints-0.3.2.tar.gz
Algorithm Hash digest
SHA256 953f89f778d89d3edf4eb89e7b181e323b05676b48c61dd5cb1ccfc6055bec9e
MD5 9481d8114ad0ad71eeb724eaed76b428
BLAKE2b-256 d91da92140d1a0457e8bb86c3667a65bd2672b72ff2463539925e6f634739010

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page