Pyformatting is a collection of useful formatting features.
Project description
pyformatting
Pyformatting is a collection of useful formatting features.
>>> from pyformatting import optional_format
>>> optional_format('{number:.3f}{other}', number=.12345)
'0.123{other}'
>>> optional_format('{0.imag}{1}{2}{0.real}', 1+3j)
'3.0{1}{2}1.0'
>>> optional_format('{first}{string!r}{42}', string='cool')
"{first}'cool'{42}"
Installing Pyformatting and Supported Versions
Pyformatting is available on PyPI:
python -m pip install -U pyformatting
Pyformatting supports Python 3.0+.
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
pyformatting-0.1.2.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for pyformatting-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc21887ba8f98cefa54c72c9b4f44df58833c446ae10c9cc8cbc91bead0ac5d8 |
|
MD5 | 35726bff13b447dc810a3d42e6d1deb9 |
|
BLAKE2b-256 | 7ee64a36fda1d8d2be3b7722bc09df2c9b04a2d528381b076e2b052983460e5a |