Common Utilities

This page contains common utulities used by core functionality.

API

unidist.core.base.common.filter_arguments(*args, **kwargs)

Filter args and kwargs so that a backend itself is able to materialize data.

Parameters:
  • *args (list or tuple) – Positional arguments to be filtered.

  • **kwargs (dict) – Keyword arguments to be filtered.

Returns:

  • list – Filtered positional arguments.

  • dict – Filtered keyword arguments.

Notes

The method unwraps one level of nesting for args and kwargs so that an underlying backend is able to materialize data. Data materialization of the next levels of nesting is a user’s burden.