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-2.tar.gz (5.9 kB view details)

Uploaded Source

File details

Details for the file compactify-2.tar.gz.

File metadata

  • Download URL: compactify-2.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-2.tar.gz
Algorithm Hash digest
SHA256 e0cec88aeb0548a403ff8a3ff83b1b220d3c55b60b9e0ef6a5d6b1998e697df4
MD5 a1d86ff49e3b8d5e5a2b1c5a5338980f
BLAKE2b-256 b3415f1c2f255678471ca88d249d073f66c3375407b283c41d18511f7791c1a7

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