Readme
Introduction
formatter is a Python formatter based on the tokenize library in Python. Due to a bug with line continuations we are currently running a fork of the tokenize library however.
During every format sequence the compile method is used to check if no code has been broken, but backing up is still a good idea.
The library is made to be very extendable and configurable but it’s still in the beginning phase. Eventually this will become a fully featured formatting tool for Python.
Install
To install simply execute python setup.py install or pip install formatter. If you want to run the tests first, run nosetests
Usage
To format all of your code recursively (MAKE BACKUPS!):
python-formatter -r DIRECTORY
Or:
format-python -r DIRECTORY
Metadata
Release files for formatter 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| formatter-1.0.3.tar.gz | 17.7 kB | Without provenance | Details |
Release files / formatter-1.0.3.tar.gz
| Download URL | formatter-1.0.3.tar.gz |
|---|---|
| Size | 17.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7615b635f07550b0c44de232803589edfc8e7253daffd83a82b292f4d7c65885
|
|
BLAKE2b-256 checksum How to use checksums |
aa36f8b2f042a83d3c6314a74988ddf4ea693a3ecb31a986686a1bfde749cad8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for formatter 1.0.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.