Description
An implementation of Crockford's Base32 encoding, including checksums. Intended for use on unique resource identifiers in APIs. Does not apply automatic conversions on decode input as described in "API Design Patterns" by JJ Geewax p.92.
Created using pybind11 and setuptools.
Usage
encode(string input [, checksum = False])
import crockford32 as cr32
encode_input_one = "Hello"
encode_input_two = "Tree"
a = cr32.encode(encode_input_one)
b = cr32.encode(encode_input_two, True)
decode(string input [, checksum = False])
throws ValueError - invalid input characters
throws ValueError - invalid checksum (requires checksum=True)
import crockford32 as cr32
decode_input_one = "91JPRV3F"
decode_input_two = "AHS6AS8U"
try:
a = cr32.decode(decode_input_one)
except ValueError:
pass
try:
b = cr32.decode(decode_input_two, True)
except ValueError:
pass
Metadata
Release files for crockford32 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| crockford32-1.0.2-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl | CPython 3.10 | CPython 3.10 | Linux glibc 2.12+ x86-64 | Details for crockford32-1.0.2-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl |
Release files / crockford32-1.0.2-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
| Download URL | crockford32-1.0.2-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl |
|---|---|
| Size | 89.1 kB |
| Tags | CPython 3.10 Linux glibc 2.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
f1c7976f1c59d4546452b4a266b16d8c81dd7bc665d6033396326e4a4314cd26
|
|
BLAKE2b-256 checksum How to use checksums |
1bba0cb74b3bad7f3503f91dcafe750a676ab9bc4e36c79bb4bf9cb9b45124e3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.12
|
Security for crockford32 1.0.2
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.