work in progress ...

This commit is contained in:
Romain Dorgueil
2016-12-09 08:01:04 +01:00
parent 854ef4e2bf
commit 90d3b6235b
24 changed files with 822 additions and 85 deletions

View File

@ -0,0 +1,30 @@
from bonobo.strategy import NaiveStrategy, ExecutorStrategy
from bonobo.core.graph import Graph
def extract():
yield 'foo'
yield 'bar'
yield 'baz'
def transform(s):
return s.title()
def load(s):
print(s)
if __name__ == '__main__':
etl = Graph()
etl.add_chain(extract, transform, load)
s = NaiveStrategy()
s.execute(etl)
s = ExecutorStrategy()
s.execute(etl)