Commit Graph

8 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
5e0b6567cd Rewritting Bags from scratch using a namedtuple approach, along with other (less major) updates.
New bag implementation improves a lot how bonobo works, even if this is
highly backward incompatible (sorry, that's needed, and better sooner
than later).

* New implementation uses the same approach as python's namedtuple,
  by dynamically creating the python type's code. This has drawbacks, as
  it feels like not the right way, but also a lot of benefits that
  cannot be achieved using a regular approach, especially the
  constructor parameter order, hardcoded.
* Memory usage is now much more efficient. The "keys" memory space will
  be used only once per "io type", being spent in the underlying type
  definition instead of in the actual instances.
* Transformations now needs to use tuples as output, which will be bound
  to its "output type". The output type can be infered from the tuple
  length, or explicitely set by the user using either
  `context.set_output_type(...)` or `context.set_output_fields(...)` (to
  build a bag type from a list of field names).

Jupyter/Graphviz integration is more tight, allowing to easily display
graphs in a notebook, or displaying the live transformation status in an
html table instead of a simple <div>.

For now, context processors were hacked to stay working as before but
the current API is not satisfactory, and should be replaced. This new
big change being unreasonable without some time to work on it properly,
it is postponed for next versions (0.7, 0.8, ...). Maybe the best idea
is to have some kind of "local services", that would use the same
dependency injection mechanism as the execution-wide services.

Services are now passed by keywoerd arguments only, to avoid confusion
with data-arguments.
2017-11-27 00:04:51 +01:00
d1481fbfe8 Moves jupyter extension to both bonobo.contrib.jupyter (for the jupyter widget) and to bonobo.plugins (for the executor-side plugin). 2017-11-12 09:08:05 +01:00
92fa1fb7e2 mock module is in unittest (py3) 2017-05-01 10:43:13 +02:00
b035bdea32 formating, better consistency in readers, ability to read files from http (fast and dirty). 2017-02-12 08:10:22 +01:00
f736e7e7e3 Working toward sqlalchemy extension. Better ability to extend context. Still needs a lot of cleanup. 2017-01-03 22:06:09 +01:00
25ad284935 starting to write docs, taking decisions on public api 2016-12-27 13:31:38 +01:00
8903e1d386 still testing 2016-12-26 08:57:39 +01:00