py-multihash-3.0.0


توضیحات

Multihash implementation in Python
ویژگی مقدار
سیستم عامل -
نام فایل py-multihash-3.0.0
نام py-multihash
نسخه کتابخانه 3.0.0
نگهدارنده []
ایمیل نگهدارنده []
نویسنده -
ایمیل نویسنده Dhruv Baldawa <dhruv@dhruvb.com>
آدرس صفحه اصلی -
آدرس اینترنتی https://pypi.org/project/py-multihash/
مجوز -
============ py-multihash ============ .. image:: https://img.shields.io/pypi/v/py-multihash.svg :target: https://pypi.python.org/pypi/py-multihash .. image:: https://github.com/multiformats/py-multihash/actions/workflows/tox.yml/badge.svg :target: https://github.com/multiformats/py-multihash/actions .. image:: https://readthedocs.org/projects/multihash/badge/?version=latest :target: https://multihash.readthedocs.io/en/latest/?badge=latest :alt: Documentation Status Multihash implementation in Python * Free software: MIT license * Documentation: https://multihash.readthedocs.io. * Python versions: Python 3.10, 3.11, 3.12, 3.13, 3.14 Features -------- * Support for 125+ hash functions including: * **Cryptographic hashes**: SHA-1, SHA-2 (224/256/384/512), SHA-3, BLAKE2b, BLAKE2s, BLAKE3 * **Variable-length hashes**: SHAKE-128, SHAKE-256 * **Non-cryptographic hashes**: MurmurHash3 (32-bit and 128-bit) * **Specialized hashes**: Double-SHA-256 (Bitcoin), Keccak, and more * **BLAKE2 variants**: Full range of digest sizes (8-512 bits for BLAKE2b, 8-256 bits for BLAKE2s) * Streaming hash computation for large files * Hash truncation support * JSON serialization * MultihashSet collection type * Go-compatible API (``sum()``, ``digest()``, ``verify()``) Quick Start ----------- .. code-block:: python from multihash import digest, sum, Func # Using modern hash functions mh = digest(b"hello world", "blake3") # Using MurmurHash3 for fast, non-cryptographic hashing mh = digest(b"data", "murmur3-128") # Using BLAKE2b with custom digest size mh = digest(b"data", "blake2b-256") # Go-compatible API mh = sum(b"hello world", Func.sha2_256) print(mh.encode('hex')) For more examples and usage, see the documentation.


نیازمندی

مقدار نام
- varint<2.0,>=1.0.2
- six<2.0,>=1.10.0
- morphys<2.0,>=1.0
- base58<3.0,>=1.0.2
- blake3<2.0,>=0.3.0
- mmh3<6.0,>=3.0.0
xtr Sphinx>=5.0.0;
xtr build>=0.9.0;
xtr bump-my-version>=1.2.0;
xtr mypy;
xtr pre-commit;
xtr pytest;
xtr pytest-cov;
xtr pytest-runner;
xtr ruff;
xtr towncrier<25,>=24;
xtr tox>=4.10.0;
xtr twine;
xtr watchdog>=3.0.0;
xtr wheel>=0.31.0;


زبان مورد نیاز

مقدار نام
<4.0,>=3.10 Python


نحوه نصب


نصب پکیج whl py-multihash-3.0.0:

    pip install py-multihash-3.0.0.whl


نصب پکیج tar.gz py-multihash-3.0.0:

    pip install py-multihash-3.0.0.tar.gz