Skip to main content

qformat

Project description

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"

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qformat-0.1.0.tar.gz (1.7 kB view details)

Uploaded Source

Built Distribution

qformat-0.1.0-py3-none-any.whl (1.9 kB view details)

Uploaded Python 3

File details

Details for the file qformat-0.1.0.tar.gz.

File metadata

  • Download URL: qformat-0.1.0.tar.gz
  • Upload date:
  • Size: 1.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for qformat-0.1.0.tar.gz
Algorithm Hash digest
SHA256 cd02228f1bd4a7efd582cfda435ea4c338854af31fe64aaf200845db758d8ef6
MD5 d8aa4bc99a1b11ee527776d8cdf12221
BLAKE2b-256 fdac0c679f385c24d41f6be223e0c27fa882b0c000e8824fbf5a9a327b336f2f

See more details on using hashes here.

File details

Details for the file qformat-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: qformat-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 1.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for qformat-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 364f2e36342b4d32751b52af12d5cc4495a4c303e296e6b29723268af3499f6d
MD5 b40b2fb44c6f946a7e92c278bdf09edb
BLAKE2b-256 b2c1beb7fcb9449c329a5b36659e58eeb09458deae54f00a57ee29a3385eef07

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page