.. image:: https://img.shields.io/pypi/v/ipld.svg :target: https://pypi.python.org/pypi/ipld .. image:: https://img.shields.io/travis/bigchaindb/py-ipld.svg :target: https://travis-ci.org/bigchaindb/py-ipld .. image:: https://img.shields.io/codecov/c/github/bigchaindb/py-ipld/master.svg :target: https://codecov.io/github/bigchaindb/py-ipld?branch=master
| Python implementation of the IPLD specification <https://github.com/ipfs/specs/tree/master/ipld>
_.
For TODOs, see: #1 <https://github.com/bigchaindb/py-ipld/issues/1>
.. code-block:: bash
$ pip install ipld
In the Python REPL:
.. code-block:: python
>>> 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:.
Only relevant, if you want to help developing.
.. code-block:: bash
$ pip install -e .[dev]
$ py.test -v
Thanks to the contributors <https://github.com/bigchaindb/bigchaindb/graphs/contributors>
_
over at BigchainDB for letting me take their setup structure.