hcloud-selfdestruct


Namehcloud-selfdestruct JSON
Version 0.1.1 PyPI version JSON
download
home_pagehttps://github.com/worldworm/hcloud-selfdestruct
Summarycli tool to self destruct a hetzner cloud server
upload_time2024-01-05 16:36:59
maintainer
docs_urlNone
authorworldworm
requires_python>=3.8,<4.0
licenseMIT
keywords selfdestruct hcloud hetzner
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <h1 align="center">💣 hcloud-selfdestruct</h1>
<p align="center">
  <i>A cli tool to self destruct a hetzner cloud server</i>
</p>

<!-- Place https://shields.io/ badges here -->
[![GitHub repo stars](https://img.shields.io/github/stars/worldworm/hcloud-selfdestruct)](https://github.com/worldworm/hcloud-selfdestruct)
[![License](https://img.shields.io/badge/license-MIT-green?logo=opensourceinitiative&logoColor=fff)](https://github.com/worldworm/hcloud-selfdestruct/blob/main/LICENSE)
[![GitHub last commit (main)](https://img.shields.io/github/last-commit/worldworm/hcloud-selfdestruct/main)](https://github.com/worldworm/hcloud-selfdestruct/commits/main/)
[![GitHub release](https://img.shields.io/github/v/release/worldworm/hcloud-selfdestruct)](https://github.com/worldworm/hcloud-selfdestruct/releases/latest)
[![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)
[![PyPI version](https://img.shields.io/pypi/v/hcloud-selfdestruct)](https://pypi.org/project/hcloud-selfdestruct/)
[![PyPI Python version](https://img.shields.io/pypi/pyversions/hcloud-selfdestruct)](https://pypi.org/project/hcloud-selfdestruct/)
[![Mentioned in Awesome hcloud](.project/media/mentioned-badge.svg)](https://github.com/hetznercloud/awesome-hcloud)
[![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&ref=main&repo=565239435&machine=basicLinux32gb&devcontainer_path=.devcontainer%2Fdevcontainer.json&location=WestEurope)


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


> [!WARNING]
> This project is in early development and may not work as expected.


## Installation
```bash
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](https://github.com/caronc/apprise/wiki#notification-services)

Find the server id here (enter without "#")
![How to find the server id](./.project/media/howToFindServerId.png "How to find the server id")

## Not yet tested
- complete self detection

---
<p align="center">
  <i>© <a href="https://github.com/worldworm">worldworm</a> 2022-2024</i>
  <br><i>Licensed under <a href="https://github.com/worldworm/hcloud-selfdestruct/blob/main/LICENSE">MIT</a></i>
</p>

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/worldworm/hcloud-selfdestruct",
    "name": "hcloud-selfdestruct",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8,<4.0",
    "maintainer_email": "",
    "keywords": "selfdestruct,hcloud,hetzner",
    "author": "worldworm",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/c9/0c/96ba5c9cd056b494f4394f263c77e55ca61bc136790f75b2be01a3489ad5/hcloud_selfdestruct-0.1.1.tar.gz",
    "platform": null,
    "description": "<h1 align=\"center\">\ud83d\udca3 hcloud-selfdestruct</h1>\n<p align=\"center\">\n  <i>A cli tool to self destruct a hetzner cloud server</i>\n</p>\n\n<!-- Place https://shields.io/ badges here -->\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&logoColor=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&ref=main&repo=565239435&machine=basicLinux32gb&devcontainer_path=.devcontainer%2Fdevcontainer.json&location=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> [!WARNING]\n> 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 && hcloud-selfdestruct --api-token abcdefg &\n#-- or --\nsleep 1h && hcloud-selfdestruct --api-token abcdefg --server-id 12345678 --apprise-id gotify://example.com/token &\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> 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<p align=\"center\">\n  <i>\u00a9 <a href=\"https://github.com/worldworm\">worldworm</a> 2022-2024</i>\n  <br><i>Licensed under <a href=\"https://github.com/worldworm/hcloud-selfdestruct/blob/main/LICENSE\">MIT</a></i>\n</p>\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "cli tool to self destruct a hetzner cloud server",
    "version": "0.1.1",
    "project_urls": {
        "Homepage": "https://github.com/worldworm/hcloud-selfdestruct",
        "Repository": "https://github.com/worldworm/hcloud-selfdestruct"
    },
    "split_keywords": [
        "selfdestruct",
        "hcloud",
        "hetzner"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6e1e351fd38146f35a6685a769642e911c3af2392adaf5862b71b9a15b5c34d9",
                "md5": "0c29ecaac27d179d64f09c00c9cd0864",
                "sha256": "5ed8043bbb17988ec4162714ededcc18a107b2c92c31bf4d469963ebb41de6b2"
            },
            "downloads": -1,
            "filename": "hcloud_selfdestruct-0.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "0c29ecaac27d179d64f09c00c9cd0864",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8,<4.0",
            "size": 4712,
            "upload_time": "2024-01-05T16:36:58",
            "upload_time_iso_8601": "2024-01-05T16:36:58.271725Z",
            "url": "https://files.pythonhosted.org/packages/6e/1e/351fd38146f35a6685a769642e911c3af2392adaf5862b71b9a15b5c34d9/hcloud_selfdestruct-0.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c90c96ba5c9cd056b494f4394f263c77e55ca61bc136790f75b2be01a3489ad5",
                "md5": "8e3613fa67f1cb0534499a5657dc3391",
                "sha256": "500423936f297e03a3368b4be9abd9d67bd4f818559cdaa94727fbbe3ec051f0"
            },
            "downloads": -1,
            "filename": "hcloud_selfdestruct-0.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "8e3613fa67f1cb0534499a5657dc3391",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8,<4.0",
            "size": 3874,
            "upload_time": "2024-01-05T16:36:59",
            "upload_time_iso_8601": "2024-01-05T16:36:59.544760Z",
            "url": "https://files.pythonhosted.org/packages/c9/0c/96ba5c9cd056b494f4394f263c77e55ca61bc136790f75b2be01a3489ad5/hcloud_selfdestruct-0.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-05 16:36:59",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "worldworm",
    "github_project": "hcloud-selfdestruct",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "hcloud-selfdestruct"
}
        
Elapsed time: 0.71834s