eaf-base-api 2.3.6__tar.gz → 2.3.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {eaf_base_api-2.3.6/eaf_base_api.egg-info → eaf_base_api-2.3.7}/PKG-INFO +1 -1
- {eaf_base_api-2.3.6 → eaf_base_api-2.3.7}/base_api/base.py +3 -2
- {eaf_base_api-2.3.6 → eaf_base_api-2.3.7/eaf_base_api.egg-info}/PKG-INFO +1 -1
- {eaf_base_api-2.3.6 → eaf_base_api-2.3.7}/setup.py +1 -1
- {eaf_base_api-2.3.6 → eaf_base_api-2.3.7}/LICENSE +0 -0
- {eaf_base_api-2.3.6 → eaf_base_api-2.3.7}/README.md +0 -0
- {eaf_base_api-2.3.6 → eaf_base_api-2.3.7}/base_api/__init__.py +0 -0
- {eaf_base_api-2.3.6 → eaf_base_api-2.3.7}/base_api/modules/__init__.py +0 -0
- {eaf_base_api-2.3.6 → eaf_base_api-2.3.7}/base_api/modules/config.py +0 -0
- {eaf_base_api-2.3.6 → eaf_base_api-2.3.7}/base_api/modules/errors.py +0 -0
- {eaf_base_api-2.3.6 → eaf_base_api-2.3.7}/base_api/modules/progress_bars.py +0 -0
- {eaf_base_api-2.3.6 → eaf_base_api-2.3.7}/eaf_base_api.egg-info/SOURCES.txt +0 -0
- {eaf_base_api-2.3.6 → eaf_base_api-2.3.7}/eaf_base_api.egg-info/dependency_links.txt +0 -0
- {eaf_base_api-2.3.6 → eaf_base_api-2.3.7}/eaf_base_api.egg-info/requires.txt +0 -0
- {eaf_base_api-2.3.6 → eaf_base_api-2.3.7}/eaf_base_api.egg-info/top_level.txt +0 -0
- {eaf_base_api-2.3.6 → eaf_base_api-2.3.7}/setup.cfg +0 -0
|
@@ -168,15 +168,16 @@ class BaseCore:
|
|
|
168
168
|
"""
|
|
169
169
|
The base class which has all necessary functions for other API packages
|
|
170
170
|
"""
|
|
171
|
-
def __init__(self, config=config):
|
|
171
|
+
def __init__(self, config=config, auto_init: bool = True):
|
|
172
172
|
self.last_request_time = time.time()
|
|
173
173
|
self.total_requests = 0 # Tracks how many requests have been made
|
|
174
174
|
self.session = None
|
|
175
175
|
self.kill_switch = False
|
|
176
176
|
self.config = config
|
|
177
177
|
self.cache = Cache(self.config)
|
|
178
|
-
self.initialize_session()
|
|
179
178
|
self.logger = setup_logger("BASE API - [BaseCore]", log_file=False, level=logging.ERROR)
|
|
179
|
+
if auto_init:
|
|
180
|
+
self.initialize_session()
|
|
180
181
|
|
|
181
182
|
def enable_logging(self, log_file=None, level=logging.DEBUG, log_ip=None, log_port=None):
|
|
182
183
|
"""
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|