Default service configuration in directory or file (#38).

This commit is contained in:
Romain Dorgueil
2017-04-28 07:37:15 +02:00
parent c801131190
commit 357683bd02
12 changed files with 92 additions and 51 deletions

View File

@ -0,0 +1,13 @@
import bonobo
from bonobo.commands.run import get_default_services
# XXX does not work anymore because of filesystem service, can't read HTTP
url = 'https://data.toulouse-metropole.fr/explore/dataset/theatres-et-salles-de-spectacles/download?format=json&timezone=Europe/Berlin&use_labels_for_header=true'
graph = bonobo.Graph(
bonobo.JsonReader(path=url),
print
)
if __name__ == '__main__':
bonobo.run(graph, services=get_default_services(__file__))