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:
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:
1) Scraping the Hetzner website for the last invoice in your account
2) Downloading latest invoice and augmenting it with some more info
3) Saving the data to a database.
To install the pre-commit hook, run pip install pre-commit
and then pre-commit install
.