A developer tool for automatic temp file cleanup, log suppression, and zero-trace script execution for privacy-focused applications.
Project description
👻 ghost-runner
Automatic temp file cleanup, log suppression, and zero-trace execution for Python scripts.
Install
pip install ghost-runner
Quick Start
import ghost
with ghost.run():
with open("temp_data.txt", "w") as f:
f.write("processing data...")
# temp_data.txt deleted automatically
# logs suppressed, cache removed, env restored
Features
- Auto deletes files created inside the block
- Suppresses all logging output
- Removes .pyc and pycache files
- Restores environment variables
- Cleans up even if your code crashes
- Zero external dependencies
API
| Function | Description |
|---|---|
ghost.run() |
Main context manager |
ghost.track_file(path) |
Mark a file for deletion |
ghost.track_dir(path) |
Mark a folder for deletion |
ghost.wipe_now() |
Trigger cleanup immediately |
ghost.status() |
Get tracking status |
License
MIT — Gurkirat Singh
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ghost_runner-1.0.0.tar.gz
(5.4 kB
view details)
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 ghost_runner-1.0.0.tar.gz.
File metadata
- Download URL: ghost_runner-1.0.0.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ca9dcd23a509fafebbb93cbc9fa2022d4074b0dd1b98135efdceb0c6f794a767
|
|
| MD5 |
b7de3fe4f58fdc20808a5a84eec3e2c9
|
|
| BLAKE2b-256 |
de7e48c637bdad6cb4e6e51cb4f6cd91208bc6d5da726adefd17bc57f70bff30
|
File details
Details for the file ghost_runner-1.0.0-py3-none-any.whl.
File metadata
- Download URL: ghost_runner-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8e8df53051b235c0b97c65e3bd45826c5a0e0a9534c895d9fd1e3e3d16b776b8
|
|
| MD5 |
85200fd1945c1caec735c3b460dbf707
|
|
| BLAKE2b-256 |
59bac391069482c841f3eb9673a6a69a8435ad519c9dcbd1fc7ba5f43115f0f3
|