Last updated:
0 purchases
pyipfscid 0.1.0
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)
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.