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.9.1.tar.gz
(114.1 kB
view hashes)
Built Distribution
Close
Hashes for fixfmt-0.9.1-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b11abd292046e57bdbc4855838b0445323d7081b17f184e263719bf6e7a5a050 |
|
MD5 | c7857acc9b81613b83ed0cf8cfc0628c |
|
BLAKE2b-256 | b50dc717133350b6df7c5c38267a196f0de7eefca4024efc342c6c69814769a8 |