/pycleanup

Primary LanguagePythonMIT LicenseMIT

pyCleanUp

Clean up your working directory.

Why?

Everyone uses commands like

find . -name \*.pyc -delete

or

find . -name "*.pyc" -exec rm -f {} \;

on linux

pyclean

But I often switch me OS from Linux to Windows. Fist I would wrote different scrips, but a python package is much nicer.

Install

Uses pip to install.

pip install pyclear

Uses

As command-line tool.

pyclear --help

or

python -m pyclear --help

As python function

from pyclean.func import cleanup
dir = '.'
args = {'cache': True, 'egg': True}

cleanup(dir, args)