Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
__init__.pyi66 linesDownload Raw Back to xxhash
1import array2from typing import Union3from typing_extensions import final, Buffer4 5# __buffer__ protocol makes this redundant on python 3.12+6Buffer.register(array.ArrayType)7_InputType = Union[str, Buffer]8 9VERSION: str10XXHASH_VERSION: str11#: Deprecated, will be removed in the next major release12VERSION_TUPLE: tuple[int, ...]13 14algorithms_available: set[str]15 16class _Hasher:17    def __init__(self, input: _InputType = ..., seed: int = ...) -> None: ...18    def update(self, input: _InputType) -> None: ...19    def digest(self) -> bytes: ...20    def hexdigest(self) -> str: ...21    def intdigest(self) -> int: ...22    def copy(self) -> _Hasher: ...23    def reset(self) -> None: ...24    @property25    def digestsize(self) -> int: ...26    @property27    def digest_size(self) -> int: ...28    @property29    def block_size(self) -> int: ...30    @property31    def name(self) -> str: ...32    @property33    def seed(self) -> int: ...34 35@final36class xxh32(_Hasher): ...37 38@final39class xxh3_64(_Hasher): ...40 41@final42class xxh3_128(_Hasher): ...43 44xxh64 = xxh3_6445xxh128 = xxh3_12846 47def xxh32_digest(args: _InputType, seed: int = ...) -> bytes: ...48def xxh32_hexdigest(args: _InputType, seed: int = ...) -> str: ...49def xxh32_intdigest(args: _InputType, seed: int = ...) -> int: ...50 51def xxh3_64_digest(args: _InputType, seed: int = ...) -> bytes: ...52def xxh3_64_hexdigest(args: _InputType, seed: int = ...) -> str: ...53def xxh3_64_intdigest(args: _InputType, seed: int = ...) -> int: ...54 55def xxh3_128_digest(args: _InputType, seed: int = ...) -> bytes: ...56def xxh3_128_hexdigest(args: _InputType, seed: int = ...) -> str: ...57def xxh3_128_intdigest(args: _InputType, seed: int = ...) -> int: ...58 59xxh64_digest = xxh3_64_digest60xxh64_hexdigest = xxh3_64_hexdigest61xxh64_intdigest = xxh3_64_intdigest62 63xxh128_digest = xxh3_128_digest64xxh128_hexdigest = xxh3_128_hexdigest65xxh128_intdigest = xxh3_128_intdigest66 
codekingpro/portable-devtools · Team Ai