core-https 1.1.2__tar.gz → 1.1.4__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,12 +1,13 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: core-https
3
- Version: 1.1.2
3
+ Version: 1.1.4
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
7
7
  License: MIT
8
8
  Project-URL: Homepage, https://gitlab.com/bytecode-solutions/core/core-https
9
9
  Project-URL: Repository, https://gitlab.com/bytecode-solutions/core/core-https
10
+ Project-URL: Documentation, https://core-https.readthedocs.io/en/latest/
10
11
  Project-URL: Issues, https://gitlab.com/bytecode-solutions/core/core-https/-/issues
11
12
  Project-URL: Changelog, https://gitlab.com/bytecode-solutions/core/core-https/-/blob/master/CHANGELOG.md
12
13
  Classifier: License :: OSI Approved :: MIT License
@@ -31,37 +32,42 @@ Requires-Dist: urllib3>=2.2.3; python_version >= "3.8"
31
32
  Requires-Dist: urllib3>=1.26.20; python_version >= "3.7" and python_version < "3.8"
32
33
  Requires-Dist: typing-extensions>=4.8.0; python_version >= "3.8" and python_version < "3.11"
33
34
  Requires-Dist: typing-extensions>=4.2.0; python_version >= "3.7" and python_version < "3.8"
35
+ Provides-Extra: docs
36
+ Requires-Dist: pydata-sphinx-theme==0.16.1; extra == "docs"
37
+ Requires-Dist: Sphinx==8.2.3; extra == "docs"
38
+ Dynamic: license-file
34
39
 
35
40
  # core-https
36
41
  _______________________________________________________________________________
37
42
 
38
- This project/library contains common elements related to HTTP & API services...
43
+ This project/library contains common elements related to HTTP...
39
44
 
40
45
  ## Execution Environment
41
46
 
42
47
  ### Install libraries
43
- ```commandline
48
+ ```shell
44
49
  pip install --upgrade pip
45
50
  pip install virtualenv
46
51
  ```
47
52
 
48
53
  ### Create the Python Virtual Environment.
49
- ```commandline
54
+ ```shell
55
+ virtualenv --python={{python-version}} .venv
50
56
  virtualenv --python=python3.11 .venv
51
57
  ```
52
58
 
53
59
  ### Activate the Virtual Environment.
54
- ```commandline
60
+ ```shell
55
61
  source .venv/bin/activate
56
62
  ```
57
63
 
58
64
  ### Install required libraries.
59
- ```commandline
65
+ ```shell
60
66
  pip install .
61
67
  ```
62
68
 
63
69
  ### Check tests and coverage...
64
- ```commandline
70
+ ```shell
65
71
  python manager.py run-test
66
72
  python manager.py run-coverage
67
73
  ```
@@ -1,33 +1,34 @@
1
1
  # core-https
2
2
  _______________________________________________________________________________
3
3
 
4
- This project/library contains common elements related to HTTP & API services...
4
+ This project/library contains common elements related to HTTP...
5
5
 
6
6
  ## Execution Environment
7
7
 
8
8
  ### Install libraries
9
- ```commandline
9
+ ```shell
10
10
  pip install --upgrade pip
11
11
  pip install virtualenv
12
12
  ```
13
13
 
14
14
  ### Create the Python Virtual Environment.
15
- ```commandline
15
+ ```shell
16
+ virtualenv --python={{python-version}} .venv
16
17
  virtualenv --python=python3.11 .venv
17
18
  ```
18
19
 
19
20
  ### Activate the Virtual Environment.
20
- ```commandline
21
+ ```shell
21
22
  source .venv/bin/activate
22
23
  ```
23
24
 
24
25
  ### Install required libraries.
25
- ```commandline
26
+ ```shell
26
27
  pip install .
27
28
  ```
28
29
 
29
30
  ### Check tests and coverage...
30
- ```commandline
31
+ ```shell
31
32
  python manager.py run-test
32
33
  python manager.py run-coverage
33
34
  ```
@@ -18,9 +18,20 @@ class InternalServerError(Exception):
18
18
  }
19
19
 
20
20
 
21
- class AuthorizationException(InternalServerError):
22
- """ Exception caused for authentication (401, 403) issues """
23
-
24
-
25
21
  class ServiceException(InternalServerError):
26
22
  """ Exception caused for handled errors within the service """
