Configuration of the justbytes package.
Bases: justbases._config.BaseConfig
Configuration for display of bases.
Override defaults of justbases.BaseConfig.
Bases: object
The super top-level configuration class for ranges.
Set configuration for superficial aspects of display.
Parameters: | config (DisplayConfig) – a configuration object |
---|
Set display implementation.
Parameters: | impl (type) – the display implementation class |
---|
Set the configuration for computing the value of string representation.
:param ValueConfig config: a configuration object
Bases: justbases._config.DisplayConfig
DisplayConfig overrides justbases.DisplayConfig’s defaults.
Bases: object
Configuration for Range class.
Bases: object
Configuration for __str__ method.
If max_places is set to None, all non-zero digits after the decimal point will be shown. Otherwise, max_places digits will be shown.
min_value sets the smallest value allowed. If min_value is 10, then single digits on the lhs of the decimal will be avoided if possible. In that case, 9216 KiB is preferred to 9 MiB. However, 1 B has no alternative. If min_value is 1, however, 9 MiB is preferred. If min_value is 0.1, then 0.75 GiB is preferred to 768 MiB, but 0.05 GiB is still displayed as 51.2 MiB.