clear-skies 1.19.26__py3-none-any.whl → 1.19.27__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.
Potentially problematic release.
This version of clear-skies might be problematic. Click here for more details.
- {clear_skies-1.19.26.dist-info → clear_skies-1.19.27.dist-info}/METADATA +1 -1
- {clear_skies-1.19.26.dist-info → clear_skies-1.19.27.dist-info}/RECORD +5 -5
- clearskies/input_outputs/cli.py +8 -0
- {clear_skies-1.19.26.dist-info → clear_skies-1.19.27.dist-info}/LICENSE +0 -0
- {clear_skies-1.19.26.dist-info → clear_skies-1.19.27.dist-info}/WHEEL +0 -0
|
@@ -154,7 +154,7 @@ clearskies/handlers/simple_search.py,sha256=bSfq8rzdqkBj-dTGUBSZ1EkfjzUWHID7mKD2
|
|
|
154
154
|
clearskies/handlers/update.py,sha256=rx8HW87Pfh95e_9nEfKKnxfkh2HBlCUdYqVwljtXiJ8,4116
|
|
155
155
|
clearskies/handlers/write.py,sha256=Gu1w1PQ1F7tlqCqALorMRek3UH6IkViPIO195dxPd8k,9372
|
|
156
156
|
clearskies/input_outputs/__init__.py,sha256=mQWL-u41FRTrPGuHe8FhLmcHjAEaUxjFwUf7RgDcbAs,182
|
|
157
|
-
clearskies/input_outputs/cli.py,sha256=
|
|
157
|
+
clearskies/input_outputs/cli.py,sha256=DCoSHn2fd7cwi4-3eZU_M0-Txk85PQNB1x6D_B50f1M,6529
|
|
158
158
|
clearskies/input_outputs/exceptions/__init__.py,sha256=bc5Tc1XBZnqA1fKbk7pk5hyx102vqx3sDE19E03xGk4,82
|
|
159
159
|
clearskies/input_outputs/exceptions/cli_input_error.py,sha256=kOFU8aLTLmeTL_AKDshxMu8_ufildg6p8ndhE1xHfb0,41
|
|
160
160
|
clearskies/input_outputs/exceptions/cli_not_found.py,sha256=JBBuZA9ZwdkPhd3a0qaGgEPQrxh1fehy4R3ZaV2gWXU,39
|
|
@@ -202,7 +202,7 @@ clearskies/tests/simple_api/models/__init__.py,sha256=nUA0W6fgXw_Bxa9CudkaDkC80t
|
|
|
202
202
|
clearskies/tests/simple_api/models/status.py,sha256=PEhPbaQh5qdUNHp8O0gz91LOLENAEBtqSaHxUPXchaM,699
|
|
203
203
|
clearskies/tests/simple_api/models/user.py,sha256=5_P4Tp1tTdX7PkMJ__epPM5MA7JAeVYGas69vcWloLc,819
|
|
204
204
|
clearskies/tests/simple_api/users_api.py,sha256=KYXCgEofDxHeRdQK67txN5oYUPvxxmB8JTku7L-apk4,2344
|
|
205
|
-
clear_skies-1.19.
|
|
206
|
-
clear_skies-1.19.
|
|
207
|
-
clear_skies-1.19.
|
|
208
|
-
clear_skies-1.19.
|
|
205
|
+
clear_skies-1.19.27.dist-info/LICENSE,sha256=3Ehd0g3YOpCj8sqj0Xjq5qbOtjjgk9qzhhD9YjRQgOA,1053
|
|
206
|
+
clear_skies-1.19.27.dist-info/METADATA,sha256=c9j9MWbb37TZ3JJzWLD9Tdr0eCocVDkNTyDCl-CeEf4,1712
|
|
207
|
+
clear_skies-1.19.27.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
|
|
208
|
+
clear_skies-1.19.27.dist-info/RECORD,,
|
clearskies/input_outputs/cli.py
CHANGED
|
@@ -13,6 +13,7 @@ class CLI:
|
|
|
13
13
|
_body_loaded_as_json = None
|
|
14
14
|
_body_as_json = None
|
|
15
15
|
_routing_data = None
|
|
16
|
+
_authorization_data = None
|
|
16
17
|
|
|
17
18
|
def __init__(self, sys):
|
|
18
19
|
self._sys = sys
|
|
@@ -20,6 +21,7 @@ class CLI:
|
|
|
20
21
|
self._kwargs = {}
|
|
21
22
|
self._request_method = None
|
|
22
23
|
self._parse_args(self._sys.argv)
|
|
24
|
+
self._authorization_data = None
|
|
23
25
|
|
|
24
26
|
def respond(self, response, status_code=200):
|
|
25
27
|
if status_code == 404:
|
|
@@ -172,3 +174,9 @@ class CLI:
|
|
|
172
174
|
|
|
173
175
|
def get_client_ip(self):
|
|
174
176
|
return "cli"
|
|
177
|
+
|
|
178
|
+
def set_authorization_data(self, data):
|
|
179
|
+
self._authorization_data = data
|
|
180
|
+
|
|
181
|
+
def get_authorization_data(self):
|
|
182
|
+
return self._authorization_data if self._authorization_data else {}
|
|
File without changes
|
|
File without changes
|