Skip to content

Instantly share code, notes, and snippets.

@hartym
Created November 29, 2017 10:16
Show Gist options
  • Save hartym/67604afc81f2eb9e498ce11b0ca8d8ec to your computer and use it in GitHub Desktop.
Save hartym/67604afc81f2eb9e498ce11b0ca8d8ec to your computer and use it in GitHub Desktop.
bonobo 0.6 - default.py
import bonobo
def get_graph(**options):
graph = bonobo.Graph()
graph.add_chain(...)
return graph
def get_services(**options):
return {}
if __name__ == '__main__':
parser = bonobo.get_argument_parser()
with bonobo.parse_args(parser) as options:
bonobo.run(
get_graph(**options),
services=get_services(**options)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment