utils package
Useful functions for creating encryption schemes.
- utils.custom_showwarning(message, category, _filename, _lineno, file=None, _line=None)[source]
Custom warning formatter and printer for python warnings. Prints category and message to output file, default stderr.
- Parameters:
message (
Union[Warning,str]) – Warning message, explaining the reason for the warning.category (
Type[Warning]) – Warning category.file (
Optional[TextIO]) – Optional location to write the warning to. If None we write to stderr.
- Return type:
None
- utils.fixed_point module
FixedPointFixedPoint.DEFAULT_FLOAT_PRECISIONFixedPoint.__abs__()FixedPoint.__add__()FixedPoint.__bool__()FixedPoint.__eq__()FixedPoint.__float__()FixedPoint.__ge__()FixedPoint.__gt__()FixedPoint.__init__()FixedPoint.__int__()FixedPoint.__le__()FixedPoint.__lshift__()FixedPoint.__lt__()FixedPoint.__mul__()FixedPoint.__neg__()FixedPoint.__radd__()FixedPoint.__repr__()FixedPoint.__rmul__()FixedPoint.__rshift__()FixedPoint.__rsub__()FixedPoint.__rtruediv__()FixedPoint.__str__()FixedPoint.__sub__()FixedPoint.__truediv__()FixedPoint.calibrate()FixedPoint.fxp()FixedPoint.initiate_from_float()FixedPoint.initiate_from_fxp()FixedPoint.initiate_from_int()FixedPoint.initiate_from_string()FixedPoint.precisionFixedPoint.random_range()FixedPoint.round_to_precision()FixedPoint.strong_eq()FixedPoint.value
- utils.utils module