Skip to main content

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)

Source distribution for pyformatting 0.3.0
File Size Uploaded
pyformatting-0.3.0.tar.gz 6.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyformatting 0.3.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

This release

0.3.0 This release

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.1

3 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page