Initial commit

This commit is contained in:
PCoder 2019-09-13 10:32:23 +05:30
commit 48e012a131
6 changed files with 305 additions and 0 deletions

15
config.py Normal file
View file

@ -0,0 +1,15 @@
import logging
from etcd3_wrapper import Etcd3Wrapper
from decouple import config
logging.basicConfig(
level=logging.DEBUG,
filename="log.txt",
filemode="a",
format="%(asctime)s: %(levelname)s - %(message)s",
datefmt="%d-%b-%y %H:%M:%S",
)
etcd_client = Etcd3Wrapper(host=config("ETCD_HOST"), port=config("ETCD_PORT"))