# 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"]
```
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"]
```
Release files for pygaffer 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pygaffer-0.1-py3-none-any.whl | Python 3 | none | any | Details |
Release files / pygaffer-0.1-py3-none-any.whl
| Download URL | pygaffer-0.1-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
94385900266b6acc513f4a383669196cf0380bb7e0a8ff64eba658f689a733b7
|
|
BLAKE2b-256 checksum How to use checksums |
d667effe1cdd90e43ee70939579fc96d51d041b9d59c30a09e185d9f04f930d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|