4
0
mirror of https://github.com/QuasarApp/QuasarAppCI.git synced 2025-04-28 06:34:35 +00:00

20 lines
400 B
Python
Raw Normal View History

2019-07-22 16:56:56 +03:00
# This Python file uses the following encoding: utf-8
import json
from pathlib import Path
2019-12-26 11:29:22 +03:00
2019-07-22 16:56:56 +03:00
class SecretManager:
def __init__(self, jsFile):
2019-09-26 17:23:13 +03:00
try:
contents = Path(jsFile).read_text()
self.jsfile = json.loads(contents)
except:
pass
2019-07-22 16:56:56 +03:00
def getValue(self, key):
2019-09-26 17:23:13 +03:00
try:
return self.jsfile[key]
except:
pass