Skip to main content

FaSt_PUC

FaSt_PUC is a pretty unit converter. It creates a string with suitable metric prefix.

Written by Fabian Stutzki, fast@fast-apps.de

Licensed under MIT

Usage

Import the package and call the main function:

from fast_puc import puc

puc(1.0001)  # "1"
puc(1.0001, "m")  # "1m"
puc(0.991e-6, "s")  # "991ns"
puc(1030e-9, "m")  # "1.03µm"

PUC supports some special characters:

puc(1.0001, " m")  # "1 m"  # with space separator
puc(1.0001, "_m")  # "1_m"  # with underscore separator
puc(0.911, "%")  # "91.1%"  # convert to percent
puc(1001, "dB")  # "30dB"  # convert to dB
puc(1030e-9, "!m")  # "1p03um"  # file name compatible

Metadata

Release files for fast-puc 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fast-puc 0.2.0
File Size Uploaded
fast_puc-0.2.0.tar.gz 3.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fast-puc 0.2.0
File Interpreter ABI Platform
fast_puc-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.2 kB

Release files / fast_puc-0.2.0.tar.gz

Download URL fast_puc-0.2.0.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ab5ebc888e6a325fc1f72cd10d827bb3a3280a0ac1e97491670ba66929f4b548
BLAKE2b-256 checksum
How to use checksums
a3992537636e5aa2e7312e44a43c4449f7258fb451202f1ad3dd98b24ffb488b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.12.6 Darwin/24.0.0

Release files / fast_puc-0.2.0-py3-none-any.whl

Download URL fast_puc-0.2.0-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3ef70c4c294062b6be761e81c68f20d8ea6c1bf7850c7a29b58cd2efe001b103
BLAKE2b-256 checksum
How to use checksums
72c62fc66e1bd364840e592c4a1afd016619c480c97b8f1f3555464a7a6005f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.12.6 Darwin/24.0.0

Release history Release notifications | RSS feed

0.3.0

2 release files

0.2.1

2 release files

This release

0.2.0 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page