{ "info": { "author": "Dhruv Baldawa", "author_email": "dhruv@dhruvb.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6" ], "description": "py-multicodec\n-------------\n\n.. image:: https://img.shields.io/pypi/v/py-multicodec.svg\n :target: https://pypi.python.org/pypi/py-multicodec\n\n.. image:: https://img.shields.io/travis/multiformats/py-multicodec.svg?branch=master\n :target: https://travis-ci.org/multiformats/py-multicodec?branch=master\n\n.. image:: https://codecov.io/gh/multiformats/py-multicodec/branch/master/graph/badge.svg\n :target: https://codecov.io/gh/multiformats/py-multicodec\n\n.. image:: https://readthedocs.org/projects/py-multicodec/badge/?version=stable\n :target: https://py-multicodec.readthedocs.io/en/stable/?badge=stable\n :alt: Documentation Status\n\n\n`Multicodec `_ implementation in Python\n\n``multicodec`` *is a self-describing multiformat*, it wraps other formats with a tiny bit of self-description.\n\nA multicodec identifier is both a varint and the code identifying the following data, this means that the most\nsignificant bit of every multicodec code is reserved to signal the continuation.\n\nYou can check `the table here `_ for the list of supported codecs by ``py-multicodec``.\n\n* Free software: MIT license\n* Documentation: https://py-multicodec.readthedocs.io.\n* Python versions: 3.5, 3.6\n\n\nInstallation\n============\n\n.. code-block:: shell\n\n $ pip install py-multicodec\n\n\nSample Usage\n============\n\n.. code-block:: python\n\n >>> from multicodec import add_prefix, remove_prefix, get_codec\n >>> # adding a prefix to existing data\n >>> add_prefix('sha2-256', 'EiC5TSe5k00')\n b'\\x12EiC5TSe5k00'\n >>> # removing prefix from prefixed data\n >>> remove_prefix(b'\\x12EiC5TSe5k00')\n EiC5TSe5k00\n >>> # get codec used to prefix the prefixed data\n >>> get_codec(b'\\x12EiC5TSe5k00')\n 'sha2-256'\n\nUpdating the lookup table\n==========================\n\nUpdating the lookup table is done with a script. The source of truth is the\n`multicodec default table `_.\nUpdate the table with running:\n\n.. code-block:: shell\n\n $ curl -X GET https://raw.githubusercontent.com/multiformats/multicodec/master/table.csv | ./tools/update-table.py\n\n\n=======\nHistory\n=======\n\n0.1.3 (2018-10-20)\n------------------\n\n* Handle exception when the varint is invalid\n\n0.1.0 (2017-09-03)\n------------------\n\n* First release on PyPI.\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/multiformats/py-multicodec", "keywords": "multicodec", "license": "MIT license", "maintainer": "", "maintainer_email": "", "name": "py-multicodec", "package_url": "https://pypi.org/project/py-multicodec/", "platform": "", "project_url": "https://pypi.org/project/py-multicodec/", "project_urls": { "Homepage": "https://github.com/multiformats/py-multicodec" }, "release_url": "https://pypi.org/project/py-multicodec/0.2.1/", "requires_dist": null, "requires_python": "", "summary": "Multicodec implementation in Python", "version": "0.2.1" }, "last_serial": 5630003, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "fa86f0686e3e9412c6f1222f722d0720", "sha256": "739d883b56915df5fa508476ea7f4256a138ecec0b152b3568f3db967008aa99" }, "downloads": -1, "filename": "py_multicodec-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "fa86f0686e3e9412c6f1222f722d0720", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 5346, "upload_time": "2017-09-08T20:17:48", "url": "https://files.pythonhosted.org/packages/30/cd/827f63fa3339db245c01cc105cad1756e38c6637d7848e709d19a43bc40b/py_multicodec-0.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6559362e06e904ee569437de7833da1b", "sha256": "157f15d01e5b9785c0d7bc4a734a53773a0b9ab9f561020a0bde6868771f83ad" }, "downloads": -1, "filename": "py-multicodec-0.1.1.tar.gz", "has_sig": false, "md5_digest": "6559362e06e904ee569437de7833da1b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13122, "upload_time": "2017-09-08T20:17:35", "url": "https://files.pythonhosted.org/packages/7e/55/51aad6ca73120a8786af85383ff5f7ff89fc743a9c6576b0bdad06593d1e/py-multicodec-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "071feffdabcf11a2af8beb143d718424", "sha256": "6aca08fbd3dde2e0d39fe13f88c2015c6b6c88354fc098dd32d3cf8bd5f34a03" }, "downloads": -1, "filename": "py_multicodec-0.1.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "071feffdabcf11a2af8beb143d718424", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 6479, "upload_time": "2017-09-15T13:37:52", "url": "https://files.pythonhosted.org/packages/bc/31/2a2f95e3e6ffac3ee5ecc9920afe48cba4185fae97bed289d131c32aed10/py_multicodec-0.1.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "17cf566d2082debc3992233c492f6e4a", "sha256": "fee633dabc5973e3dde2df251340f3311f88e200173c551ab05d607849359c0a" }, "downloads": -1, "filename": "py-multicodec-0.1.2.tar.gz", "has_sig": false, "md5_digest": "17cf566d2082debc3992233c492f6e4a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19136, "upload_time": "2017-09-15T13:37:39", "url": "https://files.pythonhosted.org/packages/f3/7f/39cedf022b4ed2d34e0c1a6c963c4b725197b7d83873f7468ccf5dc17d07/py-multicodec-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "f869ba90bbfc94014e9cfefd70a34e53", "sha256": "1d77fbdf51402d4d144dd8088d1b587193854b02f212b7c3c61fd69914274407" }, "downloads": -1, "filename": "py_multicodec-0.1.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f869ba90bbfc94014e9cfefd70a34e53", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 6593, "upload_time": "2018-10-20T04:50:48", "url": "https://files.pythonhosted.org/packages/06/6d/3c6082c8aabfdbb78320f0658b54a2d874edce012e5e7685db7c9260ac21/py_multicodec-0.1.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1f1f0beaada3f7696b43a1cc5e00b05e", "sha256": "1eb204be1b88e626628210698ab8f6a3dc8189c9dbe38bee0a0f759483633811" }, "downloads": -1, "filename": "py-multicodec-0.1.3.tar.gz", "has_sig": false, "md5_digest": "1f1f0beaada3f7696b43a1cc5e00b05e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20267, "upload_time": "2018-10-20T04:50:40", "url": "https://files.pythonhosted.org/packages/53/23/5fa3b2a3e85fdb8a427aa07c66d963943337741c5bb704a213dcce3eaab2/py-multicodec-0.1.3.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "714726ad3a2d5a0f3d22ac051f258901", "sha256": "55b6bb53088a63e56c434cb11b29795e8805652bac43d50a8f2a9bcf5ca84e1f" }, "downloads": -1, "filename": "py_multicodec-0.2.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "714726ad3a2d5a0f3d22ac051f258901", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 8536, "upload_time": "2019-08-04T07:09:32", "url": "https://files.pythonhosted.org/packages/6c/96/3ffb721c2fe100f6613a0d2db3b4b3229c6de52b279fd41aab0e84ea0725/py_multicodec-0.2.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ac5dbadc49ab0e2a792443467c38651f", "sha256": "83021ffe8c0e272d19b5b86bc5b39efa67c8e9f4735ce6cafdbc1ace767ec647" }, "downloads": -1, "filename": "py-multicodec-0.2.1.tar.gz", "has_sig": false, "md5_digest": "ac5dbadc49ab0e2a792443467c38651f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22542, "upload_time": "2019-08-04T07:09:26", "url": "https://files.pythonhosted.org/packages/77/33/ff388b34002239c367f6544678667efff079d29aabf7e3c4a3ec392310be/py-multicodec-0.2.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "714726ad3a2d5a0f3d22ac051f258901", "sha256": "55b6bb53088a63e56c434cb11b29795e8805652bac43d50a8f2a9bcf5ca84e1f" }, "downloads": -1, "filename": "py_multicodec-0.2.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "714726ad3a2d5a0f3d22ac051f258901", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 8536, "upload_time": "2019-08-04T07:09:32", "url": "https://files.pythonhosted.org/packages/6c/96/3ffb721c2fe100f6613a0d2db3b4b3229c6de52b279fd41aab0e84ea0725/py_multicodec-0.2.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ac5dbadc49ab0e2a792443467c38651f", "sha256": "83021ffe8c0e272d19b5b86bc5b39efa67c8e9f4735ce6cafdbc1ace767ec647" }, "downloads": -1, "filename": "py-multicodec-0.2.1.tar.gz", "has_sig": false, "md5_digest": "ac5dbadc49ab0e2a792443467c38651f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22542, "upload_time": "2019-08-04T07:09:26", "url": "https://files.pythonhosted.org/packages/77/33/ff388b34002239c367f6544678667efff079d29aabf7e3c4a3ec392310be/py-multicodec-0.2.1.tar.gz" } ] }