{ "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", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6" ], "description": "CID (Content IDentifier)\n------------------------\n\n\n.. image:: https://img.shields.io/pypi/v/py-cid.svg\n :target: https://pypi.python.org/pypi/py-cid\n\n.. image:: https://img.shields.io/travis/ipld/py-cid.svg?branch=master\n :target: https://travis-ci.org/ipld/py-cid?branch=master\n\n.. image:: https://codecov.io/gh/ipld/py-cid/branch/master/graph/badge.svg\n :target: https://codecov.io/gh/ipld/py-cid\n\n.. image:: https://readthedocs.org/projects/py-cid/badge/?version=stable\n :target: https://py-cid.readthedocs.io/en/stable/?badge=stable\n :alt: Documentation Status\n\n\nWhat is CID ?\n=============\n\n`CID `_ is a format for referencing content in distributed information systems,\nlike `IPFS `_.\nIt leverages `content addressing `_,\n`cryptographic hashing `_, and\n`self-describing formats `_.\n\nIt is the core identifier used by `IPFS `_ and `IPLD `_.\n\nCID is a self-describing content-addressed identifier.\n\nIt uses cryptographic hashes to achieve content addressing.\n\nIt uses several `multiformats `_ to achieve flexible self-description,\nnamely `multihash `_ for hashes,\n`multicodec `_ for data content\ntypes, and `multibase `_ to encode the CID itself into strings.\n\nSample Usage\n============\n\n.. code-block:: python\n\n >>> from cid import make_cid\n >>> make_cid('QmaozNR7DZHQK1ZcU9p7QdrshMvXqWK6gpu5rmrkPdT3L4')\n CIDv0(version=0, codec=dag-pb, multihash=b\"\\x12 \\xb9M'\\xb9\\x93M>\\x08\\xa5.R\\xd7\\xda}\\xab\\xfa\\xc4\\x84..\")\n\n >>> cid = make_cid('QmaozNR7DZHQK1ZcU9p7QdrshMvXqWK6gpu5rmrkPdT3L4')\n >>> print(cid.version, cid.codec, cid.multihash)\n\n >>> print(cid.encode())\n QmaozNR7DZHQK1ZcU9p7QdrshMvXqWK6gpu5rmrkPdT3L4\n\n >>> str(cid)\n 'QmaozNR7DZHQK1ZcU9p7QdrshMvXqWK6gpu5rmrkPdT3L4'\n\n\nInstallation\n============\n\nStable release\n~~~~~~~~~~~~~~\n\nTo install CID, run this command in your terminal:\n\n.. code-block:: console\n\n $ pip install py-cid\n\nThis is the preferred method to install CID, as it will always install the most recent stable release.\n\nIf you don't have `pip`_ installed, this `Python installation guide`_ can guide\nyou through the process.\n\n.. _pip: https://pip.pypa.io\n.. _Python installation guide: http://docs.python-guide.org/en/latest/starting/installation/\n\nFrom sources\n~~~~~~~~~~~~\n\nThe sources for CID can be downloaded from the `Github repo`_.\n\nYou can either clone the public repository:\n\n.. code-block:: console\n\n $ git clone git://github.com/ipld/py-cid\n\nOr download the `tarball`_:\n\n.. code-block:: console\n\n $ curl -OL https://github.com/ipld/py-cid/tarball/master\n\nOnce you have a copy of the source, you can install it with:\n\n.. code-block:: console\n\n $ python setup.py install\n\n\n.. _Github repo: https://github.com/ipld/py-cid\n.. _tarball: https://github.com/ipld/py-cid/tarball/master\n\nOther info\n==========\n\n* Free software: MIT license\n* Documentation: https://py-cid.readthedocs.io.\n* Python versions: 3.5, 3.6\n\n\nHistory\n-------\n\n0.2.1 (2018-10-20)\n==================\n\n* Fix edge cases with multibase and multihash decoding\n* Added hypothesis tests while verifying CIDs\n\n0.1.5 (2018-10-12)\n==================\n\n* Handle the case where an incorrect base58 encoded value is provided to `make_cid`\n\n\n0.1.0 (2017-09-05)\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/ipld/py-cid", "keywords": "cid", "license": "MIT license", "maintainer": "", "maintainer_email": "", "name": "py-cid", "package_url": "https://pypi.org/project/py-cid/", "platform": "", "project_url": "https://pypi.org/project/py-cid/", "project_urls": { "Homepage": "https://github.com/ipld/py-cid" }, "release_url": "https://pypi.org/project/py-cid/0.3.0/", "requires_dist": null, "requires_python": "", "summary": "Self-describing content-addressed identifiers for distributed systems", "version": "0.3.0" }, "last_serial": 5630924, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "18bcfece04641b306e5f623a331f8520", "sha256": "bc5eb76ff7ba6c1a9ffa1a89cd380adea0a0381946f2afc880f3758019c223f4" }, "downloads": -1, "filename": "py_cid-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "18bcfece04641b306e5f623a331f8520", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 3207, "upload_time": "2017-09-05T17:28:21", "url": "https://files.pythonhosted.org/packages/f9/5a/56227c649c371f1913f449a89a125d0583ef5bd456d202ff72088eb8727c/py_cid-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7aa474d02fd94a7ea65a16a944639cf4", "sha256": "34011af844af4d542cb9eed01bdce2c97cf3e941bee27868a5ba474bd0b16d96" }, "downloads": -1, "filename": "py-cid-0.1.0.tar.gz", "has_sig": false, "md5_digest": "7aa474d02fd94a7ea65a16a944639cf4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11224, "upload_time": "2017-09-05T17:28:08", "url": "https://files.pythonhosted.org/packages/c0/90/498ca6ac084c4456aaafc6289cc35cd7a3adb6fdbc83ad710dc54612c0a1/py-cid-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "41dcb2d9a364463da6bfc4bb9265c815", "sha256": "07ff314f81ab9e6825cd8a0c8f00e2064fa593f1907f67b695425e7311d6a9dd" }, "downloads": -1, "filename": "py_cid-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "41dcb2d9a364463da6bfc4bb9265c815", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 7537, "upload_time": "2017-09-09T13:38:57", "url": "https://files.pythonhosted.org/packages/9c/9c/dceed546aed531ebdb8f0ec862d1d082777b0698965120936d644a9f5f12/py_cid-0.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7c232a158642264c7859694b567c2efa", "sha256": "3274b27d8938beca5e4ae5cf4a5ba493b5fcba0b96bdd5c4c3a5ddaf587088eb" }, "downloads": -1, "filename": "py-cid-0.1.1.tar.gz", "has_sig": false, "md5_digest": "7c232a158642264c7859694b567c2efa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21840, "upload_time": "2017-09-09T13:38:43", "url": "https://files.pythonhosted.org/packages/9c/a8/bb1b1957da3b67961bd3ec19a2cff7d4e692fc694fbee51c6250adb5c0b5/py-cid-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "d157ed9fd6ed107b0e063949b1071d58", "sha256": "0cfabb9282927938ca62a5db2b5c5ef79d0ae0438716298c60de0b1afd383a92" }, "downloads": -1, "filename": "py_cid-0.1.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "d157ed9fd6ed107b0e063949b1071d58", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 7508, "upload_time": "2017-09-09T16:38:23", "url": "https://files.pythonhosted.org/packages/c1/7c/2ad0530ebcf064d679fd0a1ceddb833813ed2fc5a2fb5d6bf954ea688365/py_cid-0.1.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "bfcba792e7fc1c3dd71b92d357d7e52f", "sha256": "fe524d4052ee46f6d9960e75242aaa45f5639d018d87ba02912265ec288d464d" }, "downloads": -1, "filename": "py-cid-0.1.2.tar.gz", "has_sig": false, "md5_digest": "bfcba792e7fc1c3dd71b92d357d7e52f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21823, "upload_time": "2017-09-09T16:38:10", "url": "https://files.pythonhosted.org/packages/ac/e9/fcf67874614f0eba3b2e936a38c64bcca97c73e9981d3614d694d1099316/py-cid-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "67e1561bf0974091f3077b4b7c26cfc5", "sha256": "71940a55ba31373a16ee77470e1670de2e4ada767771e24014502836e49322a9" }, "downloads": -1, "filename": "py_cid-0.1.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "67e1561bf0974091f3077b4b7c26cfc5", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 7506, "upload_time": "2017-09-15T13:42:39", "url": "https://files.pythonhosted.org/packages/12/5d/17835ae054fafe679f1abe4bf13d830af765cd682fc2e694c4e4690077a8/py_cid-0.1.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "390e1f5a9fecb0a14122ec2c599b3d0a", "sha256": "bb393bdc6b4e0a692f7b5c78c10baa92cc4885517d8d3c195a55487c5eb873e1" }, "downloads": -1, "filename": "py-cid-0.1.3.tar.gz", "has_sig": false, "md5_digest": "390e1f5a9fecb0a14122ec2c599b3d0a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21833, "upload_time": "2017-09-15T13:42:26", "url": "https://files.pythonhosted.org/packages/38/35/69f1515bd69b6caeb5834fd8dfe307074df8a4e9a7040dc779e574421b9a/py-cid-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "6a5b6d2622000c07c687322b4942e18d", "sha256": "f403c7fb7dddd5e80795272a31503875550b4d80035f3639e1f431ca0e5c8c65" }, "downloads": -1, "filename": "py_cid-0.1.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "6a5b6d2622000c07c687322b4942e18d", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 7507, "upload_time": "2017-09-15T13:47:22", "url": "https://files.pythonhosted.org/packages/f8/71/5eb3b9178d7cc41b317f632645b13c59bb74f2b4fe624adfbab8e3dbb904/py_cid-0.1.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0b7ad95e24c88311363fd3531d3b3b96", "sha256": "4c0829ebbad79bd017948c0790c192a6c389d7f06f54d0bd4f057ffb360a064e" }, "downloads": -1, "filename": "py-cid-0.1.4.tar.gz", "has_sig": false, "md5_digest": "0b7ad95e24c88311363fd3531d3b3b96", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21823, "upload_time": "2017-09-15T13:47:09", "url": "https://files.pythonhosted.org/packages/05/74/4238698fdacaf9ada65c4ce82c5709881ce63e12b358413207e517cfcb98/py-cid-0.1.4.tar.gz" } ], "0.1.5": [], "0.1.6": [ { "comment_text": "", "digests": { "md5": "e958dd2acb5b335a2567f18235f3d428", "sha256": "35765c05c5b2f5d86681e1c930d03931988eea7777bf703dc9c365f355a9b660" }, "downloads": -1, "filename": "py_cid-0.1.6-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e958dd2acb5b335a2567f18235f3d428", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 7557, "upload_time": "2018-10-12T15:26:28", "url": "https://files.pythonhosted.org/packages/82/d9/0ebb7878758b7d7381408a2429aa51719f5ac1305fa0b9241635e9748def/py_cid-0.1.6-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f611711484c81df4f19e5bf565ab4005", "sha256": "7ec44c1607a042dac4deaadf06f59cfd8cf0da15ce667833617bc9473bbaa21d" }, "downloads": -1, "filename": "py-cid-0.1.6.tar.gz", "has_sig": false, "md5_digest": "f611711484c81df4f19e5bf565ab4005", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23174, "upload_time": "2018-10-12T15:26:25", "url": "https://files.pythonhosted.org/packages/40/3f/d7de206fdaa56deb4a8498546a41566d02199651ba315176b67387ee2b87/py-cid-0.1.6.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "7afa48c5d99eba789f14f5e8ff61774e", "sha256": "eff5476d9a8151061277313574382f56a7838d2798d4490920263cfe5e6d9364" }, "downloads": -1, "filename": "py_cid-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "7afa48c5d99eba789f14f5e8ff61774e", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 7604, "upload_time": "2018-10-19T19:31:19", "url": "https://files.pythonhosted.org/packages/d9/c8/28993a0639a6c02886cc60661b897ea433e2ee378a3bfd7d53dbba7559db/py_cid-0.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7af51da39f29deb3e02948c18c5d4f2b", "sha256": "7d1bb46f343a42004120b5645c44d45a30a0ee0e051b7396ccb45a7c7f89f1eb" }, "downloads": -1, "filename": "py-cid-0.2.0.tar.gz", "has_sig": false, "md5_digest": "7af51da39f29deb3e02948c18c5d4f2b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23599, "upload_time": "2018-10-19T19:31:11", "url": "https://files.pythonhosted.org/packages/27/41/cbefd09ceea001c0e08e919abb71b59a4af4bc0cfdc0847f4fa960d20f36/py-cid-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "e8b5134ba3974f1a1679e4225ed25bcb", "sha256": "2412d4ffa9ef55853d4c63eef80ff95f4ac41a0ed94ae9a9cd2c35a7092588fd" }, "downloads": -1, "filename": "py_cid-0.2.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e8b5134ba3974f1a1679e4225ed25bcb", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 7891, "upload_time": "2018-10-20T06:37:45", "url": "https://files.pythonhosted.org/packages/eb/e6/fc89b0ad9e4903da17d1dab7da2a8be25a1ed621a0426fbd961110cf10c0/py_cid-0.2.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9022b6a55bdc1dae57da75f532e08710", "sha256": "15434f76ea3fbfc49fd7da51f3aa0e23d2e40a3ce3c5fb22a0c3fc5a41fc1569" }, "downloads": -1, "filename": "py-cid-0.2.1.tar.gz", "has_sig": false, "md5_digest": "9022b6a55bdc1dae57da75f532e08710", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 24140, "upload_time": "2018-10-20T06:37:36", "url": "https://files.pythonhosted.org/packages/25/7f/435ec21a1ff1a47e882be16b1fda95c024d09b5f9ad618612a317aaaf959/py-cid-0.2.1.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "e50e179cd749fdaf1bb678b7ce6744a0", "sha256": "7c48a6ee0bc50fd114d4b24849cd689a31d3ad5bdf8fa073bf68f846fd58c5da" }, "downloads": -1, "filename": "py_cid-0.3.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e50e179cd749fdaf1bb678b7ce6744a0", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 7893, "upload_time": "2019-08-04T15:44:19", "url": "https://files.pythonhosted.org/packages/11/72/8fd8ac6e79b00d171499a1808d5af99c109d9780ca4982ff69f1baf784e0/py_cid-0.3.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "665c23e5787d6de21cc0427ffe891af4", "sha256": "22f432cc6fb68d12a9c35dbdc92c95484fc49e31dfcb9e0efb0082233c5394e3" }, "downloads": -1, "filename": "py-cid-0.3.0.tar.gz", "has_sig": false, "md5_digest": "665c23e5787d6de21cc0427ffe891af4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 24147, "upload_time": "2019-08-04T15:44:08", "url": "https://files.pythonhosted.org/packages/b7/65/1d57b5519b4201f39bf4a9cc3e2d554f25446c56df88c0e9abbffe28cdbe/py-cid-0.3.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e50e179cd749fdaf1bb678b7ce6744a0", "sha256": "7c48a6ee0bc50fd114d4b24849cd689a31d3ad5bdf8fa073bf68f846fd58c5da" }, "downloads": -1, "filename": "py_cid-0.3.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e50e179cd749fdaf1bb678b7ce6744a0", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 7893, "upload_time": "2019-08-04T15:44:19", "url": "https://files.pythonhosted.org/packages/11/72/8fd8ac6e79b00d171499a1808d5af99c109d9780ca4982ff69f1baf784e0/py_cid-0.3.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "665c23e5787d6de21cc0427ffe891af4", "sha256": "22f432cc6fb68d12a9c35dbdc92c95484fc49e31dfcb9e0efb0082233c5394e3" }, "downloads": -1, "filename": "py-cid-0.3.0.tar.gz", "has_sig": false, "md5_digest": "665c23e5787d6de21cc0427ffe891af4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 24147, "upload_time": "2019-08-04T15:44:08", "url": "https://files.pythonhosted.org/packages/b7/65/1d57b5519b4201f39bf4a9cc3e2d554f25446c56df88c0e9abbffe28cdbe/py-cid-0.3.0.tar.gz" } ] }