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.7.0.tar.gz
(113.5 kB
view hashes)
Built Distribution
Close
Hashes for fixfmt-0.7.0-cp36-cp36m-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9f639ba2fd58597e8d597dd100c0f8e6bc040315983ad8989c5f4eef8be5271 |
|
MD5 | e8f8709e94caa91743111b613fdbdd72 |
|
BLAKE2b-256 | 17f5f5767e7f38c351b47fba3618842f1315fe8a62792c59d3375d7b5bd8ca44 |