qstrbuilder
Project description
qstrbuilder: Build Strings Quantitatively
qstrbuilder is a number formatter that use numerical parameters (rather than magic string) to control the number formatting.
API
build(number: float, width: Optional[int]=None, precision: Optional[int]=None) -> str
Usage Example
from qstrbuilder import build
s = build(2., width=4, precision=1)
print(s) # Output " 2.0"
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
qstrbuilder-0.1.0.tar.gz
(1.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file qstrbuilder-0.1.0.tar.gz.
File metadata
- Download URL: qstrbuilder-0.1.0.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
662576bf8f724cffe0cc72ca759705537b3d23fdd0bb61c60ac663ce79495d9e
|
|
| MD5 |
4d03e3cd2a23829a4b4e0975acf3c23e
|
|
| BLAKE2b-256 |
583a5f7363f3dd174c7a8e095d954c31e03a03e6ba6da7a58193b7e445f2a600
|
File details
Details for the file qstrbuilder-0.1.0-py3-none-any.whl.
File metadata
- Download URL: qstrbuilder-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18b8c96c78e15f9882c70d670dd4fbd65055f2ed8d31fa82e6858457657b8e77
|
|
| MD5 |
b2af45599091865101f6cc13ec2b0d08
|
|
| BLAKE2b-256 |
d69639f5f99429d20c7699bd53d78081ca9401a5d3535075b2cb265a5e35670e
|