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 details)

Uploaded Source

Built Distribution

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

Uploaded Source

File details

Details for the file redis_graph-1.0.tar.gz.

File metadata

  • Download URL: redis_graph-1.0.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for redis_graph-1.0.tar.gz
Algorithm Hash digest
SHA256 bcf3f6fcc7fb0b5f28ce28bbb9f75a27f2f0cffd4cb8f989a5faccba9ec16c29
MD5 8b9b0aa94fdd059370debac080cd7a0b
BLAKE2b-256 81445bbcddfe975437c30a47e91f8dfe626690854050ba36d847ac8722628faf

See more details on using hashes here.

File details

Details for the file redis_graph-1.0-py2.6.egg.

File metadata

File hashes

Hashes for redis_graph-1.0-py2.6.egg
Algorithm Hash digest
SHA256 74a3044490f2999312acd53bbeb82ea6e0e0b855631d0c1a0af7c02c04c334aa
MD5 54db5ada64a98e5c4c795c2c9f6e1bd0
BLAKE2b-256 f1cebd8cb7738dfbe3e7d712456a2141221e8956f7af2b9b3dbfe3e2be76e436

See more details on using hashes here.

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