core-https 3.0.0__py3-none-any.whl → 3.1.0__py3-none-any.whl

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.
core_https/__init__.py CHANGED
@@ -1,8 +1,14 @@
1
1
  # -*- coding: utf-8 -*-
2
2
 
3
- """Public API for the core_https package: HTTP status codes and status info enum."""
3
+ """
4
+ Public API for the core_https package: HTTP status codes
5
+ and status info enum.
6
+ """
4
7
 
5
- from core_mixins import StrEnum
8
+ from importlib.metadata import PackageNotFoundError
9
+ from importlib.metadata import version
10
+
11
+ from core_mixins.compatibility import StrEnum
6
12
 
7
13
  try:
8
14
  from http import HTTPStatus as _HTTPStatus
@@ -11,10 +17,11 @@ except ImportError:
11
17
  from .utils import HTTPStatus as _HTTPStatus
12
18
 
13
19
 
14
- __all__ = [
15
- "HTTPStatus",
16
- "StatusInfo"
17
- ]
20
+ try:
21
+ __version__ = version("core-https")
22
+
23
+ except PackageNotFoundError:
24
+ __version__ = "unknown"
18
25
 
19
26
 
20
27
  # Type alias that works with both standard library
@@ -35,3 +42,10 @@ class StatusInfo(StrEnum):
35
42
  SUCCESS = "success"
36
43
  ERROR = "error"
37
44
  FAILURE = "failure"
45
+
46
+
47
+ __all__ = [
48
+ "__version__",
49
+ "HTTPStatus",
50
+ "StatusInfo"
51
+ ]
@@ -17,7 +17,7 @@ from aiohttp import (
17
17
  ClientTimeout,
18
18
  TCPConnector,
19
19
  )
20
- from core_mixins import Self
20
+ from core_mixins.compatibility import Self
21
21
 
22
22
  from core_https.exceptions import RetryableException
23
23
  from .base import HTTPMethod
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: core-https
3
- Version: 3.0.0
3
+ Version: 3.1.0
4
4
  Summary: This project/library contains common elements related to HTTP & API services...
5
5
  Author-email: Alejandro Cora González <alek.cora.glez@gmail.com>
6
6
  Maintainer: Alejandro Cora González
@@ -27,13 +27,13 @@ Requires-Python: >=3.9
27
27
  Description-Content-Type: text/x-rst
28
28
  License-File: LICENSE
29
29
  Requires-Dist: aiohttp<4.0.0,>=3.12.0
30
- Requires-Dist: core-mixins>=3.0.1
30
+ Requires-Dist: core-mixins>=3.2.0
31
31
  Requires-Dist: requests<3.0.0,>=2.32.3
32
32
  Requires-Dist: urllib3<3.0.0,>=2.2.3
33
33
  Provides-Extra: dev
34
34
  Requires-Dist: aiolimiter<2.0.0,>=1.2.1; extra == "dev"
35
- Requires-Dist: core-dev-tools>=1.2.1; extra == "dev"
36
- Requires-Dist: core-tests>=2.0.5; extra == "dev"
35
+ Requires-Dist: core-dev-tools>=2.0.0; extra == "dev"
36
+ Requires-Dist: core-tests>=2.1.0; extra == "dev"
37
37
  Requires-Dist: types-requests>=2.32.0.20250602; extra == "dev"
38
38
  Provides-Extra: extras
39
39
  Requires-Dist: aiolimiter<2.0.0,>=1.2.1; extra == "extras"
@@ -1,9 +1,9 @@
1
- core_https/__init__.py,sha256=w1JnjhsgP42wiu2thcHFe2claOKgWvvnfFyIaKi3Q_Y,806
1
+ core_https/__init__.py,sha256=-7M1Xlzb68X8hc9Mw24gTBkXybc_MfekBwg6CDwCmGc,1038
2
2
  core_https/exceptions.py,sha256=l0NKIGi5NeJ2Aw-231txK24CIv-tgceKBvP2_u2i3jw,4961
3
3
  core_https/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  core_https/utils.py,sha256=PJbKgOFAXAMTfwcuIFMK2zKwdqFIPh8ixJDgpzdhmFA,12262
5
5
  core_https/requesters/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
- core_https/requesters/aiohttp_.py,sha256=n7vn7Jw2I5y1C72H4udUnDg2JCCi9wfMTocG9-QP6Tw,11315
6
+ core_https/requesters/aiohttp_.py,sha256=nDnjSb9rxi2HYOkAQPQ_Ypi2irG_WWoFY-Oiy6rg1HA,11329
7
7
  core_https/requesters/aiohttp_rate_limit.py,sha256=_qEwu2QvNAu0DcxSxKaIEQF4du_4_NcHhVwdcDAO9DI,2096
8
8
  core_https/requesters/aiohttp_throttle.py,sha256=gC_UURL6rgOOHON2qGLK8hByLOYrlxCIy4bDlWedwPc,2336
9
9
  core_https/requesters/base.py,sha256=rzZ-MOBDBS17GWQwD4-_LWszpOv1vCReRyRY9RpylT8,16578
@@ -15,8 +15,8 @@ core_https/tests/base.py,sha256=Nx_nLR7927F1UShva3YJ5gkqtKQaU6g2rpkO__Ph5qg,3436
15
15
  core_https/tests/decorators.py,sha256=9wa_omtkJ7ImUDOyy69vYRt-Ulzkah4H2UT7gjAhtxQ,12947
16
16
  core_https/tests/requests_.py,sha256=Wja7zI_zkOH8DNnY3RJCJQSPghkVS36-WGZSee4ZSmE,8294
17
17
  core_https/tests/urllib3_.py,sha256=zKYroybSItnWa7BU1bGG4HSh0O7H1jNn6JKDLUPx5Nc,13210
18
- core_https-3.0.0.dist-info/licenses/LICENSE,sha256=dj8Wz7OWOIOTyLJzaYLn8RFz_W5uYWSGR2xS5lHNAl4,1082
19
- core_https-3.0.0.dist-info/METADATA,sha256=Q2Awwg9uDRhKLIPxVkaCEBAIhmlS9SReGOjI7fOnb04,6978
20
- core_https-3.0.0.dist-info/WHEEL,sha256=YCfwYGOYMi5Jhw2fU4yNgwErybb2IX5PEwBKV4ZbdBo,91
21
- core_https-3.0.0.dist-info/top_level.txt,sha256=Ufm6w6dLS6hyTPwMUXt4O6klJfLyKpkaG6csd2kmaDw,11
22
- core_https-3.0.0.dist-info/RECORD,,
18
+ core_https-3.1.0.dist-info/licenses/LICENSE,sha256=dj8Wz7OWOIOTyLJzaYLn8RFz_W5uYWSGR2xS5lHNAl4,1082
19
+ core_https-3.1.0.dist-info/METADATA,sha256=jZTPFoO6w5484n8LaUwRMNKI_9MxLqA3vNPzne4-SpU,6978
20
+ core_https-3.1.0.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
21
+ core_https-3.1.0.dist-info/top_level.txt,sha256=Ufm6w6dLS6hyTPwMUXt4O6klJfLyKpkaG6csd2kmaDw,11
22
+ core_https-3.1.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (82.0.0)
2
+ Generator: setuptools (82.0.1)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5