atomicshop 3.3.13__py3-none-any.whl → 3.3.14__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 atomicshop might be problematic. Click here for more details.
- atomicshop/__init__.py +1 -1
- atomicshop/web.py +14 -10
- {atomicshop-3.3.13.dist-info → atomicshop-3.3.14.dist-info}/METADATA +2 -1
- {atomicshop-3.3.13.dist-info → atomicshop-3.3.14.dist-info}/RECORD +7 -8
- atomicshop-3.3.13.dist-info/entry_points.txt +0 -2
- {atomicshop-3.3.13.dist-info → atomicshop-3.3.14.dist-info}/WHEEL +0 -0
- {atomicshop-3.3.13.dist-info → atomicshop-3.3.14.dist-info}/licenses/LICENSE.txt +0 -0
- {atomicshop-3.3.13.dist-info → atomicshop-3.3.14.dist-info}/top_level.txt +0 -0
atomicshop/__init__.py
CHANGED
atomicshop/web.py
CHANGED
|
@@ -157,12 +157,15 @@ def download(
|
|
|
157
157
|
target_directory: str = None,
|
|
158
158
|
file_name: str = None,
|
|
159
159
|
headers: dict = None,
|
|
160
|
-
use_certifi_ca_repository: bool = False,
|
|
160
|
+
# use_certifi_ca_repository: bool = False,
|
|
161
161
|
**kwargs
|
|
162
|
-
) -> str:
|
|
162
|
+
) -> str | None:
|
|
163
163
|
"""
|
|
164
164
|
The function receives url and target filesystem directory to download the file.
|
|
165
165
|
|
|
166
|
+
Note: Install 'pip-system-certs' package if you want to use system's CA store for SSL context
|
|
167
|
+
in an environment where 'certifi' package is installed.
|
|
168
|
+
|
|
166
169
|
:param file_url: full URL to download the file.
|
|
167
170
|
:param target_directory: The directory on the filesystem to save the file to.
|
|
168
171
|
If not specified, temporary directory will be used.
|
|
@@ -200,14 +203,15 @@ def download(
|
|
|
200
203
|
print_api.print_api(f'To: {file_path}', **kwargs)
|
|
201
204
|
|
|
202
205
|
# Open the URL for data gathering with SSL context.
|
|
203
|
-
if not use_certifi_ca_repository:
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
else:
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
206
|
+
# if not use_certifi_ca_repository:
|
|
207
|
+
# # Create a default SSL context using the system's CA store.
|
|
208
|
+
# ssl_context = ssl.create_default_context()
|
|
209
|
+
# else:
|
|
210
|
+
|
|
211
|
+
# Create a default SSL context using the certifi CA store.
|
|
212
|
+
# This is useful for environments where the system's CA store is not available or not trusted.
|
|
213
|
+
# 'certifi.where()' returns the path to the certifi CA bundle.
|
|
214
|
+
ssl_context = ssl.create_default_context(cafile=certifi.where())
|
|
211
215
|
|
|
212
216
|
# In order to use 'urllib.request', it is not enough to 'import urllib', you need to 'import urllib.request'.
|
|
213
217
|
# Build a Request object with headers if provided.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: atomicshop
|
|
3
|
-
Version: 3.3.
|
|
3
|
+
Version: 3.3.14
|
|
4
4
|
Summary: Atomic functions and classes to make developer life easier
|
|
5
5
|
Author: Denis Kras
|
|
6
6
|
License-Expression: MIT
|
|
@@ -28,6 +28,7 @@ Requires-Dist: openpyxl
|
|
|
28
28
|
Requires-Dist: pandas
|
|
29
29
|
Requires-Dist: paramiko
|
|
30
30
|
Requires-Dist: pefile
|
|
31
|
+
Requires-Dist: pip-system-certs
|
|
31
32
|
Requires-Dist: playwright
|
|
32
33
|
Requires-Dist: protobuf
|
|
33
34
|
Requires-Dist: psutil
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
atomicshop/__init__.py,sha256=
|
|
1
|
+
atomicshop/__init__.py,sha256=debK84uDGgKHJ_4iS_NawX5O0cgsZh-k1lWv7rnptCA,123
|
|
2
2
|
atomicshop/_basics_temp.py,sha256=6cu2dd6r2dLrd1BRNcVDKTHlsHs_26Gpw8QS6v32lQ0,3699
|
|
3
3
|
atomicshop/_create_pdf_demo.py,sha256=Yi-PGZuMg0RKvQmLqVeLIZYadqEZwUm-4A9JxBl_vYA,3713
|
|
4
4
|
atomicshop/_patch_import.py,sha256=ENp55sKVJ0e6-4lBvZnpz9PQCt3Otbur7F6aXDlyje4,6334
|
|
@@ -48,7 +48,7 @@ atomicshop/uuids.py,sha256=JSQdm3ZTJiwPQ1gYe6kU0TKS_7suwVrHc8JZDGYlydM,2214
|
|
|
48
48
|
atomicshop/venvs.py,sha256=D9lwOoObkYoRx-weuoAmbvN-RdSHhVm4DE9TVl-utAs,903
|
|
49
49
|
atomicshop/versioning.py,sha256=e5W6m9AF3__M5nntqI9CqNAeHqkwY9JhlnpYeZ1CEus,970
|
|
50
50
|
atomicshop/virtualization.py,sha256=LPP4vjE0Vr10R6DA4lqhfX_WaNdDGRAZUW0Am6VeGco,494
|
|
51
|
-
atomicshop/web.py,sha256=
|
|
51
|
+
atomicshop/web.py,sha256=syPmJLkV8j7zdn8cb_VPOB-zD0wJMr3metnrJHm3Hm0,13189
|
|
52
52
|
atomicshop/websocket_parse.py,sha256=aLHWyKqaYqEn_MRBWm2L6rIl6QPmqbVrjEXE_rBzwCw,16711
|
|
53
53
|
atomicshop/a_installs/ubuntu/docker_rootless.py,sha256=9IPNtGZYjfy1_n6ZRt7gWz9KZgR6XCgevjqq02xk-o0,281
|
|
54
54
|
atomicshop/a_installs/ubuntu/docker_sudo.py,sha256=JzayxeyKDtiuT4Icp2L2LyFRbx4wvpyN_bHLfZ-yX5E,281
|
|
@@ -318,9 +318,8 @@ atomicshop/wrappers/socketw/statistics_csv.py,sha256=_gA8bMX6Sw_UCXKi2y9wNAwlqif
|
|
|
318
318
|
atomicshop/wrappers/winregw/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
319
319
|
atomicshop/wrappers/winregw/winreg_installed_software.py,sha256=Qzmyktvob1qp6Tjk2DjLfAqr_yXV0sgWzdMW_9kwNjY,2345
|
|
320
320
|
atomicshop/wrappers/winregw/winreg_network.py,sha256=ih0BVNwByLvf9F_Lac4EdmDYYJA3PzMvmG0PieDZrsE,9905
|
|
321
|
-
atomicshop-3.3.
|
|
322
|
-
atomicshop-3.3.
|
|
323
|
-
atomicshop-3.3.
|
|
324
|
-
atomicshop-3.3.
|
|
325
|
-
atomicshop-3.3.
|
|
326
|
-
atomicshop-3.3.13.dist-info/RECORD,,
|
|
321
|
+
atomicshop-3.3.14.dist-info/licenses/LICENSE.txt,sha256=lLU7EYycfYcK2NR_1gfnhnRC8b8ccOTElACYplgZN88,1094
|
|
322
|
+
atomicshop-3.3.14.dist-info/METADATA,sha256=fJyUo62FOFuh2wMAlAnxRwsXJSWpggmeXAuwJpKdljU,9345
|
|
323
|
+
atomicshop-3.3.14.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
324
|
+
atomicshop-3.3.14.dist-info/top_level.txt,sha256=EgKJB-7xcrAPeqTRF2laD_Np2gNGYkJkd4OyXqpJphA,11
|
|
325
|
+
atomicshop-3.3.14.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|