{"id":13702723,"url":"https://github.com/worldworm/hcloud-selfdestruct","last_synced_at":"2025-05-05T06:32:23.429Z","repository":{"id":63093708,"uuid":"565239435","full_name":"worldworm/hcloud-selfdestruct","owner":"worldworm","description":"cli tool to self destruct a hetzner cloud server","archived":false,"fork":false,"pushed_at":"2024-01-05T16:36:32.000Z","size":128,"stargazers_count":6,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-30T19:17:52.964Z","etag":null,"topics":["hcloud","hetzner-api","hetzner-cloud"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/worldworm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2022-11-12T19:12:46.000Z","updated_at":"2024-12-16T11:58:52.000Z","dependencies_parsed_at":"2024-01-14T19:14:14.237Z","dependency_job_id":"65579405-5f9f-46e9-aa96-49ff6a8f0bcb","html_url":"https://github.com/worldworm/hcloud-selfdestruct","commit_stats":{"total_commits":37,"total_committers":1,"mean_commits":37.0,"dds":0.0,"last_synced_commit":"1bb5697b65c3ba22c93acf861925237d58293334"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/worldworm%2Fhcloud-selfdestruct","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/worldworm%2Fhcloud-selfdestruct/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/worldworm%2Fhcloud-selfdestruct/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/worldworm%2Fhcloud-selfdestruct/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/worldworm","download_url":"https://codeload.github.com/worldworm/hcloud-selfdestruct/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252448583,"owners_count":21749495,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hcloud","hetzner-api","hetzner-cloud"],"created_at":"2024-08-02T21:00:41.293Z","updated_at":"2025-05-05T06:32:23.161Z","avatar_url":"https://github.com/worldworm.png","language":"Python","funding_links":[],"categories":["Tools"],"sub_categories":["Rust"],"readme":"\u003ch1 align=\"center\"\u003e💣 hcloud-selfdestruct\u003c/h1\u003e\n\u003cp align=\"center\"\u003e\n  \u003ci\u003eA cli tool to self destruct a hetzner cloud server\u003c/i\u003e\n\u003c/p\u003e\n\n\u003c!-- Place https://shields.io/ badges here --\u003e\n[![GitHub repo stars](https://img.shields.io/github/stars/worldworm/hcloud-selfdestruct)](https://github.com/worldworm/hcloud-selfdestruct)\n[![License](https://img.shields.io/badge/license-MIT-green?logo=opensourceinitiative\u0026logoColor=fff)](https://github.com/worldworm/hcloud-selfdestruct/blob/main/LICENSE)\n[![GitHub last commit (main)](https://img.shields.io/github/last-commit/worldworm/hcloud-selfdestruct/main)](https://github.com/worldworm/hcloud-selfdestruct/commits/main/)\n[![GitHub release](https://img.shields.io/github/v/release/worldworm/hcloud-selfdestruct)](https://github.com/worldworm/hcloud-selfdestruct/releases/latest)\n[![GitHub commits since latest release](https://img.shields.io/github/commits-since/worldworm/hcloud-selfdestruct/latest/main)](https://github.com/worldworm/hcloud-selfdestruct/releases/latest)\n[![PyPI version](https://img.shields.io/pypi/v/hcloud-selfdestruct)](https://pypi.org/project/hcloud-selfdestruct/)\n[![PyPI Python version](https://img.shields.io/pypi/pyversions/hcloud-selfdestruct)](https://pypi.org/project/hcloud-selfdestruct/)\n[![Mentioned in Awesome hcloud](.project/media/mentioned-badge.svg)](https://github.com/hetznercloud/awesome-hcloud)\n[![Open in GitHub Codespaces](https://img.shields.io/badge/Open%20in%20GitHub%20Codespaces-black?logo=github)](https://github.com/codespaces/new?hide_repo_select=true\u0026ref=main\u0026repo=565239435\u0026machine=basicLinux32gb\u0026devcontainer_path=.devcontainer%2Fdevcontainer.json\u0026location=WestEurope)\n\n\n## Why\nAre 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?\n\nWith hcloud-selfdestruct, the server instance now self-destructs after the computation and generates no further costs.\n\n\n\u003e [!WARNING]\n\u003e This project is in early development and may not work as expected.\n\n\n## Installation\n```bash\npip install hcloud-selfdestruct\n```\n\n## Usage\n```\nlongrunningcommand \u0026\u0026 hcloud-selfdestruct --api-token abcdefg \u0026\n#-- or --\nsleep 1h \u0026\u0026 hcloud-selfdestruct --api-token abcdefg --server-id 12345678 --apprise-id gotify://example.com/token \u0026\n```\nNote: Only the server is deleted. Attachments such as mounted volumes, floating IPs and more will not be removed.\n\n## Help\n```\n\u003e hcloud-selfdestruct --help\nusage: hcloud-selfdestruct [-h] --api-token API_TOKEN [--server-id SERVER_ID] [--apprise-id APPRISE_ID] [--shutdown] [--version]\n\ncli tool to self destruct a hetzner cloud server\n\noptions:\n  -h, --help            show this help message and exit\n\n  --api-token API_TOKEN, --api API_TOKEN, --token API_TOKEN\n                        hetzner cloud api token\n\n  --server-id SERVER_ID, --server SERVER_ID, --id SERVER_ID\n                        server id\n\n  --apprise-id APPRISE_ID, --apprise APPRISE_ID, --notify APPRISE_ID\n                        apprise notification string\n\n  --shutdown            just shutdown the server and not destroy it\n\n  --version, -v         show program's version number and exit\n```\n\nFind the apprise syntax here: [apprise wiki](https://github.com/caronc/apprise/wiki#notification-services)\n\nFind the server id here (enter without \"#\")\n![How to find the server id](./.project/media/howToFindServerId.png \"How to find the server id\")\n\n## Not yet tested\n- complete self detection\n\n---\n\u003cp align=\"center\"\u003e\n  \u003ci\u003e© \u003ca href=\"https://github.com/worldworm\"\u003eworldworm\u003c/a\u003e 2022-2024\u003c/i\u003e\n  \u003cbr\u003e\u003ci\u003eLicensed under \u003ca href=\"https://github.com/worldworm/hcloud-selfdestruct/blob/main/LICENSE\"\u003eMIT\u003c/a\u003e\u003c/i\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fworldworm%2Fhcloud-selfdestruct","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fworldworm%2Fhcloud-selfdestruct","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fworldworm%2Fhcloud-selfdestruct/lists"}