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.
Release files for redis_graph 1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| redis_graph-1.0.tar.gz | 2.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| redis_graph-1.0-py2.6.egg | Legacy Egg format | - | - | Details |
Total release size: 6.2 kB
Release files / redis_graph-1.0.tar.gz
| Download URL | redis_graph-1.0.tar.gz |
|---|---|
| Size | 2.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bcf3f6fcc7fb0b5f28ce28bbb9f75a27f2f0cffd4cb8f989a5faccba9ec16c29
|
|
BLAKE2b-256 checksum How to use checksums |
81445bbcddfe975437c30a47e91f8dfe626690854050ba36d847ac8722628faf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / redis_graph-1.0-py2.6.egg
| Download URL | redis_graph-1.0-py2.6.egg |
|---|---|
| Size | 4.0 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
74a3044490f2999312acd53bbeb82ea6e0e0b855631d0c1a0af7c02c04c334aa
|
|
BLAKE2b-256 checksum How to use checksums |
f1cebd8cb7738dfbe3e7d712456a2141221e8956f7af2b9b3dbfe3e2be76e436
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |