Skip to main content

Remove all pests from your project! frenchmaid is a lightweight all platform cli package that will delete all __pycache__ folders (contents included) in your project directory. Are you tired of doing it manually each time? Fear not, the frenchmaid will do it for you!

Project description

French Maid v0.1.1

Are you a python developer who also/only uses windows and are sick are tired of constantly deteting those pesky __pycache__ directories? Fear not, frenchmaid is here to help! frenchmaid is a CLI tool written in pure python that will look in your entire project directory and delete any __pycache__ folders (and the files within) in your app directory.

Installation

pip install frenchmaid

or

pip3 install frenchmaid

Usage

In any terminal window:

Linux based machines:

<user>@<machine>:~/Documents/example-app$ frenchmaid clean

Windows based machines:

C:\Users\<user>\Documents\example-app> frenchmaid clean

It's really that simple, just ensure that you are in you project's root folder! For clarity, the above example assumes that your project structure is something like this for example:

example-app/
|________ main.py
|________ requirements.txt
|________ src/
         |_________ __init__.py
         |_________ app.py

If the root is example-app then you can see that the terminal should be in that folder.

Other Commands

Version

In any terminal in any directory:

frenchmaid -v

or

frenchmaid --version

will return (for example):

French Maid v0.1.0

Help

In any terminal in any directory:

frenchmaid --help

will return:

Usage: French Maid [OPTIONS] COMMAND [ARGS]...

Options:
  -v, --version                   View the CLI version and stuff... maybe
  --install-completion [bash|zsh|fish|powershell|pwsh]
                                  Install completion for the specified shell.
  --show-completion [bash|zsh|fish|powershell|pwsh]
                                  Show completion for the specified shell, to
                                  copy it or customize the installation.
  --help                          Show this message and exit.

Commands:
  clean

Support and Reporting

You can report any bugs or improvements here, I will try to address them as soon as possible. Feel free to suggest any other files or folders you think it should delete (e.g .pytest_cache) with all context on how they appear. I will happily make it a possiblity without breaking the current format! To the best of my abilites of course, and the github page will be updated on any changes.

Version History

v0.1.1

Minor patch to codebase; Issue on linux machines fixed with directory name post pycache delete. The package no longer display the root directory's full absolute path (e.g Documents/example-app), but rather just the root directory's name (e.g example-app) on linux machines.

v0.1.0

Initial Release; Stable version for use on all platforms.

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

frenchmaid-0.1.1.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

frenchmaid-0.1.1-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file frenchmaid-0.1.1.tar.gz.

File metadata

  • Download URL: frenchmaid-0.1.1.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.1

File hashes

Hashes for frenchmaid-0.1.1.tar.gz
Algorithm Hash digest
SHA256 61c805f3d9ee905b270e07ddec03acebd0dd2d6fe935595b91b25d85a2e42491
MD5 0a6fae76ad10c51f900344fc9f094e0a
BLAKE2b-256 3ee0c7246dc339c5b69377b1f08fcb4890ac4005978f6a8ded44f8490b2127a6

See more details on using hashes here.

File details

Details for the file frenchmaid-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: frenchmaid-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.1

File hashes

Hashes for frenchmaid-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 83f8aab171ec0c500af4a0c760a9827c75e51ebb5c01eb744049ed896a263c2c
MD5 90d0f530d6efd6aef0011f0aeb89a180
BLAKE2b-256 ff1eecccd24eb3cea4d1b72bc56f9bd53c9ec3a2aabd6024ed23c3990fde7212

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