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}{4}', string="cool")
"{first}'cool'{4}"
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.1.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for pyformatting-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f26f575941f4e323d8b911f41d261c70fec335adb750faa1802ccc0e9b5b323d |
|
MD5 | 82621e972da1383c1398c391d422e99c |
|
BLAKE2b-256 | fa1696749d174a615a463a4936239560366b2c609ccea730e4d4014e1dbcd15d |