Created
November 29, 2017 10:16
-
-
Save hartym/67604afc81f2eb9e498ce11b0ca8d8ec to your computer and use it in GitHub Desktop.
bonobo 0.6 - default.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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