pyformatting
Pyformatting is a collection of useful formatting features.
>>> from pyformatting import optional_format, defaultformatter
>>> optional_format('{:.3f}{other:.5f}{}', .12345)
'0.123{other:.5f}{}'
>>> optional_format('{0[0]}{1!a}{2}{0[1]!r}', 'cool')
"c{1!a}{2}'o'"
>>> default_format = defaultformatter(str)
>>> default_format('{nothing}{data}{quotes!r}', data={1: 2})
"{1: 2}''"
Installing Pyformatting and Supported Versions
Pyformatting is available on PyPI:
python -m pip install -U pyformatting
Pyformatting supports Python 3.1+.
Development Status
Pre-Alpha
Release files for pyformatting 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyformatting-0.3.0.tar.gz | 6.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyformatting-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.2 kB
Release files / pyformatting-0.3.0.tar.gz
| Download URL | pyformatting-0.3.0.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
63c59ad7095b6bcb8a5ab0830ef36e4955171db1ddac85dabe6781d1710cf010
|
|
BLAKE2b-256 checksum How to use checksums |
ad22e963c6a372e195d42da065ac34802b4b19eb7709683fefa03d1857821313
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.3.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.1
|
Release files / pyformatting-0.3.0-py3-none-any.whl
| Download URL | pyformatting-0.3.0-py3-none-any.whl |
|---|---|
| Size | 9.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0d15c2250865d268d189654f04a786f6d8e281a02ecba93b58638580bec7e56e
|
|
BLAKE2b-256 checksum How to use checksums |
6fbae2bb9bd0ee4cbf0229cfa678002e1b44ed20a8bcd8cdb0fdfa9bd09b4979
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.3.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.1
|