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.10.0.tar.gz
(115.8 kB
view hashes)
Built Distribution
Close
Hashes for fixfmt-0.10.0-cp36-cp36m-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0586d9f40b6ec0e54e6f1b6a9c0d5ebe2da0840e68ae934e7ebc6bab72c3899a |
|
MD5 | 453b146c99a573e2c994228144b90fca |
|
BLAKE2b-256 | 52c1a5670248ff26dba0ff2cbcc30a53585a191ecc9e78d9e9f62fdf042b9e65 |