Metadata-Version: 2.1
Name: pycache_handler
Version: 0.1.5
Summary: Python package to automatically delete __pycache__ directories.
Home-page: https://github.com/iv4n-ga6l/pycache_handler
Author: Ivan APEDO
Author-email: apedoivan@gmail.com
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE.md
Requires-Dist: watchdog

# 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 :

```sh
pip install pycache_handler
```


## Usage

```python
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](LICENSE.md)

