eaf-base-api 2.1.1__tar.gz → 2.2.1__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.1.1 → eaf_base_api-2.2.1}/PKG-INFO +1 -1
- {eaf_base_api-2.1.1 → eaf_base_api-2.2.1}/base_api/base.py +15 -0
- {eaf_base_api-2.1.1 → eaf_base_api-2.2.1}/eaf_base_api.egg-info/PKG-INFO +1 -1
- {eaf_base_api-2.1.1 → eaf_base_api-2.2.1}/setup.py +1 -1
- {eaf_base_api-2.1.1 → eaf_base_api-2.2.1}/LICENSE +0 -0
- {eaf_base_api-2.1.1 → eaf_base_api-2.2.1}/README.md +0 -0
- {eaf_base_api-2.1.1 → eaf_base_api-2.2.1}/base_api/__init__.py +0 -0
- {eaf_base_api-2.1.1 → eaf_base_api-2.2.1}/base_api/modules/__init__.py +0 -0
- {eaf_base_api-2.1.1 → eaf_base_api-2.2.1}/base_api/modules/consts.py +0 -0
- {eaf_base_api-2.1.1 → eaf_base_api-2.2.1}/base_api/modules/progress_bars.py +0 -0
- {eaf_base_api-2.1.1 → eaf_base_api-2.2.1}/eaf_base_api.egg-info/SOURCES.txt +0 -0
- {eaf_base_api-2.1.1 → eaf_base_api-2.2.1}/eaf_base_api.egg-info/dependency_links.txt +0 -0
- {eaf_base_api-2.1.1 → eaf_base_api-2.2.1}/eaf_base_api.egg-info/requires.txt +0 -0
- {eaf_base_api-2.1.1 → eaf_base_api-2.2.1}/eaf_base_api.egg-info/top_level.txt +0 -0
- {eaf_base_api-2.1.1 → eaf_base_api-2.2.1}/setup.cfg +0 -0
|
@@ -416,3 +416,18 @@ class BaseCore:
|
|
|
416
416
|
path = args.output
|
|
417
417
|
|
|
418
418
|
return path
|
|
419
|
+
|
|
420
|
+
@classmethod
|
|
421
|
+
def truncate(cls, string_lol) -> str:
|
|
422
|
+
return string_lol[:200]
|
|
423
|
+
|
|
424
|
+
@staticmethod
|
|
425
|
+
def str_to_bool(value):
|
|
426
|
+
"""
|
|
427
|
+
This function is needed for the ArgumentParser for the CLI version of my APIs. It basically maps the
|
|
428
|
+
booleans for the --no-title option to valid Python boolean values.
|
|
429
|
+
"""
|
|
430
|
+
if value.lower() in ("true", "1", "yes"):
|
|
431
|
+
return True
|
|
432
|
+
elif value.lower() in ("false", "0", "no"):
|
|
433
|
+
return False
|
|
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
|