Skip to content

Commit

Permalink
global vars
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver-zehentleitner committed May 12, 2024
1 parent 5c6571a commit d8d93c3
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions unicorn_fy/unicorn_fy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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):
Expand Down

0 comments on commit d8d93c3

Please sign in to comment.