Skip to main content

Simple utility to delete __pycache__ folders.

Project description

pycache-wipe

pycache-wipe is a lightweight, production-ready Python utility that helps you keep your project directories clean by safely and efficiently deleting all __pycache__ folders.

These __pycache__ folders are generated automatically by Python to store bytecode-compiled files. Over time, they can clutter your workspace and may not be necessary to keep in production or deployment environments.


Features

  • 🌊 Simple & Intuitive CLI: Minimal commands with clear flags.
  • 🔒 Safe Deletion: Only targets __pycache__ directories, nothing else.
  • 🔄 Two Modes: Choose between local (current directory) deletion or recursive deletion.
  • 🌟 Robust Error Handling: Graceful failure and informative messages.

Installation

Install via pip:

pip install pycache-wipe

Usage

Delete all __pycache__ folders recursively (in current and subdirectories):

pycache-wipe -r

Delete only the __pycache__ folder in the current directory:

pycache-wipe -l

Example Output

Recursively deleting all __pycache__ directories...
✅ Deleted: /your/project/path/__pycache__
✅ Deleted: /your/project/path/submodule/__pycache__
🎉 Finished pycache-wipe operation.

Why Use pycache-wipe?

  • Keep your project folder clean.
  • Reduce unnecessary clutter before committing to version control.
  • Easily integrate into deployment or CI/CD scripts.
  • No more manual deletion!

License

MIT License

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

pycache_wipe-1.0.0.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pycache_wipe-1.0.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file pycache_wipe-1.0.0.tar.gz.

File metadata

  • Download URL: pycache_wipe-1.0.0.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for pycache_wipe-1.0.0.tar.gz
Algorithm Hash digest
SHA256 ff40253f05a9d522a1670e482c8de9aa244f4d6b2ef8eafce3d459649df6f963
MD5 f5f2b183fc6dbaed58732f65c15994da
BLAKE2b-256 be422bf81251582841cfb94210bee0fd0413a4a80b93a8057bc77db3c5979d40

See more details on using hashes here.

File details

Details for the file pycache_wipe-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: pycache_wipe-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for pycache_wipe-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 afb5e02e34d8242024c41e99177e9bd5b46d063c76f1b686baf13fba02811868
MD5 38a20ef0c24db9a4cf746507a881ffcb
BLAKE2b-256 77127bf920cf3d0220c76ecde59bccd6bdbb2a15d986dd894aed81fd87ec870c

See more details on using hashes here.

Supported by

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