Make Python code more compact
Project description
compactify
Compactify collapses sequential lines with only ()[]{}, and whitespace into one.
Usage
pip install compactify
compactify /path/to/filename.py
cat /path/to/filename.py | compactify --from-stdin
Prerequisites
Compactify is tested with Python>=3.8.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
compactify-1.tar.gz
(5.9 kB
view details)
File details
Details for the file compactify-1.tar.gz
.
File metadata
- Download URL: compactify-1.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | db16811a94a00d1b89e1d0f64cc1dc081981fd9be4529f11bb91f2af8fa7a4dd |
|
MD5 | d97de0339a85b8d95f56819aec79c209 |
|
BLAKE2b-256 | dca204b3916ed7a9d291f919b1462855531288a228af79c1a24828db076fa956 |