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

Metadata

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 Provenance Actions
pyformatting-0.3.0.tar.gz 6.1 kB Without provenance Details for pyformatting-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyformatting 0.3.0
File Interpreter ABI Platform Actions
pyformatting-0.3.0-py3-none-any.whl Python 3 none any Details for pyformatting-0.3.0-py3-none-any.whl

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

Security for pyformatting 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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