core-https 3.0.0__tar.gz → 3.1.0__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.
Files changed (28) hide show
  1. {core_https-3.0.0 → core_https-3.1.0}/PKG-INFO +4 -4
  2. {core_https-3.0.0 → core_https-3.1.0}/core_https/__init__.py +20 -6
  3. {core_https-3.0.0 → core_https-3.1.0}/core_https/requesters/aiohttp_.py +1 -1
  4. {core_https-3.0.0 → core_https-3.1.0}/core_https.egg-info/PKG-INFO +4 -4
  5. {core_https-3.0.0 → core_https-3.1.0}/core_https.egg-info/requires.txt +3 -3
  6. {core_https-3.0.0 → core_https-3.1.0}/pyproject.toml +4 -4
  7. {core_https-3.0.0 → core_https-3.1.0}/LICENSE +0 -0
  8. {core_https-3.0.0 → core_https-3.1.0}/README.rst +0 -0
  9. {core_https-3.0.0 → core_https-3.1.0}/core_https/exceptions.py +0 -0
  10. {core_https-3.0.0 → core_https-3.1.0}/core_https/py.typed +0 -0
  11. {core_https-3.0.0 → core_https-3.1.0}/core_https/requesters/__init__.py +0 -0
  12. {core_https-3.0.0 → core_https-3.1.0}/core_https/requesters/aiohttp_rate_limit.py +0 -0
  13. {core_https-3.0.0 → core_https-3.1.0}/core_https/requesters/aiohttp_throttle.py +0 -0
  14. {core_https-3.0.0 → core_https-3.1.0}/core_https/requesters/base.py +0 -0
  15. {core_https-3.0.0 → core_https-3.1.0}/core_https/requesters/requests_.py +0 -0
  16. {core_https-3.0.0 → core_https-3.1.0}/core_https/requesters/urllib3_.py +0 -0
  17. {core_https-3.0.0 → core_https-3.1.0}/core_https/tests/__init__.py +0 -0
  18. {core_https-3.0.0 → core_https-3.1.0}/core_https/tests/aiohttp_.py +0 -0
  19. {core_https-3.0.0 → core_https-3.1.0}/core_https/tests/base.py +0 -0
  20. {core_https-3.0.0 → core_https-3.1.0}/core_https/tests/decorators.py +0 -0
  21. {core_https-3.0.0 → core_https-3.1.0}/core_https/tests/requests_.py +0 -0
  22. {core_https-3.0.0 → core_https-3.1.0}/core_https/tests/urllib3_.py +0 -0
  23. {core_https-3.0.0 → core_https-3.1.0}/core_https/utils.py +0 -0
  24. {core_https-3.0.0 → core_https-3.1.0}/core_https.egg-info/SOURCES.txt +0 -0
  25. {core_https-3.0.0 → core_https-3.1.0}/core_https.egg-info/dependency_links.txt +0 -0
  26. {core_https-3.0.0 → core_https-3.1.0}/core_https.egg-info/top_level.txt +0 -0
  27. {core_https-3.0.0 → core_https-3.1.0}/setup.cfg +0 -0
  28. {core_https-3.0.0 → core_https-3.1.0}/setup.py +0 -0
@@ -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,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,12 +1,12 @@
1
1
  aiohttp<4.0.0,>=3.12.0
2
- core-mixins>=3.0.1
2
+ core-mixins>=3.2.0
3
3
  requests<3.0.0,>=2.32.3
4
4
  urllib3<3.0.0,>=2.2.3
5
5
 
6
6
  [dev]
7
7
  aiolimiter<2.0.0,>=1.2.1
8
- core-dev-tools>=1.2.1
9
- core-tests>=2.0.5
8
+ core-dev-tools>=2.0.0
9
+ core-tests>=2.1.0
10
10
  types-requests>=2.32.0.20250602
11
11
 
12
12
  [extras]
@@ -9,7 +9,7 @@ build-backend = "setuptools.build_meta"
9
9
  [project]
10
10
  name = "core-https"
11
11
  description = "This project/library contains common elements related to HTTP & API services..."
12
- version = "3.0.0"
12
+ version = "3.1.0"
13
13
 
14
14
  authors = [
15
15
  {name = "Alejandro Cora González", email = "alek.cora.glez@gmail.com"}
@@ -42,7 +42,7 @@ classifiers = [
42
42
 
43
43
  dependencies = [
44
44
  "aiohttp>=3.12.0,<4.0.0",
45
- "core-mixins>=3.0.1",
45
+ "core-mixins>=3.2.0",
46
46
  "requests>=2.32.3,<3.0.0",
47
47
  "urllib3>=2.2.3,<3.0.0",
48
48
  ]
@@ -50,8 +50,8 @@ dependencies = [
50
50
  [project.optional-dependencies]
51
51
  dev = [
52
52
  "aiolimiter>=1.2.1,<2.0.0",
53
- "core-dev-tools>=1.2.1",
54
- "core-tests>=2.0.5",
53
+ "core-dev-tools>=2.0.0",
54
+ "core-tests>=2.1.0",
55
55
  "types-requests>=2.32.0.20250602",
56
56
  ]
57
57
 
File without changes
File without changes
File without changes
File without changes