DPZC-03_IaaS/deploy.py
Maciej Sobkowiak 47b850c8a3 Base
2021-11-28 19:15:37 +01:00

17 lines
336 B
Python

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)