23
+
24
+
25
+ class AuthenticationException(ServiceException):
26
+ """ Exception caused for authentication [401] issues """
27
+
28
+
29
+ class AuthorizationException(ServiceException):
30
+ """ Exception caused for authentication [403] issues """
31
+
32
+
33
+ class RateLimitException(ServiceException):
34
+ """
35
+ Exception caused [429] when a client has sent too many requests
36
+ to a server within a given time frame.
37
+ """
@@ -1,12 +1,13 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: core-https
3
- Version: 1.1.2
3
+ Version: 1.1.4
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
7
7
  License: MIT
8
8
  Project-URL: Homepage, https://gitlab.com/bytecode-solutions/core/core-https
9
9
  Project-URL: Repository, https://gitlab.com/bytecode-solutions/core/core-https
10
+ Project-URL: Documentation, https://core-https.readthedocs.io/en/latest/
10
11
  Project-URL: Issues, https://gitlab.com/bytecode-solutions/core/core-https/-/issues
11
12
  Project-URL: Changelog, https://gitlab.com/bytecode-solutions/core/core-https/-/blob/master/CHANGELOG.md
12
13
  Classifier: License :: OSI Approved :: MIT License
@@ -31,37 +32,42 @@ Requires-Dist: urllib3>=2.2.3; python_version >= "3.8"
31
32
  Requires-Dist: urllib3>=1.26.20; python_version >= "3.7" and python_version < "3.8"
32
33
  Requires-Dist: typing-extensions>=4.8.0; python_version >= "3.8" and python_version < "3.11"
33
34
  Requires-Dist: typing-extensions>=4.2.0; python_version >= "3.7" and python_version < "3.8"
35
+ Provides-Extra: docs
36
+ Requires-Dist: pydata-sphinx-theme==0.16.1; extra == "docs"
37
+ Requires-Dist: Sphinx==8.2.3; extra == "docs"
38
+ Dynamic: license-file
34
39
 
35
40
  # core-https
36
41
  _______________________________________________________________________________
37
42
 
38
- This project/library contains common elements related to HTTP & API services...
43
+ This project/library contains common elements related to HTTP...
39
44
 
40
45
  ## Execution Environment
41
46
 
42
47
  ### Install libraries
43
- ```commandline
48
+ ```shell
44
49
  pip install --upgrade pip
45
50
  pip install virtualenv
46
51
  ```
47
52
 
48
53
  ### Create the Python Virtual Environment.
49
- ```commandline
54
+ ```shell
55
+ virtualenv --python={{python-version}} .venv
50
56
  virtualenv --python=python3.11 .venv
51
57
  ```
52
58
 
53
59
  ### Activate the Virtual Environment.
54
- ```commandline
60
+ ```shell
55
61
  source .venv/bin/activate
56
62
  ```
57
63
 
58
64
  ### Install required libraries.
59
- ```commandline
65
+ ```shell
60
66
  pip install .
61
67
  ```
62
68
 
63
69
  ### Check tests and coverage...
64
- ```commandline
70
+ ```shell
65
71
  python manager.py run-test
66
72
  python manager.py run-coverage
67
73
  ```
@@ -10,3 +10,7 @@ urllib3>=2.2.3
10
10
 
11
11
  [:python_version >= "3.8" and python_version < "3.11"]
12
12
  typing-extensions>=4.8.0
13
+
14
+ [docs]
15
+ pydata-sphinx-theme==0.16.1
16
+ Sphinx==8.2.3
@@ -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.2"
12
+ version = "1.1.4"
13
13
 
14
14
  authors = [
15
15
  {name = "Alejandro Cora González", email = "alek.cora.glez@gmail.com"}
@@ -49,11 +49,15 @@ dependencies = [
49
49
  "typing-extensions>=4.2.0; python_version >= '3.7' and python_version < '3.8'"
50
50
  ]
51
51
 
52
- #[project.optional-dependencies]
53
- #test = []
52
+ [project.optional-dependencies]
53
+ docs = [
54
+ "pydata-sphinx-theme==0.16.1",
55
+ "Sphinx==8.2.3"
56
+ ]
54
57
 
55
58
  [project.urls]
56
59
  Homepage = "https://gitlab.com/bytecode-solutions/core/core-https"
57
60
  Repository = "https://gitlab.com/bytecode-solutions/core/core-https"
61
+ Documentation = "https://core-https.readthedocs.io/en/latest/"
58
62
  Issues = "https://gitlab.com/bytecode-solutions/core/core-https/-/issues"
59
63
  Changelog = "https://gitlab.com/bytecode-solutions/core/core-https/-/blob/master/CHANGELOG.md"
File without changes
File without changes
File without changes