Python package to automatically delete __pycache__ directories.
Project description
pycache-handler
It aims to continuously scan a project and then delete any __pycache__ directory generated by the project. This is to ensure the project will be clean and avoid to delete __pycache__ manually.
Installation
To install it :
pip install pycache-handler
Usage
from pycache_handler.handler import py_cache_handler
@py_cache_handler
def main():
# Your main application code here
pass
# Or specify a custom directory to monitor
@py_cache_handler(project_dir=r"path/to/your/project")
def main():
# Your main application code here
pass
if __name__ == "__main__":
main()
Requirements
- watchdog
License
This project is licensed under the 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pycache_handler-0.1.7.tar.gz.
File metadata
- Download URL: pycache_handler-0.1.7.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
36e8e826092b21ccb3644f6b4889d9459560cc822c85da232ddfd9a64c1d35e5
|
|
| MD5 |
a62156859f80148009a9fc178c722d67
|
|
| BLAKE2b-256 |
c6cc7320ff32784775c4b54f1e05d694111cf225175f9c689c265cddfd052847
|
File details
Details for the file pycache_handler-0.1.7-py3-none-any.whl.
File metadata
- Download URL: pycache_handler-0.1.7-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a9eed68abf67ab23a04031ad7bbe4a1224507ba97a88a876031e218fcd34cf3
|
|
| MD5 |
83e74378f7fa6224ff4e57b1812f5df2
|
|
| BLAKE2b-256 |
7572239d498e9be3208fe29c25a2e3b1e339be42722884137289625794a1fee7
|