Splitable#
- class Splitable(*args, **kwargs)#
Bases:
Protocol[T]Protocol for a source plugin that can split data into multiple sources.
A number of parameters can be left
unfixed()which results in multiple files (for instance, if we do not “fix” the parameter year, we can have files for any year we want).It must also implement a
get_filename()method that returns a filename when given a specific set of values.The idea is that a plugin can split data according to the parameters that are left unfixed (example by year), once the data is split we find the associated filename for each year and we then write to files.
The protocol is generic and allows for any type of source.
- __init__(*args, **kwargs)#
- classmethod __subclasshook__(other)#
Abstract classes can override this to customize issubclass().
This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).
- __weakref__#
list of weak references to the object