|
Let us walk on the 3-isogeny graph
|
Functions | |
| ResultDict | detect (Union[bytes, bytearray] byte_str, bool should_rename_legacy=False) |
| List[ResultDict] | detect_all (Union[bytes, bytearray] byte_str, bool ignore_threshold=False, bool should_rename_legacy=False) |
| ResultDict detect | ( | Union[bytes, bytearray] | byte_str, |
| bool | should_rename_legacy = False |
||
| ) |
Detect the encoding of the given byte string.
:param byte_str: The byte sequence to examine.
:type byte_str: ``bytes`` or ``bytearray``
:param should_rename_legacy: Should we rename legacy encodings
to their more modern equivalents?
:type should_rename_legacy: ``bool``
Definition at line 30 of file __init__.py.
References i.
| List[ResultDict] detect_all | ( | Union[bytes, bytearray] | byte_str, |
| bool | ignore_threshold = False, |
||
| bool | should_rename_legacy = False |
||
| ) |
Detect all the possible encodings of the given byte string.
:param byte_str: The byte sequence to examine.
:type byte_str: ``bytes`` or ``bytearray``
:param ignore_threshold: Include encodings that are below
``UniversalDetector.MINIMUM_THRESHOLD``
in results.
:type ignore_threshold: ``bool``
:param should_rename_legacy: Should we rename legacy encodings
to their more modern equivalents?
:type should_rename_legacy: ``bool``
Definition at line 53 of file __init__.py.
References i.