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.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

pygaffer-0.1-py3-none-any.whl (5.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page