fedflow package¶
- class fedflow.FedFlow[source]¶
The entry class of Fedflow
- groups = []¶
- classmethod add_group(group: fedflow.core.taskgroup.TaskGroup) → None[source]¶
Add a task group to flow.
- Parameters
group – an instance of
TaskGroup- Returns
Config APIs¶
All the others codes should use Config to get fedflow config properties.
Context APIs¶
Units APIs¶
some apis for units convert.
- class fedflow.units.Units[source]¶
Bases:
objectThe basic class of all units
- abstract classmethod convert(_from, _to, _value)[source]¶
convert value from unit ‘_from’ to unit ‘_to’
- Parameters
_from – the instance of
Units_to – the instance of
Units_value – a number value
- Returns
a number value
- class fedflow.units.ByteUnits(prefix, is_binary, is_byte)[source]¶
Bases:
fedflow.units.UnitsAn units class used for handling byte convert
- __init__(prefix, is_binary, is_byte)[source]¶
Initialize self. See help(type(self)) for accurate signature.