Skip to main content

qformat: Quantitative Formatter

qformat is a number formatter that use numerical parameters (rather than magic string) to control the number formatting.

API

qformat(number: float, width: Optional[int]=None, precision: Optional[int]=None) -> str

Usage Example

from qformat import qformat
s = qformat(2., width=4, precision=1)
print(s)   # Output " 2.0"

Metadata

Release files for qformat 0.1.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 qformat 0.1.0
File Size Uploaded Provenance
qformat-0.1.0.tar.gz 1.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for qformat 0.1.0
File Interpreter ABI Platform
qformat-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 3.6 kB

Release files / qformat-0.1.0.tar.gz

Download URL qformat-0.1.0.tar.gz
Size 1.7 kB
Tags Source
SHA-256 checksum
How to use checksums
cd02228f1bd4a7efd582cfda435ea4c338854af31fe64aaf200845db758d8ef6
BLAKE2b-256 checksum
How to use checksums
fdac0c679f385c24d41f6be223e0c27fa882b0c000e8824fbf5a9a327b336f2f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.4

Release files / qformat-0.1.0-py3-none-any.whl

Download URL qformat-0.1.0-py3-none-any.whl
Size 1.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
364f2e36342b4d32751b52af12d5cc4495a4c303e296e6b29723268af3499f6d
BLAKE2b-256 checksum
How to use checksums
b2c1beb7fcb9449c329a5b36659e58eeb09458deae54f00a57ee29a3385eef07
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.4

Security for qformat 0.1.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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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