DPZC-03_IaaS/deploy.py

17 lines
336 B
Python
Raw Normal View History

2021-11-28 19:15:37 +01:00
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)