Netflix / Lipstick

Pig Visualization framework
Apache License 2.0
464 stars 131 forks source link

Python client for Lipstick 2.0 #94

Closed alienrobotwizard closed 9 years ago

alienrobotwizard commented 9 years ago

Simple python client for lipstick 2.0

Install:

cd clients/python
sudo pip install -e .

Usage:

from lipstick import lipstick, Graph, Edge, Node

client = lipstick.Client('localhost:9292')
graph = Graph('A').node(Node('1')).node(Node('2')).edge(Edge('1','2')).status().statusText("running")
client.save(graph)

# ...some long process...

graph.status().progress(25)
client.update(graph)

# ...finished

graph.status().progress(100)
graph.status().statusText("finished")
client.update(graph)