Automatically download and transform Hetzner invoices.
This tool is intended to help analyze Hetzner invoices with regards to cost distribution between different products used as well as infrastructure cost over time, in an automated way. The Hetzner website (to date) does not provide any means for that.
Dependencies:
- docker-compose
Clone the project and edit the docker-compose.yml
file to contain your credentials of your Hetzner account.
HETZNER_INVOICE_ACCOUNT_USER: <insert your username>
HETZNER_INVOICE_ACCOUNT_PW: <insert your password>
HETZNER_INVOICE_ACCOUNT_2FA_SECRET: <insert your 2FA secret>
Now, running docker-compose run app
will trigger the following:
- Scraping the Hetzner website for the last invoice in your account
- Downloading latest invoice and augmenting it with some more info
- Saving the data to a database.
To install the pre-commit hook, run pip install pre-commit
and then pre-commit install
.