17 lines
336 B
Python
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)
|