Commit Graph

11 Commits

Author SHA1 Message Date
65a425258a small rewording 2018-01-11 20:26:26 -05: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
7fa9a2be5b [doc] Updating guides in documentation 2017-10-08 13:13:20 +02:00
c1a5750b60 Made a few spelling and grammar corrections/adjustments to the docs under guide. 2017-10-01 20:16:24 -04:00
a377639f94 [config] adds documentation for Exclusive contextmanager 2017-05-25 11:19:56 +02:00
a018cca20e Documenting transformations and configurables. 2017-05-20 13:05:07 +02:00
357683bd02 Default service configuration in directory or file (#38). 2017-04-28 07:37:15 +02:00
27c937054f Update services.rst 2017-04-27 09:52:18 +02:00
02f0c1d972 Update services.rst 2017-04-27 09:47:24 +02:00
8900e902ca Update services.rst 2017-04-27 08:43:58 +02:00
efcd4361cc First implementation of services and basic injection. Not working with CLI for now. 2017-04-25 22:04:21 +02:00