core-https 2.0.0__tar.gz → 2.0.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.
- {core_https-2.0.0 → core_https-2.0.1}/PKG-INFO +3 -3
- {core_https-2.0.0 → core_https-2.0.1}/core_https/__init__.py +15 -2
- {core_https-2.0.0 → core_https-2.0.1}/core_https/requesters/aiohttp_.py +2 -7
- {core_https-2.0.0 → core_https-2.0.1}/core_https/utils.py +1 -6
- {core_https-2.0.0 → core_https-2.0.1}/core_https.egg-info/PKG-INFO +3 -3
- {core_https-2.0.0 → core_https-2.0.1}/core_https.egg-info/requires.txt +2 -2
- {core_https-2.0.0 → core_https-2.0.1}/pyproject.toml +3 -3
- {core_https-2.0.0 → core_https-2.0.1}/LICENSE +0 -0
- {core_https-2.0.0 → core_https-2.0.1}/README.rst +0 -0
- {core_https-2.0.0 → core_https-2.0.1}/core_https/exceptions.py +0 -0
- {core_https-2.0.0 → core_https-2.0.1}/core_https/py.typed +0 -0
- {core_https-2.0.0 → core_https-2.0.1}/core_https/requesters/__init__.py +0 -0
- {core_https-2.0.0 → core_https-2.0.1}/core_https/requesters/base.py +0 -0
- {core_https-2.0.0 → core_https-2.0.1}/core_https/requesters/requests_.py +0 -0
- {core_https-2.0.0 → core_https-2.0.1}/core_https/requesters/urllib3_.py +0 -0
- {core_https-2.0.0 → core_https-2.0.1}/core_https/tests/__init__.py +0 -0
- {core_https-2.0.0 → core_https-2.0.1}/core_https/tests/aiohttp_.py +0 -0
- {core_https-2.0.0 → core_https-2.0.1}/core_https/tests/base.py +0 -0
- {core_https-2.0.0 → core_https-2.0.1}/core_https/tests/decorators.py +0 -0
- {core_https-2.0.0 → core_https-2.0.1}/core_https/tests/requests_.py +0 -0
- {core_https-2.0.0 → core_https-2.0.1}/core_https/tests/urllib3_.py +0 -0
- {core_https-2.0.0 → core_https-2.0.1}/core_https.egg-info/SOURCES.txt +0 -0
- {core_https-2.0.0 → core_https-2.0.1}/core_https.egg-info/dependency_links.txt +0 -0
- {core_https-2.0.0 → core_https-2.0.1}/core_https.egg-info/top_level.txt +0 -0
- {core_https-2.0.0 → core_https-2.0.1}/setup.cfg +0 -0
- {core_https-2.0.0 → core_https-2.0.1}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: core-https
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.1
|
|
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
|
|
@@ -26,8 +26,8 @@ Requires-Python: >=3.9
|
|
|
26
26
|
Description-Content-Type: text/x-rst
|
|
27
27
|
License-File: LICENSE
|
|
28
28
|
Requires-Dist: aiohttp<4.0.0,>=3.12.0; python_version >= "3.9"
|
|
29
|
-
Requires-Dist: core-mixins>=2.
|
|
30
|
-
Requires-Dist: core-tests>=2.0.
|
|
29
|
+
Requires-Dist: core-mixins>=2.2.2
|
|
30
|
+
Requires-Dist: core-tests>=2.0.2
|
|
31
31
|
Requires-Dist: requests<3.0.0,>=2.32.3; python_version >= "3.9"
|
|
32
32
|
Requires-Dist: typing-extensions>=4.8.0; python_version >= "3.9" and python_version < "3.11"
|
|
33
33
|
Requires-Dist: urllib3<3.0.0,>=2.2.3; python_version >= "3.9"
|
|
@@ -1,10 +1,23 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
2
|
|
|
3
|
+
from core_mixins import StrEnum
|
|
4
|
+
|
|
3
5
|
try:
|
|
4
|
-
from
|
|
6
|
+
from http import HTTPStatus as _HTTPStatus
|
|
5
7
|
|
|
6
8
|
except ImportError:
|
|
7
|
-
from
|
|
9
|
+
from .utils import HTTPStatus as _HTTPStatus # type: ignore
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
__all__ = [
|
|
13
|
+
"HTTPStatus",
|
|
14
|
+
"StatusInfo"
|
|
15
|
+
]
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
# Type alias that works with both standard library
|
|
19
|
+
# and the custom HTTPStatus...
|
|
20
|
+
HTTPStatus = _HTTPStatus
|
|
8
21
|
|
|
9
22
|
|
|
10
23
|
class StatusInfo(StrEnum):
|
|
@@ -7,12 +7,6 @@ from typing import Any
|
|
|
7
7
|
from typing import Dict
|
|
8
8
|
from typing import Optional
|
|
9
9
|
|
|
10
|
-
try:
|
|
11
|
-
from typing import Self
|
|
12
|
-
|
|
13
|
-
except ImportError:
|
|
14
|
-
from typing_extensions import Self
|
|
15
|
-
|
|
16
10
|
from aiohttp import (
|
|
17
11
|
ClientResponse,
|
|
18
12
|
ClientResponseError,
|
|
@@ -20,9 +14,10 @@ from aiohttp import (
|
|
|
20
14
|
ClientTimeout,
|
|
21
15
|
TCPConnector,
|
|
22
16
|
)
|
|
17
|
+
from core_mixins import Self
|
|
23
18
|
|
|
24
|
-
from .base import IRequester
|
|
25
19
|
from .base import HTTPMethod
|
|
20
|
+
from .base import IRequester
|
|
26
21
|
|
|
27
22
|
|
|
28
23
|
class AioHttpRequester(IRequester):
|
|
@@ -50,12 +50,7 @@ See Also:
|
|
|
50
50
|
from enum import Enum
|
|
51
51
|
from typing import Dict
|
|
52
52
|
|
|
53
|
-
|
|
54
|
-
from typing import Self
|
|
55
|
-
|
|
56
|
-
except ImportError:
|
|
57
|
-
# For earlier versions...
|
|
58
|
-
from typing_extensions import Self
|
|
53
|
+
from core_mixins import Self
|
|
59
54
|
|
|
60
55
|
|
|
61
56
|
class HTTPStatus(Enum):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: core-https
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.1
|
|
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
|
|
@@ -26,8 +26,8 @@ Requires-Python: >=3.9
|
|
|
26
26
|
Description-Content-Type: text/x-rst
|
|
27
27
|
License-File: LICENSE
|
|
28
28
|
Requires-Dist: aiohttp<4.0.0,>=3.12.0; python_version >= "3.9"
|
|
29
|
-
Requires-Dist: core-mixins>=2.
|
|
30
|
-
Requires-Dist: core-tests>=2.0.
|
|
29
|
+
Requires-Dist: core-mixins>=2.2.2
|
|
30
|
+
Requires-Dist: core-tests>=2.0.2
|
|
31
31
|
Requires-Dist: requests<3.0.0,>=2.32.3; python_version >= "3.9"
|
|
32
32
|
Requires-Dist: typing-extensions>=4.8.0; python_version >= "3.9" and python_version < "3.11"
|
|
33
33
|
Requires-Dist: urllib3<3.0.0,>=2.2.3; python_version >= "3.9"
|
|
@@ -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 = "2.0.
|
|
12
|
+
version = "2.0.1"
|
|
13
13
|
|
|
14
14
|
authors = [
|
|
15
15
|
{name = "Alejandro Cora González", email = "alek.cora.glez@gmail.com"}
|
|
@@ -41,8 +41,8 @@ classifiers = [
|
|
|
41
41
|
|
|
42
42
|
dependencies = [
|
|
43
43
|
"aiohttp>=3.12.0,<4.0.0; python_version >= '3.9'",
|
|
44
|
-
"core-mixins>=2.
|
|
45
|
-
"core-tests>=2.0.
|
|
44
|
+
"core-mixins>=2.2.2",
|
|
45
|
+
"core-tests>=2.0.2",
|
|
46
46
|
"requests>=2.32.3,<3.0.0; python_version >= '3.9'",
|
|
47
47
|
"typing-extensions>=4.8.0; python_version >= '3.9' and python_version < '3.11'",
|
|
48
48
|
"urllib3>=2.2.3,<3.0.0; python_version >= '3.9'",
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|