Base
This commit is contained in:
parent
e7529ec042
commit
47b850c8a3
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
venv/
|
||||
config.json
|
16
deploy.py
16
deploy.py
@ -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
BIN
requirements.txt
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user