redisgraph-py | RedisGraph python client
kandi X-RAY | redisgraph-py Summary
kandi X-RAY | redisgraph-py Summary
RedisGraph python client
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Parse the results set
- Parse edge
- Parses the results from the result set
- Parse the raw result set
- Merge a set of objects
- Builds the params header
- Returns a string representation of the given parameter value
- Queries the graph
- Generate the operation tree
- Append a child
- Parse statistics from raw statistics
- Returns the value of a given property
- Pretty print the results
- Return a string representation of the object
redisgraph-py Key Features
redisgraph-py Examples and Code Snippets
Community Discussions
Trending Discussions on redisgraph-py
QUESTION
I want to use redisgraph-py to load a saved graph back into a Graph object. How do I load data with redis-py that's stored as type graphdata
?
I'm running the redisgraph docker image and have no problems seeing the graph among the keys. I'm new to redis and was trying to just use r.get('random')
to load the saved graph but I see from the top answer here that I need to use the right method to extract the right type of value with redis-py.
ANSWER
Answered 2018-Dec-31 at 12:40Currently redisgraph-py can't re-creating a Python graph object from a Redis key containing a graph.
To implement this the module (redisgraph-py) would have to retrieve all nodes by issuing a query:
MATCH (n) RETURN n
And create a redisgraph-py Node object form each, in addition it would have to issue a second query retrieving all relationships
MATCH (n)-[r]->(m) RETURN n,r,m
And create a redisgraph-py edge object from each.
I think if we would go that way, it would make sense to implement an interface / framework similar to NetworkX.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install redisgraph-py
Create a virtualenv to manage your python dependencies, and ensure it's active. virtualenv -v venv; source venv/bin/activate
Install pypoetry to manage your dependencies. pip install poetry
Install dependencies. poetry install
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page