Skip to main content

Python IPFS CID

Computes IPFS CIDs from Python code.

This library computes the IPFS DAG of the input data and then returns the CID of the root node. This returns the same CID as would be computed by ipfs add <file>.

Example

from py_ipfs_cid import compute_cid
cid: str = compute_cid(b"1234")  # Returns QmTPqcLhVnCtjoYuCZwPzfXcFrUviiPComTepHfEEaGf7g

Current limitations

  • Only supports CID v0
  • Only supports files, not directories
  • Only supports the default IPFS block size (256 KiB)

Metadata

Release files for py-ipfs-cid 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for py-ipfs-cid 0.1.0
File Size Uploaded Provenance Actions
py_ipfs_cid-0.1.0.tar.gz 794.9 kB Without provenance Details for py_ipfs_cid-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for py-ipfs-cid 0.1.0
File Interpreter ABI Platform Actions
py_ipfs_cid-0.1.0-cp38-cp38-manylinux_2_28_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.28+ x86-64 Details for py_ipfs_cid-0.1.0-cp38-cp38-manylinux_2_28_x86_64.whl

Total release size: 1.0 MB

Release files / py_ipfs_cid-0.1.0.tar.gz

Download URL py_ipfs_cid-0.1.0.tar.gz
Size 794.9 kB
Tags Source
SHA-256 checksum
How to use checksums
91ff55a052e3c094cc2d6dfe2ead1854deabebf51b4917b99efdde6f91f98bd2
BLAKE2b-256 checksum
How to use checksums
2e14af112d8c672b6227704f0ac9ce92aae83517312f177edec97ffa3f2b0dd1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.13.6

Release files / py_ipfs_cid-0.1.0-cp38-cp38-manylinux_2_28_x86_64.whl

Download URL py_ipfs_cid-0.1.0-cp38-cp38-manylinux_2_28_x86_64.whl
Size 216.6 kB
Tags CPython 3.8 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
2287e15797fea07b1fde782f429e41d1a7fe7a7d39f538c9c1c7204fd467b3a5
BLAKE2b-256 checksum
How to use checksums
3868ea8fbb748530f0ab63a2f21e45225f7f6bff9e4f809ef95120e5a44a0286
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.13.6

Security for py-ipfs-cid 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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