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
Metadata
Release files for pycache-handler 0.1.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pycache_handler-0.1.7.tar.gz | 3.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pycache_handler-0.1.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.7 kB
Release files / pycache_handler-0.1.7.tar.gz
| Download URL | pycache_handler-0.1.7.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
36e8e826092b21ccb3644f6b4889d9459560cc822c85da232ddfd9a64c1d35e5
|
|
BLAKE2b-256 checksum How to use checksums |
c6cc7320ff32784775c4b54f1e05d694111cf225175f9c689c265cddfd052847
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.5
|
Release files / pycache_handler-0.1.7-py3-none-any.whl
| Download URL | pycache_handler-0.1.7-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4a9eed68abf67ab23a04031ad7bbe4a1224507ba97a88a876031e218fcd34cf3
|
|
BLAKE2b-256 checksum How to use checksums |
7572239d498e9be3208fe29c25a2e3b1e339be42722884137289625794a1fee7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.5
|