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 details)
Built Distribution
File details
Details for the file py_ipfs_cid-0.1.0.tar.gz
.
File metadata
- Download URL: py_ipfs_cid-0.1.0.tar.gz
- Upload date:
- Size: 794.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.13.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91ff55a052e3c094cc2d6dfe2ead1854deabebf51b4917b99efdde6f91f98bd2 |
|
MD5 | c842fbffd4da7db66196f3cad14266f2 |
|
BLAKE2b-256 | 2e14af112d8c672b6227704f0ac9ce92aae83517312f177edec97ffa3f2b0dd1 |
File details
Details for the file py_ipfs_cid-0.1.0-cp38-cp38-manylinux_2_28_x86_64.whl
.
File metadata
- Download URL: py_ipfs_cid-0.1.0-cp38-cp38-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 216.6 kB
- Tags: CPython 3.8, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.13.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2287e15797fea07b1fde782f429e41d1a7fe7a7d39f538c9c1c7204fd467b3a5 |
|
MD5 | 4c500d046ab1bd113bfa3e915903feae |
|
BLAKE2b-256 | 3868ea8fbb748530f0ab63a2f21e45225f7f6bff9e4f809ef95120e5a44a0286 |