No project description provided
Project description
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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
py_ipfs_cid-0.1.0.tar.gz
(794.9 kB
view hashes)
Built Distribution
Close
Hashes for py_ipfs_cid-0.1.0-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2287e15797fea07b1fde782f429e41d1a7fe7a7d39f538c9c1c7204fd467b3a5 |
|
MD5 | 4c500d046ab1bd113bfa3e915903feae |
|
BLAKE2b-256 | 3868ea8fbb748530f0ab63a2f21e45225f7f6bff9e4f809ef95120e5a44a0286 |