starting to write docs, taking decisions on public api
This commit is contained in:
18
examples/tutorial_basics_firststeps.py
Normal file
18
examples/tutorial_basics_firststeps.py
Normal file
@ -0,0 +1,18 @@
|
||||
from bonobo import run
|
||||
|
||||
|
||||
def generate_data():
|
||||
yield 'foo'
|
||||
yield 'bar'
|
||||
yield 'baz'
|
||||
|
||||
|
||||
def uppercase(x: str):
|
||||
return x.upper()
|
||||
|
||||
|
||||
def output(x: str):
|
||||
print(x)
|
||||
|
||||
|
||||
run(generate_data, uppercase, output)
|
||||
Reference in New Issue
Block a user