initial commit
This commit is contained in:
63
venv/Lib/site-packages/xxhash/__init__.py
Normal file
63
venv/Lib/site-packages/xxhash/__init__.py
Normal file
@@ -0,0 +1,63 @@
|
||||
from ._xxhash import (
|
||||
xxh32,
|
||||
xxh32_digest,
|
||||
xxh32_intdigest,
|
||||
xxh32_hexdigest,
|
||||
xxh64,
|
||||
xxh64_digest,
|
||||
xxh64_intdigest,
|
||||
xxh64_hexdigest,
|
||||
xxh3_64,
|
||||
xxh3_64_digest,
|
||||
xxh3_64_intdigest,
|
||||
xxh3_64_hexdigest,
|
||||
xxh3_128,
|
||||
xxh3_128_digest,
|
||||
xxh3_128_intdigest,
|
||||
xxh3_128_hexdigest,
|
||||
XXHASH_VERSION,
|
||||
)
|
||||
|
||||
from .version import VERSION, VERSION_TUPLE
|
||||
|
||||
|
||||
xxh128 = xxh3_128
|
||||
xxh128_hexdigest = xxh3_128_hexdigest
|
||||
xxh128_intdigest = xxh3_128_intdigest
|
||||
xxh128_digest = xxh3_128_digest
|
||||
|
||||
algorithms_available = set([
|
||||
"xxh32",
|
||||
"xxh64",
|
||||
"xxh3_64",
|
||||
"xxh128",
|
||||
"xxh3_128",
|
||||
])
|
||||
|
||||
|
||||
__all__ = [
|
||||
"xxh32",
|
||||
"xxh32_digest",
|
||||
"xxh32_intdigest",
|
||||
"xxh32_hexdigest",
|
||||
"xxh64",
|
||||
"xxh64_digest",
|
||||
"xxh64_intdigest",
|
||||
"xxh64_hexdigest",
|
||||
"xxh3_64",
|
||||
"xxh3_64_digest",
|
||||
"xxh3_64_intdigest",
|
||||
"xxh3_64_hexdigest",
|
||||
"xxh3_128",
|
||||
"xxh3_128_digest",
|
||||
"xxh3_128_intdigest",
|
||||
"xxh3_128_hexdigest",
|
||||
"xxh128",
|
||||
"xxh128_digest",
|
||||
"xxh128_intdigest",
|
||||
"xxh128_hexdigest",
|
||||
"VERSION",
|
||||
"VERSION_TUPLE",
|
||||
"XXHASH_VERSION",
|
||||
"algorithms_available",
|
||||
]
|
||||
65
venv/Lib/site-packages/xxhash/__init__.pyi
Normal file
65
venv/Lib/site-packages/xxhash/__init__.pyi
Normal file
@@ -0,0 +1,65 @@
|
||||
import array
|
||||
from typing import Union
|
||||
from typing_extensions import final, Buffer
|
||||
|
||||
# __buffer__ protocol makes this redundant on python 3.12+
|
||||
Buffer.register(array.ArrayType)
|
||||
_InputType = Union[str, Buffer]
|
||||
|
||||
VERSION: str
|
||||
XXHASH_VERSION: str
|
||||
#: Deprecated, will be removed in the next major release
|
||||
VERSION_TUPLE: tuple[int, ...]
|
||||
|
||||
algorithms_available: set[str]
|
||||
|
||||
class _Hasher:
|
||||
def __init__(self, input: _InputType = ..., seed: int = ...) -> None: ...
|
||||
def update(self, input: _InputType) -> None: ...
|
||||
def digest(self) -> bytes: ...
|
||||
def hexdigest(self) -> str: ...
|
||||
def intdigest(self) -> int: ...
|
||||
def copy(self) -> _Hasher: ...
|
||||
def reset(self) -> None: ...
|
||||
@property
|
||||
def digestsize(self) -> int: ...
|
||||
@property
|
||||
def digest_size(self) -> int: ...
|
||||
@property
|
||||
def block_size(self) -> int: ...
|
||||
@property
|
||||
def name(self) -> str: ...
|
||||
@property
|
||||
def seed(self) -> int: ...
|
||||
|
||||
@final
|
||||
class xxh32(_Hasher): ...
|
||||
|
||||
@final
|
||||
class xxh3_64(_Hasher): ...
|
||||
|
||||
@final
|
||||
class xxh3_128(_Hasher): ...
|
||||
|
||||
xxh64 = xxh3_64
|
||||
xxh128 = xxh3_128
|
||||
|
||||
def xxh32_digest(args: _InputType, seed: int = ...) -> bytes: ...
|
||||
def xxh32_hexdigest(args: _InputType, seed: int = ...) -> str: ...
|
||||
def xxh32_intdigest(args: _InputType, seed: int = ...) -> int: ...
|
||||
|
||||
def xxh3_64_digest(args: _InputType, seed: int = ...) -> bytes: ...
|
||||
def xxh3_64_hexdigest(args: _InputType, seed: int = ...) -> str: ...
|
||||
def xxh3_64_intdigest(args: _InputType, seed: int = ...) -> int: ...
|
||||
|
||||
def xxh3_128_digest(args: _InputType, seed: int = ...) -> bytes: ...
|
||||
def xxh3_128_hexdigest(args: _InputType, seed: int = ...) -> str: ...
|
||||
def xxh3_128_intdigest(args: _InputType, seed: int = ...) -> int: ...
|
||||
|
||||
xxh64_digest = xxh3_64_digest
|
||||
xxh64_hexdigest = xxh3_64_hexdigest
|
||||
xxh64_intdigest = xxh3_64_intdigest
|
||||
|
||||
xxh128_digest = xxh3_128_digest
|
||||
xxh128_hexdigest = xxh3_128_hexdigest
|
||||
xxh128_intdigest = xxh3_128_intdigest
|
||||
Binary file not shown.
Binary file not shown.
BIN
venv/Lib/site-packages/xxhash/_xxhash.cp311-win_amd64.pyd
Normal file
BIN
venv/Lib/site-packages/xxhash/_xxhash.cp311-win_amd64.pyd
Normal file
Binary file not shown.
0
venv/Lib/site-packages/xxhash/py.typed
Normal file
0
venv/Lib/site-packages/xxhash/py.typed
Normal file
3
venv/Lib/site-packages/xxhash/version.py
Normal file
3
venv/Lib/site-packages/xxhash/version.py
Normal file
@@ -0,0 +1,3 @@
|
||||
VERSION = "3.6.0"
|
||||
#: Deprecated, will be removed in the next major release
|
||||
VERSION_TUPLE = (3, 6, 0)
|
||||
Reference in New Issue
Block a user