fixfmt-0.9.2
توضیحات
fixed-width formatters for C++ and Python
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | fixfmt-0.9.2 |
| نام | fixfmt |
| نسخه کتابخانه | 0.9.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Alex Samuel |
| ایمیل نویسنده | alexhsamuel@gmail.com |
| آدرس صفحه اصلی | https://github.com/alexhsamuel/fixfmt |
| آدرس اینترنتی | https://pypi.org/project/fixfmt/ |
| مجوز | Apache 2.0 |
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:
.. code:: py
>>> fmt = fixfmt.String(10)
>>> fmt("testing")
'testing '
>>> fmt("Hello, world!")
'Hello, wo…'
and numbers:
.. code:: py
>>> 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.
نحوه نصب
نصب پکیج whl fixfmt-0.9.2:
pip install fixfmt-0.9.2.whl
نصب پکیج tar.gz fixfmt-0.9.2:
pip install fixfmt-0.9.2.tar.gz