Skip to main content

Python Gaffer API

Project description

# PyGaffer

API for Gaffer graph store.

# Install
`pip3 install git+git://`

# Example

import gaffer

g = gaffer.Gaffer("http://localhost:8080")

# For TLS, use keys in ~/private
# g.use_cert()

op1 = g.get_all(entities=["ip"], edges=["ipflow"])
op2 = g.limit(30)
ops = g.operation_chain([op1, op2])

res = g.execute(ops)

for v in res:
if v.has_key("source"):
print "Edge:", v["source"], "->", v["destination"]

if v.has_key("vertex"):
print "Node:", v["vertex"]


Project details

Release history Release notifications | RSS feed

This version


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pygaffer, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size pygaffer-0.1-py3-none-any.whl (5.0 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page