[doc] Documentation work for the 0.4 release (not finished).

This commit is contained in:
Romain Dorgueil
2017-05-28 19:21:12 +02:00
parent 9370f6504e
commit 0146fb0d55
15 changed files with 282 additions and 94 deletions

View File

@ -0,0 +1,23 @@
import bonobo
def extract():
yield 'foo'
yield 'bar'
yield 'baz'
def transform(x):
return x.upper()
def load(x):
print(x)
graph = bonobo.Graph(extract, transform, load)
graph.__doc__ = 'hello'
if __name__ == '__main__':
bonobo.run(graph)

View File

@ -0,0 +1,10 @@
import bonobo
graph = bonobo.Graph(
['foo', 'bar', 'baz', ],
str.upper,
print,
)
if __name__ == '__main__':
bonobo.run(graph)