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.8.2.tar.gz
(114.2 kB
view hashes)
Built Distribution
Close
Hashes for fixfmt-0.8.2-cp36-cp36m-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0be68a08f93d0c0609a11ffe258d879cfc14aa85ee0f0ee951e8805521f6fb4c |
|
MD5 | df785e202e8a584d4fb8cfc5ff19e277 |
|
BLAKE2b-256 | cf77bec517735f83322690df0ee8765e775bdcdd38d5bc53413890991e0b9ef3 |