Skip to main content

fixed-width formatters for C++ and Python

Project description

A C++ and Python library for formatting values (numbers, strings, etc.) in fixed-width fields. Useful for printing tabular data and similar.

For example, strings:

>>> fmt = fixfmt.String(10)
>>> fmt("testing")
'testing   '
>>> fmt("Hello, world!")
'Hello, wo…'

and numbers:

>>> fmt = fixfmt.Number(3, 3)
>>> fmt(math.pi)
'   3.142'

Includes C++ and Python libraries. Requires a C++14 compiler and GNU Make to build.

Project details

Download files

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

Files for fixfmt, version 0.12.0
Filename, size File type Python version Upload date Hashes
Filename, size fixfmt-0.12.0-cp37-cp37m-macosx_10_7_x86_64.whl (129.0 kB) File type Wheel Python version cp37 Upload date Hashes View hashes
Filename, size fixfmt-0.12.0.tar.gz (114.0 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page