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 | RSS feed
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.11.0.tar.gz
(113.4 kB
view hashes)
Built Distribution
Close
Hashes for fixfmt-0.11.0-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b6f7952d8c4d9ef336e0e9914290d9f8c0abfe2f201f1f2d23215df1291b662 |
|
MD5 | 1e4e00adb0a5dd46fd3c3e4866a3a516 |
|
BLAKE2b-256 | 6ad9ee56ba953c30c311ec596747b7f333c8c119ebd97529f0b1969580ef5f23 |