Skip to main content
https://img.shields.io/pypi/v/py-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

This is a Work-in-Progress. For TODOs, see: #1

Installation

$ pip install ipld  # (not yet)

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.

Download files

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

Source Distribution

ipld-0.0.1.tar.gz (3.3 kB view details)

Uploaded Source

File details

Details for the file ipld-0.0.1.tar.gz.

File metadata

  • Download URL: ipld-0.0.1.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ipld-0.0.1.tar.gz
Algorithm Hash digest
SHA256 e82c1ca95c9b05020de9c1c7b37c50e382843880b48d43a0f59558df93917343
MD5 6edcd10fcbcb7602579822b2c63b1bf9
BLAKE2b-256 51b48ebfeba92daa4c7f583b50bc8f92a329cedc8827ac23aba901b9e7374b46

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.1 This release

1 file

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