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.

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 details)

Uploaded Python 3

File details

Details for the file pygaffer-0.1-py3-none-any.whl.

File metadata

  • Download URL: pygaffer-0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.7

File hashes

Hashes for pygaffer-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 94385900266b6acc513f4a383669196cf0380bb7e0a8ff64eba658f689a733b7
MD5 7f818f0ef1a0ff4d5b04a6316a7c5c2a
BLAKE2b-256 d667effe1cdd90e43ee70939579fc96d51d041b9d59c30a09e185d9f04f930d4

See more details on using hashes here.

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