This commit is contained in:
Maciej Sobkowiak 2021-11-28 19:15:37 +01:00
parent e7529ec042
commit 47b850c8a3
3 changed files with 18 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
venv/
config.json

View File

@ -0,0 +1,16 @@
import json
from hcloud import Client
class Client_MS:
def __init__(self) -> None:
self.config = self.load_config()
self.client = Client(token=self.config["token"])
def load_config(self):
with open('config.json') as json_file:
return json.load(json_file)
c = Client_MS()
print(c.client)

BIN
requirements.txt Normal file

Binary file not shown.