Skip to main content

Python graph database implemented on top of Redis.

Project description

redis_graph

redis_graph implements a graph database on top of Redis.

Requires:

Related:

Examples

Example of creating edges between nodes:

from redis_graph import *

add_edge(from_node='frodo', to_node='gandalf')

assert has_edge(from_node='frodo',
                to_node='gandalf') == True

assert list(neighbors('frodo')) == ['gandalf']

delete_edge(from_node='frodo',
            to_node='gandalf')

assert has_edge(from_node='frodo',
                to_node='gandalf') == False

Example of node and edge values:

from redis_graph import *

set_node_value('frodo', '1')
assert get_node_value('frodo') == '1'

set_edge_value('frodo_baggins', '2')
assert get_edge_value('frodo_baggins') == '2'

Copyright: 2010 by amix License: BSD.

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

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

Source Distribution

redis_graph-1.0.tar.gz (2.1 kB view hashes)

Uploaded Source

Built Distribution

redis_graph-1.0-py2.6.egg (4.0 kB view hashes)

Uploaded Source

Supported by

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