core-https 1.1.4__tar.gz → 1.1.5__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-1.1.4 → core_https-1.1.5}/PKG-INFO +1 -1
- {core_https-1.1.4 → core_https-1.1.5}/core_https/exceptions.py +22 -1
- {core_https-1.1.4 → core_https-1.1.5}/core_https.egg-info/PKG-INFO +1 -1
- {core_https-1.1.4 → core_https-1.1.5}/pyproject.toml +1 -1
- {core_https-1.1.4 → core_https-1.1.5}/LICENSE +0 -0
- {core_https-1.1.4 → core_https-1.1.5}/README.md +0 -0
- {core_https-1.1.4 → core_https-1.1.5}/core_https/__init__.py +0 -0
- {core_https-1.1.4 → core_https-1.1.5}/core_https/requesters/__init__.py +0 -0
- {core_https-1.1.4 → core_https-1.1.5}/core_https/requesters/base.py +0 -0
- {core_https-1.1.4 → core_https-1.1.5}/core_https/requesters/url_lib3.py +0 -0
- {core_https-1.1.4 → core_https-1.1.5}/core_https/utils.py +0 -0
- {core_https-1.1.4 → core_https-1.1.5}/core_https.egg-info/SOURCES.txt +0 -0
- {core_https-1.1.4 → core_https-1.1.5}/core_https.egg-info/dependency_links.txt +0 -0
- {core_https-1.1.4 → core_https-1.1.5}/core_https.egg-info/requires.txt +0 -0
- {core_https-1.1.4 → core_https-1.1.5}/core_https.egg-info/top_level.txt +0 -0
- {core_https-1.1.4 → core_https-1.1.5}/setup.cfg +0 -0
- {core_https-1.1.4 → core_https-1.1.5}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: core-https
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.5
|
|
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
|
|
@@ -25,9 +25,23 @@ class ServiceException(InternalServerError):
|
|
|
25
25
|
class AuthenticationException(ServiceException):
|
|
26
26
|
""" Exception caused for authentication [401] issues """
|
|
27
27
|
|
|
28
|
+
def __init__(
|
|
29
|
+
self,
|
|
30
|
+
status_code: int = 403,
|
|
31
|
+
details: str = "Unauthorized"
|
|
32
|
+
) -> None:
|
|
33
|
+
super().__init__(status_code=status_code, details=details)
|
|
34
|
+
|
|
28
35
|
|
|
29
36
|
class AuthorizationException(ServiceException):
|
|
30
|
-
""" Exception caused for
|
|
37
|
+
""" Exception caused for authorization [403] issues """
|
|
38
|
+
|
|
39
|
+
def __init__(
|
|
40
|
+
self,
|
|
41
|
+
status_code: int = 403,
|
|
42
|
+
details: str = "Forbidden"
|
|
43
|
+
) -> None:
|
|
44
|
+
super().__init__(status_code=status_code, details=details)
|
|
31
45
|
|
|
32
46
|
|
|
33
47
|
class RateLimitException(ServiceException):
|
|
@@ -35,3 +49,10 @@ class RateLimitException(ServiceException):
|
|
|
35
49
|
Exception caused [429] when a client has sent too many requests
|
|
36
50
|
to a server within a given time frame.
|
|
37
51
|
"""
|
|
52
|
+
|
|
53
|
+
def __init__(
|
|
54
|
+
self,
|
|
55
|
+
status_code: int = 429,
|
|
56
|
+
details: str = "Too Many Requests"
|
|
57
|
+
) -> None:
|
|
58
|
+
super().__init__(status_code=status_code, details=details)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: core-https
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.5
|
|
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
|
|
@@ -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 = "1.1.
|
|
12
|
+
version = "1.1.5"
|
|
13
13
|
|
|
14
14
|
authors = [
|
|
15
15
|
{name = "Alejandro Cora González", email = "alek.cora.glez@gmail.com"}
|
|
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
|