dispel.providers.registry module#

TODO: Write documentation about registry.

dispel.providers.registry.discover_providers()[source]#

Discover providers from the provider package.

TODO: describe the discovery process

dispel.providers.registry.get_processing_function(code, reading_type)[source]#

FIXME: documentation.

Parameters:
  • code (str) –

  • reading_type (type) –

Return type:

Callable[[Reading], DataTrace]

dispel.providers.registry.process_factory(task_name, steps, codes, supported_type=<class 'dispel.data.core.Reading'>)[source]#

Register and return the corresponding processing function.

Parameters:
Returns:

The decorated processing function.

Return type:

Callable[[Reading], DataTrace]

dispel.providers.registry.register_processing(task_name, steps, codes, supported_type=<class 'dispel.data.core.Reading'>)[source]#

Register a processing function and steps for automatic processing.

Parameters:
Returns:

The decorated function.

Return type:

Callable

dispel.providers.registry.register_reader(readable, reading_type, registry=None)[source]#

Decorate a function to serve as a reader.

TODO: write documentation

Parameters:
Return type:

Callable