Constants used by the justbytes package.
The universal unit, bytes.
Bases: justbytes._constants.Units
Class to store binary unit constants.
Bases: justbytes._constants.Units
Class to store decimal unit constants.
All unit constants.
Bases: object
Class to encapsulate unit information.
abbreviation for unit, precedes ‘B’
numeric multiple of bytes
prefix for ‘bytes’
Bases: object
Generic class for units.
A decorator indicating abstract properties.
Requires that the metaclass is ABCMeta or derived from it. A class that has a metaclass derived from ABCMeta cannot be instantiated unless all of its abstract properties are overridden. The abstract properties can be called using any of the normal ‘super’ call mechanisms.
Usage:
- class C:
__metaclass__ = ABCMeta @abstractproperty def my_abstract_property(self):
...
This defines a read-only property; you can also define a read-write abstract property using the ‘long’ form of property declaration:
- class C:
- __metaclass__ = ABCMeta def getx(self): ... def setx(self, value): ... x = abstractproperty(getx, setx)
Units of this class.
The maximum exponent for which there is a unit.
Returns: | the maximum exponent |
---|---|
Return type: | int |