Skip to main content
https://img.shields.io/pypi/v/ipld.svg https://img.shields.io/travis/bigchaindb/py-ipld.svg https://img.shields.io/codecov/c/github/bigchaindb/py-ipld/master.svg

py-ipld

Python implementation of the IPLD specification.

Status

For TODOs, see: #1 <https://github.com/bigchaindb/py-ipld/issues/1>

Installation

$ pip install ipld

Usage

In the Python REPL:

>>> from ipld import marshal, multihash, unmarshal
>>>
>>> file = {
... 'name': 'hello.txt',
... 'size': 11
... }
>>>
>>> marshalled = marshal(file)
>>>
>>> multihash(marshalled)
'QmQtX5JVbRa25LmQ1LHFChkXWW5GaWrp7JpymN4oPuBSmL'
>>>
>>> unmarshal(marshal(file)) == file
True

That’s it. No readthedocs, no private methods :boom:.

Tests

Only relevant, if you want to help developing.

$ pip install -e .[dev]
$ py.test -v

Acknowledgements

Thanks to the contributors over at BigchainDB for letting me take their setup structure.

Metadata

Release files for planetmint-ipld 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for planetmint-ipld 0.0.3
File Size Uploaded Provenance
planetmint-ipld-0.0.3.tar.gz 4.1 kB Without provenance Details

Release files / planetmint-ipld-0.0.3.tar.gz

Download URL planetmint-ipld-0.0.3.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
6effc20e671e01366cb579663809759c6c4ea1ec8e6bcb9278768cd3f7f64243
BLAKE2b-256 checksum
How to use checksums
148190fc4f86c8c0b7a52a2ca796082434eacaaddc83607b43a9ac5871fe86fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Security for planetmint-ipld 0.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.3 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page