Skip to main content

JUGRI - The JUpyter - GRemlin Interface

Project description

JUGRI

PyPI - Downloads Travis (.org)

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...

JUGRI Logo

Requirements

Tested on Python 3.7

  • gremlinpython
  • pandas

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.

Files for jugri, version 0.5.2
Filename, size File type Python version Upload date Hashes
Filename, size jugri-0.5.2-py2-none-any.whl (10.3 kB) File type Wheel Python version py2 Upload date Hashes View hashes
Filename, size jugri-0.5.2-py3-none-any.whl (6.4 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size jugri-0.5.2.tar.gz (25.6 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page