Skip to main content

Readme

Introduction

Test Status Coverage Status

formatter2 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 formatter2. 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 formatter2 1.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 formatter2 1.3.0
File Size Uploaded
formatter2-1.3.0.tar.gz 18.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for formatter2 1.3.0
File Interpreter ABI Platform
formatter2-1.3.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 43.9 kB

Release files / formatter2-1.3.0.tar.gz

Download URL formatter2-1.3.0.tar.gz
Size 18.2 kB
Tags Source
SHA-256 checksum
How to use checksums
69f8c2bdcd883514b47321349178f14fe5c53567b75f464c93692320e98e6467
BLAKE2b-256 checksum
How to use checksums
a00756f4b619d1b6a057eaff0ba6cb4cb1bbc6a3d02b3d3dacb666ed955ecaea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / formatter2-1.3.0-py2.py3-none-any.whl

Download URL formatter2-1.3.0-py2.py3-none-any.whl
Size 25.7 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
5884d478f760b23b58d103d963b19e09b52d1bf516654783860af2627d14e59b
BLAKE2b-256 checksum
How to use checksums
6a31d4da800233f4574ec9128740c29938053b4f92c85f01878411efd31da108
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.3.0 This release

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2.0

1 release file

1.1.1

1 release file

1.1.0

1 release file

1.0.4

1 release file

1.0.3

1 release file

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