leaf_engine.utils.batch

Functions

create_batch_record_from_params(→ Dict)

Creates a dictionary of batch data that matches the analytics service's

update_params_with_batch(→ None)

Adds batch params in the expected locations of the full param dictionary

Module Contents

leaf_engine.utils.batch.create_batch_record_from_params(params: dynaconf.Dynaconf, record_type: str) Dict

Creates a dictionary of batch data that matches the analytics service’s expected form.

If any values are None, they are not included.

Parameters:
  • params (dynaconf.Dynaconf) –

  • record_type (str) –

Return type:

Dict

leaf_engine.utils.batch.update_params_with_batch(params: Dict, batch_params: Dict) None

Adds batch params in the expected locations of the full param dictionary in-place.

Parameters:
  • params (Dict) –

  • batch_params (Dict) –

Return type:

None