{"id":30578584,"url":"https://github.com/ipld/py-cid","last_synced_at":"2025-08-29T03:47:12.926Z","repository":{"id":41233361,"uuid":"102510603","full_name":"ipld/py-cid","owner":"ipld","description":"Python implementation of the CID specification","archived":false,"fork":false,"pushed_at":"2025-08-27T02:35:06.000Z","size":108,"stargazers_count":36,"open_issues_count":1,"forks_count":21,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-08-27T11:00:29.072Z","etag":null,"topics":["cid","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ipld.png","metadata":{"files":{"readme":"README.rst","changelog":"HISTORY.rst","contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS.rst","dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-09-05T17:26:43.000Z","updated_at":"2025-08-25T00:05:58.000Z","dependencies_parsed_at":"2025-08-27T04:38:02.837Z","dependency_job_id":"355ef281-e2de-4183-94bd-d1b54938251c","html_url":"https://github.com/ipld/py-cid","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/ipld/py-cid","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipld%2Fpy-cid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipld%2Fpy-cid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipld%2Fpy-cid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipld%2Fpy-cid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ipld","download_url":"https://codeload.github.com/ipld/py-cid/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipld%2Fpy-cid/sbom","scorecard":{"id":493938,"data":{"date":"2025-08-11","repo":{"name":"github.com/ipld/py-cid","commit":"d157ca6d30292ba13b178f47be740d2b4d67fbaa"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.9,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":1,"reason":"Found 2/12 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"project is archived","details":["Warn: Repository is archived."],"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":0,"reason":"10 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2022-238 / GHSA-h3qr-fjhm-jphw","Warn: Project is vulnerable to: GHSA-3ww4-gg4f-jr7f","Warn: Project is vulnerable to: GHSA-5cpq-8wj7-hf2v","Warn: Project is vulnerable to: GHSA-9v9h-cgj8-h64p","Warn: Project is vulnerable to: PYSEC-2023-254 / GHSA-jfhm-5ghh-2f97","Warn: Project is vulnerable to: GHSA-jm77-qphf-c4w8","Warn: Project is vulnerable to: GHSA-v8gr-m533-ghj9","Warn: Project is vulnerable to: GHSA-w7pp-m8wf-vj6r","Warn: Project is vulnerable to: GHSA-x4qr-2fvf-3mr5","Warn: Project is vulnerable to: PYSEC-2022-43017 / GHSA-qwmp-2cf2-g9g6"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 25 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-19T19:57:31.518Z","repository_id":41233361,"created_at":"2025-08-19T19:57:31.518Z","updated_at":"2025-08-19T19:57:31.518Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272621049,"owners_count":24965646,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-29T02:00:10.610Z","response_time":87,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cid","python"],"created_at":"2025-08-29T03:46:48.366Z","updated_at":"2025-08-29T03:47:12.903Z","avatar_url":"https://github.com/ipld.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"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 \u003chttps://github.com/ipld/cid\u003e`_ is a format for referencing content in distributed information systems,\nlike `IPFS \u003chttps://ipfs.io\u003e`_.\nIt leverages `content addressing \u003chttps://en.wikipedia.org/wiki/Content-addressable_storage\u003e`_,\n`cryptographic hashing \u003chttps://simple.wikipedia.org/wiki/Cryptographic_hash_function\u003e`_, and\n`self-describing formats \u003chttps://github.com/multiformats/multiformats\u003e`_.\n\nIt is the core identifier used by `IPFS \u003chttps://ipfs.io\u003e`_ and `IPLD \u003chttps://ipld.io\u003e`_.\n\nCID is a self-describing content-addressed identifier.\n\nIt uses cryptographic hashes to achieve content addressing.\n\nIt uses several `multiformats \u003chttps://github.com/multiformats/multiformats\u003e`_ to achieve flexible self-description,\nnamely `multihash \u003chttps://github.com/multiformats/multihash\u003e`_ for hashes,\n`multicodec \u003chttps://github.com/multiformats/multicodec\u003e`_ for data content\ntypes, and `multibase \u003chttps://github.com/multiformats/multibase\u003e`_ to encode the CID itself into strings.\n\nSample Usage\n============\n\n.. code-block:: python\n\n    \u003e\u003e\u003e from cid import make_cid\n    \u003e\u003e\u003e make_cid('QmaozNR7DZHQK1ZcU9p7QdrshMvXqWK6gpu5rmrkPdT3L4')\n    CIDv0(version=0, codec=dag-pb, multihash=b\"\\x12 \\xb9M'\\xb9\\x93M\u003e\\x08\\xa5.R\\xd7\\xda}\\xab\\xfa\\xc4\\x84..\")\n\n    \u003e\u003e\u003e cid = make_cid('QmaozNR7DZHQK1ZcU9p7QdrshMvXqWK6gpu5rmrkPdT3L4')\n    \u003e\u003e\u003e print(cid.version, cid.codec, cid.multihash)\n\n    \u003e\u003e\u003e print(cid.encode())\n    QmaozNR7DZHQK1ZcU9p7QdrshMvXqWK6gpu5rmrkPdT3L4\n\n    \u003e\u003e\u003e 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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fipld%2Fpy-cid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fipld%2Fpy-cid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fipld%2Fpy-cid/lists"}