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.5.0.tar.gz (9.6 kB view details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for pymultihash-0.5.0.tar.gz
Algorithm Hash digest
SHA256 4aa9affed7cb07669601a86f9418d79b48c608a245b5e50553ebfdaa2186f4fe
MD5 ac81ba89468558f1e86663c67b8e50b6
BLAKE2b-256 7c04ad3e6132c250bce930e6a0502b7b2a516e86ac59f1f5785440f5fa913004

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