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.

Source Distribution

fixfmt-0.10.0.tar.gz (115.8 kB view hashes)

Uploaded Source

Built Distribution

fixfmt-0.10.0-cp36-cp36m-macosx_10_7_x86_64.whl (136.8 kB view hashes)

Uploaded CPython 3.6m macOS 10.7+ x86-64

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