JUGRI - The JUpyter - GRemlin Interface
Project description
JUGRI
The JUpyter-GRemlin Interface. The Gremlinpython package is easy to use to create queries against any property graph that supports the Tinkerpop interface. However, parsing the gremlin results is more complex as the returned list can contain many objects. The JUGRI package will help the developer by providing an easy to use interface to convert these results into the widely used Pandas DataFrame.
More features are on their way...
Requirements
Tested on Python 3.7
gremlinpythonpandas
Install/update
Install from PyPI (the usual way)
pip install --user --upgrade jugri
Install from source
pip install --user --upgrade -e git+git@github.com:meltwater/jugri.git#egg=jugri
or (using https)
pip install --user --upgrade -e git+https://github.com/meltwater/jugri.git#egg=jugri
Usage
Convert Gremlin query results to a Pandas DataFrame:
import jugri
from gremlin_python.structure.graph import Graph
graph = Graph()
g = graph.traversal()
df = jugri.to_df(g.V().valueMap(True).limit(10))
# df is a Pandas DataFrame with the results of the query.
You can find a Jupyter notebook example
in the example folder.
Uninstall
pip uninstall jugri
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
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 jugri-0.5.2.tar.gz.
File metadata
- Download URL: jugri-0.5.2.tar.gz
- Upload date:
- Size: 25.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.27.0 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
64c442b66dec755dfc640c46f8edcebdb9c6b454d05f54d3b8be82eea4589021
|
|
| MD5 |
3a28d4aa2e9018c8606c7bef722fff08
|
|
| BLAKE2b-256 |
7f56c0981696ea163d2c45b7a5795cdedcf0f6e382e89e34a6cf6ffe7311c581
|
File details
Details for the file jugri-0.5.2-py3-none-any.whl.
File metadata
- Download URL: jugri-0.5.2-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.27.0 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5006225b9d778f35c106d7abf6b7626afa79fd1869b57cadfbf7a205898fc74e
|
|
| MD5 |
8e27a620dfe736229c58e916f6a1e334
|
|
| BLAKE2b-256 |
86ab7598293f32bfa1336afbb386f0e98ca40672dae24905398c51f24ecc2c85
|
File details
Details for the file jugri-0.5.2-py2-none-any.whl.
File metadata
- Download URL: jugri-0.5.2-py2-none-any.whl
- Upload date:
- Size: 10.3 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.27.0 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8bc2844dbf103c1bec1e72bff6af5fd87feb84d3da7cb5abd97358a04e734b02
|
|
| MD5 |
1230af7687712812b9621e8d0d3123e9
|
|
| BLAKE2b-256 |
a08793bb997e65a8ecc9de77208fb65ee07ea22429520716cb5deae0a23986b9
|