https://github.com/desty2k/deleter
Automatically remove Python executables at exit
https://github.com/desty2k/deleter
atexit autodelete autoremove delete exit python python-3 remove
Last synced: 1 day ago
JSON representation
Automatically remove Python executables at exit
- Host: GitHub
- URL: https://github.com/desty2k/deleter
- Owner: desty2k
- License: mit
- Created: 2021-10-05T16:47:49.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-03-14T14:59:16.000Z (about 3 years ago)
- Last Synced: 2025-09-01T05:54:47.261Z (9 months ago)
- Topics: atexit, autodelete, autoremove, delete, exit, python, python-3, remove
- Language: Python
- Homepage:
- Size: 32.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# deleter
[](https://github.com/desty2k/deleter/actions/workflows/build.yml)
[](https://pypi.org/project/deleter/)
[](https://pypi.org/project/deleter/)
Automatically remove python scripts from disk after execution.
Main purpose is to delete single file executables generated by PyInstaller.
__Deleter does not support deleting mult-file scripts.__
## Installation
From PyPI
```shell
pip install deleter -U
```
From sources
```shell
git clone https://github.com/desty2k/deleter.git
cd deleter
pip install .
```
## Usage
### Delete app at exit
```python
import deleter
deleter.register()
# your code
```
### Cancel app deletion
```python
import deleter
deleter.register()
# your code
# cames out that we do not need to delete app
deleter.unregister()
# executable stays on disk
```