From d8d93c3a9ee5559952a0583250d6308f791744b4 Mon Sep 17 00:00:00 2001 From: Oliver Date: Sun, 12 May 2024 10:58:01 +0200 Subject: [PATCH] global vars --- unicorn_fy/unicorn_fy.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/unicorn_fy/unicorn_fy.py b/unicorn_fy/unicorn_fy.py index 2669022..f750aa7 100755 --- a/unicorn_fy/unicorn_fy.py +++ b/unicorn_fy/unicorn_fy.py @@ -44,7 +44,10 @@ import time import ujson as json -logger = logging.getLogger("unicorn_fy") +__app_name__: str = "unicorn-fy" +__version__: str = "0.14.2.dev" +__logger__ = logging.getLogger("unicorn_fy") +logger = __logger__ class UnicornFy(object): @@ -61,13 +64,15 @@ class UnicornFy(object): - trBinance.com - Binance.org """ - VERSION = "0.14.2.dev" def __init__(self, debug=False): self.last_update_check_github = {'timestamp': time.time(), 'status': None} + self.name = __app_name__ + self.version = __version__ + if debug is True: - logger.info(f"New instance of unicorn-fy_{self.VERSION}-{'compiled' if cython.compiled else 'source'} on " + logger.info(f"New instance of unicorn-fy_{__version__}-{'compiled' if cython.compiled else 'source'} on " f"{str(platform.system())} {str(platform.release())} started ...") def __enter__(self):