FaSt_PUC
FaSt_PUC is a pretty unit converter. It creates a string with suitable SI-prefix.
Written by Fabian Stutzki, fast@fast-apps.de
licensed under MIT
Usage
The package has to be imported:
import fast_puc
It can be used very easily:
puc(1.0001) # "1"
puc(1.0001, "m") # "1m"
puc(0.991e-6, "s") # "991ns"
puc(1030e-9, "m") # "1.03µm"
Unit supports some special characters:
puc(1.0001, " m") # "1 m" # space
puc(1.0001, "_m") # "1_m" # underscore
puc(0.911, "%") # "91.1%" # percent
puc(1001, "dB") # "30dB" # conversion to dB
puc(1030e-9, "!m") # "1p03um" # file name compatible
Metadata
Release files for fast-puc 0.1.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 | |
|---|---|---|---|
| fast_puc-0.1.0.tar.gz | 3.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fast_puc-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.1 kB
Release files / fast_puc-0.1.0.tar.gz
| Download URL | fast_puc-0.1.0.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3a36692206a5ab35b4e57392e72a5961120fb9ae71daf2d9ada8af76153a8c13
|
|
BLAKE2b-256 checksum How to use checksums |
600ce93335e5d37d681b7b56ee0effdd2ac8e8353e066c5977d28342476f0a03
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.12.2 Darwin/23.4.0
|
Release files / fast_puc-0.1.0-py3-none-any.whl
| Download URL | fast_puc-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5168dcf10ba57e33482b840b58cccb12c37ffbe094b902db14a2c945d5518a3e
|
|
BLAKE2b-256 checksum How to use checksums |
bf8c21ef9f0bf0463244d0993081067811ad76a4f42bf9a9d10c9094d2b9bcf1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.12.2 Darwin/23.4.0
|