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


Release history Release notifications

This version
History Node

0.7.4

History Node

0.7.1

History Node

0.7.0

History Node

0.6.0

History Node

0.5.6

History Node

0.5.5

History Node

0.5.4

History Node

0.5.3

History Node

0.5.2

History Node

0.5.1

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
fixfmt-0.7.4-cp36-cp36m-macosx_10_7_x86_64.whl (129.9 kB) Copy SHA256 hash SHA256 Wheel 3.6 Feb 11, 2018
fixfmt-0.7.4.tar.gz (113.6 kB) Copy SHA256 hash SHA256 Source None Feb 11, 2018

Supported by

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