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

Pyformatting is available on PyPI:

python -m pip install -U pyformatting

Supported Versions

Pyformatting supports Python 3.1+.

Development Status

Alpha

Metadata

Release files for pyformatting 0.3.3

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.3
File Size Uploaded Provenance Actions
pyformatting-0.3.3.tar.gz 6.1 kB Without provenance Details for pyformatting-0.3.3.tar.gz

Built distribution (wheel)

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

Total release size: 15.2 kB

Release files / pyformatting-0.3.3.tar.gz

Download URL pyformatting-0.3.3.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
f2011655384594bbc03aa519e2f6813017956e38b48f1688e5f84bbaa1c7ce8c
BLAKE2b-256 checksum
How to use checksums
c0f51eb320ec193155f742283c20051588524d2aee5c1b4e0d608d42fa11f7f2
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.3-py3-none-any.whl

Download URL pyformatting-0.3.3-py3-none-any.whl
Size 9.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8044950760ba3c5e922eaa2e066109c4e821a4417fe972998aa4745feb913018
BLAKE2b-256 checksum
How to use checksums
43830130eb43419d274dc2282b81119064015c79ce143aabecb8263b7d761099
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.3

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