Python graph database implemented on top of Redis.
Project description
redis_graph
redis_graph implements a graph database on top of Redis.
Requires:
Redis 2.0+
Newest version of redis-py http://github.com/andymccurdy/redis-py
redis_wrap http://pypi.python.org/pypi/redis_wrap
Related:
Blog post about redis_graph: http://amix.dk/blog/post/19592#redis-graph-Graph-database-for-Python
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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bcf3f6fcc7fb0b5f28ce28bbb9f75a27f2f0cffd4cb8f989a5faccba9ec16c29
|
|
| MD5 |
8b9b0aa94fdd059370debac080cd7a0b
|
|
| BLAKE2b-256 |
81445bbcddfe975437c30a47e91f8dfe626690854050ba36d847ac8722628faf
|
File details
Details for the file redis_graph-1.0-py2.6.egg.
File metadata
- Download URL: redis_graph-1.0-py2.6.egg
- Upload date:
- Size: 4.0 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
74a3044490f2999312acd53bbeb82ea6e0e0b855631d0c1a0af7c02c04c334aa
|
|
| MD5 |
54db5ada64a98e5c4c795c2c9f6e1bd0
|
|
| BLAKE2b-256 |
f1cebd8cb7738dfbe3e7d712456a2141221e8956f7af2b9b3dbfe3e2be76e436
|