Skip to main content

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


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)

Uploaded Source

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

Hashes for compactify-1.tar.gz
Algorithm Hash digest
SHA256 db16811a94a00d1b89e1d0f64cc1dc081981fd9be4529f11bb91f2af8fa7a4dd
MD5 d97de0339a85b8d95f56819aec79c209
BLAKE2b-256 dca204b3916ed7a9d291f919b1462855531288a228af79c1a24828db076fa956

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page