Skip to main content

Python Gaffer API

Project description

# PyGaffer

API for Gaffer graph store.

# Install
`pip3 install git+git://github.com/cybermaggedon/pygaffer`

# 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

0.1

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

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page