Commit Graph

16 Commits

Author SHA1 Message Date
89dda0dca6 feat: new alternate syntax and switch to black + isort (yeah, maybe not the best time, but that is done). 2018-07-29 18:21:56 +01:00
12fb1cf5c0 misc: sorting imports. 2018-07-29 16:04:07 +01:00
8ea7ce0b1a wip, aio: asyncio strategy (defunct, not fully implemented) and related refactorings. 2018-07-29 15:24:35 +01:00
6a1203602f Minor tweaks about code quality. 2018-07-16 10:00:28 +02:00
d8c0dfe11a Inheritance of bags and better jupyter output for pretty printer. 2017-11-28 21:58:01 +01:00
fb86bc9507 [errors] Move error handling in transformations to use mondrian. 2017-11-02 00:08:09 +01:00
8351897e3a [core] Refactoring of commands to move towards a more pythonic way of running the jobs. Commands are now classes, and bonobo "graph" related commands now hooks into bonobo.run() calls so it will use what you actually put in your __main__ block. 2017-10-29 19:23:50 +01:00
92cc400fe7 [core] Refactoring IOFormats so there is one and only obvious way to send it.
This is the commit where I admit that having more than one input/output
format for readers and writers was complicating the code too much for a
very small gain, and that it would be easier to only have one way to do
it.

So such way is now:

- Returning (or yielding) a dict if you have key-value type collections.
- Returning (or yielding) a tuple if you have a list-type collection.
- Returning (or yielding) something else otherwise, which will continue
  to work like the old "arg0" format.

IOFORMAT options has been removed in favour of a RemovedOption, which
will complain if you're still trying to set it to anything else than the
one value allowed.
2017-10-15 21:37:22 +02:00
9801c75720 [settings] Better impl. of Setting class, tests for it and refactor hardcoded settings to use it. 2017-07-05 12:41:14 +02:00
5062221e78 [config] Refactoring of configurables, allowing partially configured objects.
Configurables did not allow more than one "method" option, and mixed
scenarios (options+methods+...) were sometimes flaky, forcing the user
to know what order was the right one. Now, all options work the same,
sharing the same "order" namespace.

Backward incompatible change: Options are now required by default,
unless a default is provided.

Also adds a few candies for debugging/testing, found in the
bonobo.util.inspect module.
2017-07-05 11:15:03 +02:00
1ca48d885d Refactoring and fixes around ioformats. 2017-06-08 21:47:01 +02:00
e5483de344 [core] I/O formats allowing both arg0 formating and kwargs based. Starting with 0.4, kwargs based will be default (BC break here, but needed for the greater good). 2017-06-05 11:38:11 +02:00
88d46a724d [cli] adds python logging facility configuration. 2017-05-31 22:06:08 +02:00
34aa357fd3 [misc] minor output tuning. 2017-05-25 19:49:05 +02:00
4e4a3581c9 [cli] implements bonobo run -m <module> and bonobo run <path>. Also adds --quiet option implementation and --verbose option that sets the DEBUG setting on. 2017-05-22 14:05:57 +02:00
e22f1bfb59 Settings for debug/profile and use them in console plugin. 2017-05-19 18:35:39 +02:00