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.12.0.tar.gz
(114.0 kB
view hashes)
Built Distribution
Close
Hashes for fixfmt-0.12.0-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 820beb5dcb1b9a1bafbbfc4c9b3adaa681a906aac37e865c0e88890c04cc78d8 |
|
MD5 | 91401a2a99444f1011bb8341ca42a18a |
|
BLAKE2b-256 | 6ce7407c1cf3b6ba5d13e7254ebbcf610e7c6645ad9c11ac77625db27786338e |