bytesize._sizes module
Class for methods that do not properly belong in the Size class.
-
bytesize._sizes.getSizeFromInput(value=0, units=None, config=None)
Get a Size object from an input value and units.
Parameters: |
- value (Size, or any finite numeric type (possibly as str)) – a size value, default is 0
- units (any of the defined units constants or Size or NoneType) – the units of the size, default is None
- config (a member of InputConfig or NoneType) – configures interpretation of inputs
|
Returns: | a Size object
|
Return type: | Size
|
Raises SizeValueError: |
| on bad parameters
|