eaf-base-api 2.2__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: eaf_base_api
3
- Version: 2.2
3
+ Version: 2.2.1
4
4
  Summary: A base API for EchterAlsFake's Porn APIs
5
5
  Home-page: https://github.com/EchterAlsFake/eaf_base_api
6
6
  Author: Johannes Habel
@@ -419,4 +419,15 @@ class BaseCore:
419
419
 
420
420
  @classmethod
421
421
  def truncate(cls, string_lol) -> str:
422
- return string_lol[:200]
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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: eaf_base_api
3
- Version: 2.2
3
+ Version: 2.2.1
4
4
  Summary: A base API for EchterAlsFake's Porn APIs
5
5
  Home-page: https://github.com/EchterAlsFake/eaf_base_api
6
6
  Author: Johannes Habel
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="eaf_base_api",
5
- version="2.2",
5
+ version="2.2.1",
6
6
  packages=find_packages(),
7
7
  install_requires=["ffmpeg-progress-yield", "m3u8", "httpx"],
8
8
  entry_points={
File without changes
File without changes
File without changes