gomyck-tools 1.1.0__tar.gz → 1.1.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.
- {gomyck-tools-1.1.0 → gomyck-tools-1.1.1}/PKG-INFO +4 -3
- {gomyck-tools-1.1.0 → gomyck-tools-1.1.1}/ctools/download_tools.py +5 -5
- {gomyck-tools-1.1.0 → gomyck-tools-1.1.1}/gomyck_tools.egg-info/PKG-INFO +4 -3
- {gomyck-tools-1.1.0 → gomyck-tools-1.1.1}/gomyck_tools.egg-info/requires.txt +3 -2
- {gomyck-tools-1.1.0 → gomyck-tools-1.1.1}/setup.py +5 -4
- {gomyck-tools-1.1.0 → gomyck-tools-1.1.1}/README.md +0 -0
- {gomyck-tools-1.1.0 → gomyck-tools-1.1.1}/ctools/__init__.py +0 -0
- {gomyck-tools-1.1.0 → gomyck-tools-1.1.1}/ctools/aes_tools.py +0 -0
- {gomyck-tools-1.1.0 → gomyck-tools-1.1.1}/ctools/api_result.py +0 -0
- {gomyck-tools-1.1.0 → gomyck-tools-1.1.1}/ctools/application.py +0 -0
- {gomyck-tools-1.1.0 → gomyck-tools-1.1.1}/ctools/b64.py +0 -0
- {gomyck-tools-1.1.0 → gomyck-tools-1.1.1}/ctools/bashPath.py +0 -0
- {gomyck-tools-1.1.0 → gomyck-tools-1.1.1}/ctools/bottle_web_base.py +0 -0
- {gomyck-tools-1.1.0 → gomyck-tools-1.1.1}/ctools/bottle_webserver.py +0 -0
- {gomyck-tools-1.1.0 → gomyck-tools-1.1.1}/ctools/bottle_websocket.py +0 -0
- {gomyck-tools-1.1.0 → gomyck-tools-1.1.1}/ctools/browser_element_tools.py +0 -0
- {gomyck-tools-1.1.0 → gomyck-tools-1.1.1}/ctools/call.py +0 -0
- {gomyck-tools-1.1.0 → gomyck-tools-1.1.1}/ctools/cjson.py +0 -0
- {gomyck-tools-1.1.0 → gomyck-tools-1.1.1}/ctools/ckafka.py +0 -0
- {gomyck-tools-1.1.0 → gomyck-tools-1.1.1}/ctools/compile_tools.py +0 -0
- {gomyck-tools-1.1.0 → gomyck-tools-1.1.1}/ctools/console.py +0 -0
- {gomyck-tools-1.1.0 → gomyck-tools-1.1.1}/ctools/cron_lite.py +0 -0
- {gomyck-tools-1.1.0 → gomyck-tools-1.1.1}/ctools/database.py +0 -0
- {gomyck-tools-1.1.0 → gomyck-tools-1.1.1}/ctools/date_utils.py +0 -0
- {gomyck-tools-1.1.0 → gomyck-tools-1.1.1}/ctools/douglas_rarefy.py +0 -0
- {gomyck-tools-1.1.0 → gomyck-tools-1.1.1}/ctools/enums.py +0 -0
- {gomyck-tools-1.1.0 → gomyck-tools-1.1.1}/ctools/ex.py +0 -0
- {gomyck-tools-1.1.0 → gomyck-tools-1.1.1}/ctools/excelOpt.py +0 -0
- {gomyck-tools-1.1.0 → gomyck-tools-1.1.1}/ctools/html_soup.py +0 -0
- {gomyck-tools-1.1.0 → gomyck-tools-1.1.1}/ctools/http_utils.py +0 -0
- {gomyck-tools-1.1.0 → gomyck-tools-1.1.1}/ctools/id_worker_tools.py +0 -0
- {gomyck-tools-1.1.0 → gomyck-tools-1.1.1}/ctools/images_tools.py +0 -0
- {gomyck-tools-1.1.0 → gomyck-tools-1.1.1}/ctools/imgDialog.py +0 -0
- {gomyck-tools-1.1.0 → gomyck-tools-1.1.1}/ctools/license.py +0 -0
- {gomyck-tools-1.1.0 → gomyck-tools-1.1.1}/ctools/metrics.py +0 -0
- {gomyck-tools-1.1.0 → gomyck-tools-1.1.1}/ctools/mqtt_utils.py +0 -0
- {gomyck-tools-1.1.0 → gomyck-tools-1.1.1}/ctools/obj.py +0 -0
- {gomyck-tools-1.1.0 → gomyck-tools-1.1.1}/ctools/pacth.py +0 -0
- {gomyck-tools-1.1.0 → gomyck-tools-1.1.1}/ctools/plan_area_tools.py +0 -0
- {gomyck-tools-1.1.0 → gomyck-tools-1.1.1}/ctools/process_pool.py +0 -0
- {gomyck-tools-1.1.0 → gomyck-tools-1.1.1}/ctools/pty_tools.py +0 -0
- {gomyck-tools-1.1.0 → gomyck-tools-1.1.1}/ctools/resource_bundle_tools.py +0 -0
- {gomyck-tools-1.1.0 → gomyck-tools-1.1.1}/ctools/screenshot_tools.py +0 -0
- {gomyck-tools-1.1.0 → gomyck-tools-1.1.1}/ctools/sign.py +0 -0
- {gomyck-tools-1.1.0 → gomyck-tools-1.1.1}/ctools/sm_tools.py +0 -0
- {gomyck-tools-1.1.0 → gomyck-tools-1.1.1}/ctools/ssh.py +0 -0
- {gomyck-tools-1.1.0 → gomyck-tools-1.1.1}/ctools/strDiff.py +0 -0
- {gomyck-tools-1.1.0 → gomyck-tools-1.1.1}/ctools/string_tools.py +0 -0
- {gomyck-tools-1.1.0 → gomyck-tools-1.1.1}/ctools/sys_info.py +0 -0
- {gomyck-tools-1.1.0 → gomyck-tools-1.1.1}/ctools/sys_log.py +0 -0
- {gomyck-tools-1.1.0 → gomyck-tools-1.1.1}/ctools/thread_pool.py +0 -0
- {gomyck-tools-1.1.0 → gomyck-tools-1.1.1}/ctools/upload_tools.py +0 -0
- {gomyck-tools-1.1.0 → gomyck-tools-1.1.1}/ctools/win_canvas.py +0 -0
- {gomyck-tools-1.1.0 → gomyck-tools-1.1.1}/ctools/win_control.py +0 -0
- {gomyck-tools-1.1.0 → gomyck-tools-1.1.1}/ctools/wordFill.py +0 -0
- {gomyck-tools-1.1.0 → gomyck-tools-1.1.1}/ctools/word_fill.py +0 -0
- {gomyck-tools-1.1.0 → gomyck-tools-1.1.1}/ctools/word_fill_entity.py +0 -0
- {gomyck-tools-1.1.0 → gomyck-tools-1.1.1}/ctools/work_path.py +0 -0
- {gomyck-tools-1.1.0 → gomyck-tools-1.1.1}/gomyck_tools.egg-info/SOURCES.txt +0 -0
- {gomyck-tools-1.1.0 → gomyck-tools-1.1.1}/gomyck_tools.egg-info/dependency_links.txt +0 -0
- {gomyck-tools-1.1.0 → gomyck-tools-1.1.1}/gomyck_tools.egg-info/top_level.txt +0 -0
- {gomyck-tools-1.1.0 → gomyck-tools-1.1.1}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: gomyck-tools
|
3
|
-
Version: 1.1.
|
3
|
+
Version: 1.1.1
|
4
4
|
Summary: A ctools for python development by hao474798383
|
5
5
|
Home-page: https://blog.gomyck.com
|
6
6
|
Author: gomyck
|
@@ -10,7 +10,7 @@ Classifier: License :: OSI Approved :: MIT License
|
|
10
10
|
Classifier: Operating System :: OS Independent
|
11
11
|
Requires-Python: >=3.8
|
12
12
|
Description-Content-Type: text/markdown
|
13
|
-
Requires-Dist: jsonpickle>=3.
|
13
|
+
Requires-Dist: jsonpickle>=3.3.0
|
14
14
|
Requires-Dist: SQLAlchemy>=2.0.32
|
15
15
|
Requires-Dist: chardet>=5.2.0
|
16
16
|
Requires-Dist: psycopg2-binary>=2.9.9
|
@@ -18,6 +18,7 @@ Requires-Dist: croniter>=3.0.3
|
|
18
18
|
Requires-Dist: gmssl>=3.2.2
|
19
19
|
Requires-Dist: psutil>=6.0.0
|
20
20
|
Requires-Dist: jsonpath_ng>=1.6.1
|
21
|
-
Requires-Dist: bottle>=0.
|
21
|
+
Requires-Dist: bottle>=0.13.1
|
22
|
+
Requires-Dist: requests==2.32.3
|
22
23
|
|
23
24
|
this package is for python development
|
@@ -34,18 +34,18 @@ def download(file_path: str, download_name:str=None):
|
|
34
34
|
return response
|
35
35
|
|
36
36
|
|
37
|
-
def download_bytes(
|
37
|
+
def download_bytes(file_bytes: bytes, download_name: str):
|
38
38
|
"""
|
39
39
|
文件下载
|
40
|
-
:param
|
41
|
-
:param
|
40
|
+
:param file_bytes: file_bytes
|
41
|
+
:param download_name: download_name
|
42
42
|
:return:
|
43
43
|
"""
|
44
|
-
|
44
|
+
download_filename = urlencode({'filename': download_name}).split("=")[-1] # 对文件名进行URL编码
|
45
45
|
# 设置响应头,告诉浏览器这是一个文件下载
|
46
46
|
headers = {"Accept-Ranges": "bytes", "Content-Length": len(file_bytes),
|
47
47
|
'Content-Type': 'application/octet-stream;charset=utf-8',
|
48
|
-
'Content-Disposition': f'attachment; filename={
|
48
|
+
'Content-Disposition': f'attachment; filename={download_filename}'}
|
49
49
|
return HTTPResponse(file_bytes, **headers)
|
50
50
|
|
51
51
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: gomyck-tools
|
3
|
-
Version: 1.1.
|
3
|
+
Version: 1.1.1
|
4
4
|
Summary: A ctools for python development by hao474798383
|
5
5
|
Home-page: https://blog.gomyck.com
|
6
6
|
Author: gomyck
|
@@ -10,7 +10,7 @@ Classifier: License :: OSI Approved :: MIT License
|
|
10
10
|
Classifier: Operating System :: OS Independent
|
11
11
|
Requires-Python: >=3.8
|
12
12
|
Description-Content-Type: text/markdown
|
13
|
-
Requires-Dist: jsonpickle>=3.
|
13
|
+
Requires-Dist: jsonpickle>=3.3.0
|
14
14
|
Requires-Dist: SQLAlchemy>=2.0.32
|
15
15
|
Requires-Dist: chardet>=5.2.0
|
16
16
|
Requires-Dist: psycopg2-binary>=2.9.9
|
@@ -18,6 +18,7 @@ Requires-Dist: croniter>=3.0.3
|
|
18
18
|
Requires-Dist: gmssl>=3.2.2
|
19
19
|
Requires-Dist: psutil>=6.0.0
|
20
20
|
Requires-Dist: jsonpath_ng>=1.6.1
|
21
|
-
Requires-Dist: bottle>=0.
|
21
|
+
Requires-Dist: bottle>=0.13.1
|
22
|
+
Requires-Dist: requests==2.32.3
|
22
23
|
|
23
24
|
this package is for python development
|
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
|
2
2
|
|
3
3
|
setup(
|
4
4
|
name="gomyck-tools",
|
5
|
-
version="1.1.
|
5
|
+
version="1.1.1",
|
6
6
|
author="gomyck",
|
7
7
|
author_email="hao474798383@163.com",
|
8
8
|
description="A ctools for python development by hao474798383",
|
@@ -17,15 +17,16 @@ setup(
|
|
17
17
|
],
|
18
18
|
python_requires=">=3.8", # 指定最低 Python 版本
|
19
19
|
install_requires=[ # 你的包依赖的其他包
|
20
|
-
"jsonpickle>=3.
|
20
|
+
"jsonpickle>=3.3.0",
|
21
21
|
"SQLAlchemy>=2.0.32",
|
22
22
|
"chardet>=5.2.0",
|
23
23
|
"psycopg2-binary>=2.9.9",
|
24
24
|
"croniter>=3.0.3",
|
25
|
-
"gmssl>=3.2.2",
|
25
|
+
"gmssl>=3.2.2",
|
26
26
|
"psutil>=6.0.0",
|
27
27
|
"jsonpath_ng>=1.6.1",
|
28
|
-
"bottle>=0.
|
28
|
+
"bottle>=0.13.1",
|
29
|
+
"requests==2.32.3"
|
29
30
|
],
|
30
31
|
)
|
31
32
|
|
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
|
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
|
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
|