base36py
base36py is a lightweight Python library for encoding and decoding numbers between base10 and base36. It provides functions to convert both integer and floating-point numbers to base36 strings and vice versa, supporting precise fractional conversions.
Features
- Convert integers to base36 strings.
- Convert floating-point numbers to base36 strings with adjustable precision.
- Decode base36 strings back to integers or floating-point numbers.
- Easy to use and integrate into existing projects.
Installation
You can install base36py via pip:
pip install base36py
Usage
from base36py import encode, decode
encoded = encode(1234.5678, precision=8)
print("Encoded:", encoded)
decoded = decode(encoded, precision=8)
print("Decoded:", decoded)
Metadata
Release files for base36py 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| base36py-0.2.0.tar.gz | 3.1 kB | Without provenance | Details for base36py-0.2.0.tar.gz |
Release files / base36py-0.2.0.tar.gz
| Download URL | base36py-0.2.0.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
28129fc6b886ced5e6b88c634e703238e79d1975baca25b3cd3f4cd238c32c4e
|
|
BLAKE2b-256 checksum How to use checksums |
0e00fbd6989ab2f62d0c37fd32efb45c1efd680ba48707c3996a6dd2032a3af6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.11.8
|
Security for base36py 0.2.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.