Skip to main content

Pyformatting is a collection of useful formatting features.

Project description


Pyformatting is a collection of useful formatting features.

>>> from pyformatting import optional_format, defaultformatter
>>> optional_format('{:.3f}{other:.5f}{}', .12345)
>>> optional_format('{0[0]}{1!a}{2}{0[1]!r}', 'cool')
>>> 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


Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pyformatting, version 0.3.0
Filename, size File type Python version Upload date Hashes
Filename, size pyformatting-0.3.0-py3-none-any.whl (9.1 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pyformatting-0.3.0.tar.gz (6.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page