💣 hcloud-selfdestruct
A cli tool to self destruct a hetzner cloud server
Why
Are you using a hetzner cloud server for heavy and long-running computing power? But you don't want to have additional costs when the calculation is done?
With hcloud-selfdestruct, the server instance now self-destructs after the computation and generates no further costs.
Installation
pip install hcloud-selfdestruct
Usage
longrunningcommand && hcloud-selfdestruct --api-token abcdefg &
#-- or --
sleep 1h && hcloud-selfdestruct --api-token abcdefg --server-id 12345678 --apprise-id gotify://example.com/token &
Note: Only the server is deleted. Attachments such as mounted volumes, floating IPs and more will not be removed.
Help
> hcloud-selfdestruct --help
usage: hcloud-selfdestruct [-h] --api-token API_TOKEN [--server-id SERVER_ID] [--apprise-id APPRISE_ID] [--shutdown] [--version]
cli tool to self destruct a hetzner cloud server
options:
-h, --help show this help message and exit
--api-token API_TOKEN, --api API_TOKEN, --token API_TOKEN
hetzner cloud api token
--server-id SERVER_ID, --server SERVER_ID, --id SERVER_ID
server id
--apprise-id APPRISE_ID, --apprise APPRISE_ID, --notify APPRISE_ID
apprise notification string
--shutdown just shutdown the server and not destroy it
--version, -v show program's version number and exit
Find the apprise syntax here: apprise wiki
Find the server id here (enter without "#")
Not yet tested
- complete self detection
Metadata
Release files for hcloud-selfdestruct 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| hcloud_selfdestruct-0.1.1.tar.gz | 3.9 kB | Without provenance | Details for hcloud_selfdestruct-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hcloud_selfdestruct-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for hcloud_selfdestruct-0.1.1-py3-none-any.whl |
Total release size: 8.6 kB
Release files / hcloud_selfdestruct-0.1.1.tar.gz
| Download URL | hcloud_selfdestruct-0.1.1.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
500423936f297e03a3368b4be9abd9d67bd4f818559cdaa94727fbbe3ec051f0
|
|
BLAKE2b-256 checksum How to use checksums |
c90c96ba5c9cd056b494f4394f263c77e55ca61bc136790f75b2be01a3489ad5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.10.13 Linux/6.2.0-1018-azure
|
Release files / hcloud_selfdestruct-0.1.1-py3-none-any.whl
| Download URL | hcloud_selfdestruct-0.1.1-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5ed8043bbb17988ec4162714ededcc18a107b2c92c31bf4d469963ebb41de6b2
|
|
BLAKE2b-256 checksum How to use checksums |
6e1e351fd38146f35a6685a769642e911c3af2392adaf5862b71b9a15b5c34d9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.10.13 Linux/6.2.0-1018-azure
|
Security for hcloud-selfdestruct 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.