Skip to main content

Python implementation of the multihash specification

Project description

This is an implementation of the multihash specification in Python. The main component in the module is the Multihash class, a named tuple that represents a hash function and a digest created with it, with extended abilities to work with hashlib-compatible hash functions, verify the integrity of data, and encode itself to a byte string in the binary format described in the specification (possibly ASCII-encoded). The decode() function can be used for the inverse operation, i.e. converting a (possibly ASCII-encoded) byte string into a Multihash object.

Please see the docstring in the multihash module for more information.

This package requires at least Python 3.4.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pymultihash-0.6.0.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

pymultihash-0.6.0-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

Details for the file pymultihash-0.6.0.tar.gz.

File metadata

File hashes

Hashes for pymultihash-0.6.0.tar.gz
Algorithm Hash digest
SHA256 da0b8cff9151b3679c2e8a2a79485ba82c541369c80fb1112fe3009df951cfe5
MD5 af3dcfdb8defd400b014f72377056734
BLAKE2b-256 63a7a70ecc98f5866754e9e6f9f1b0b7c1853e2a1933cf97ab42a632c89a1a31

See more details on using hashes here.

File details

Details for the file pymultihash-0.6.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pymultihash-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7eefbcfeae45a843b215bc75404457af46e59a2264ff5ca3c2c7d91c58430ce2
MD5 c8e1e764cad4706930efd2abe0be7e1e
BLAKE2b-256 fe55e81fd99ad27accfd498050ba11182e228a6b6a2d0f93eca143e7a8a128db

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page