diff --git a/bonobo/examples/files/csv_handlers.py b/bonobo/examples/files/csv_handlers.py index b4cef22..a9094b6 100644 --- a/bonobo/examples/files/csv_handlers.py +++ b/bonobo/examples/files/csv_handlers.py @@ -2,7 +2,7 @@ import bonobo from bonobo.commands.run import get_default_services graph = bonobo.Graph( - bonobo.CsvReader(path='datasets/coffeeshops.txt'), + bonobo.CsvReader('datasets/coffeeshops.txt'), print, ) diff --git a/bonobo/examples/files/json_handlers.py b/bonobo/examples/files/json_handlers.py index 0bb0436..86fe6a0 100644 --- a/bonobo/examples/files/json_handlers.py +++ b/bonobo/examples/files/json_handlers.py @@ -7,7 +7,7 @@ def get_fields(row): graph = bonobo.Graph( - bonobo.JsonReader(path='datasets/theaters.json'), + bonobo.JsonReader('datasets/theaters.json'), get_fields, bonobo.PrettyPrint(title_keys=('eq_nom_equipement', )), ) diff --git a/bonobo/examples/files/text_handlers.py b/bonobo/examples/files/text_handlers.py index 04b675e..6ca6ef8 100644 --- a/bonobo/examples/files/text_handlers.py +++ b/bonobo/examples/files/text_handlers.py @@ -8,7 +8,7 @@ def skip_comments(line): graph = bonobo.Graph( - bonobo.FileReader(path='datasets/passwd.txt'), + bonobo.FileReader('datasets/passwd.txt'), skip_comments, lambda s: s.split(':'), lambda l: l[0], diff --git a/bonobo/examples/tutorials/tut02_01_read.py b/bonobo/examples/tutorials/tut02_01_read.py index 9806d43..0eb6786 100644 --- a/bonobo/examples/tutorials/tut02_01_read.py +++ b/bonobo/examples/tutorials/tut02_01_read.py @@ -1,7 +1,7 @@ import bonobo graph = bonobo.Graph( - bonobo.FileReader(path='coffeeshops.txt'), + bonobo.FileReader('coffeeshops.txt'), print, ) diff --git a/bonobo/examples/tutorials/tut02_02_write.py b/bonobo/examples/tutorials/tut02_02_write.py index 161c58e..1d41ac2 100644 --- a/bonobo/examples/tutorials/tut02_02_write.py +++ b/bonobo/examples/tutorials/tut02_02_write.py @@ -6,9 +6,9 @@ def split_one(line): graph = bonobo.Graph( - bonobo.FileReader(path='coffeeshops.txt'), + bonobo.FileReader('coffeeshops.txt'), split_one, - bonobo.JsonWriter(path='coffeeshops.json'), + bonobo.JsonWriter('coffeeshops.json'), ) if __name__ == '__main__': diff --git a/bonobo/examples/tutorials/tut02_03_writeasmap.py b/bonobo/examples/tutorials/tut02_03_writeasmap.py index 4598b56..3fe4c08 100644 --- a/bonobo/examples/tutorials/tut02_03_writeasmap.py +++ b/bonobo/examples/tutorials/tut02_03_writeasmap.py @@ -16,9 +16,9 @@ class MyJsonWriter(bonobo.JsonWriter): graph = bonobo.Graph( - bonobo.FileReader(path='coffeeshops.txt'), + bonobo.FileReader('coffeeshops.txt'), split_one_to_map, - MyJsonWriter(path='coffeeshops.json'), + MyJsonWriter('coffeeshops.json'), ) if __name__ == '__main__':