database-smartools 1.0.0__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.
- database-smartools/__init__.py +18 -0
- database-smartools/api/__init__.py +18 -0
- database-smartools/api/etl.py +160 -0
- database-smartools/database/__init__.py +18 -0
- database-smartools/database/dameng_extend.py +65 -0
- database-smartools/database/db_handler.py +676 -0
- database-smartools/database/mysql_extend.py +396 -0
- database-smartools/database/oceanbase_extend.py +55 -0
- database-smartools/database/oracle_extend.py +27 -0
- database-smartools/database/postgre_extend.py +396 -0
- database-smartools/main.py +86 -0
- database-smartools/module/__init__.py +18 -0
- database-smartools/module/function.py +115 -0
- database-smartools/utils/__init__.py +18 -0
- database-smartools/utils/config.py +56 -0
- database-smartools/utils/debug.py +72 -0
- database-smartools/utils/file.py +42 -0
- database-smartools/utils/http.py +74 -0
- database-smartools/utils/logger.py +237 -0
- database-smartools/utils/output.py +31 -0
- database-smartools/utils/texter.py +186 -0
- database-smartools/utils/timer.py +52 -0
- database-tools/__init__.py +18 -0
- database-tools/api/__init__.py +18 -0
- database-tools/api/etl.py +160 -0
- database-tools/database/__init__.py +18 -0
- database-tools/database/dameng_extend.py +65 -0
- database-tools/database/db_handler.py +676 -0
- database-tools/database/mysql_extend.py +396 -0
- database-tools/database/oceanbase_extend.py +55 -0
- database-tools/database/oracle_extend.py +27 -0
- database-tools/database/postgre_extend.py +396 -0
- database-tools/main.py +86 -0
- database-tools/module/__init__.py +18 -0
- database-tools/module/function.py +115 -0
- database-tools/utils/__init__.py +18 -0
- database-tools/utils/config.py +56 -0
- database-tools/utils/debug.py +72 -0
- database-tools/utils/file.py +42 -0
- database-tools/utils/http.py +74 -0
- database-tools/utils/logger.py +237 -0
- database-tools/utils/output.py +31 -0
- database-tools/utils/texter.py +186 -0
- database-tools/utils/timer.py +52 -0
- database_smartools-1.0.0.dist-info/METADATA +84 -0
- database_smartools-1.0.0.dist-info/RECORD +50 -0
- database_smartools-1.0.0.dist-info/WHEEL +5 -0
- database_smartools-1.0.0.dist-info/licenses/LICENSE +13 -0
- database_smartools-1.0.0.dist-info/top_level.txt +1 -0
- model/__init__.py +12 -0
@@ -0,0 +1,84 @@
|
|
1
|
+
Metadata-Version: 2.4
|
2
|
+
Name: database-smartools
|
3
|
+
Version: 1.0.0
|
4
|
+
Summary: 数据库操作工具包
|
5
|
+
Home-page:
|
6
|
+
Author: joelz
|
7
|
+
Author-email: zhongbj_26210@163.com
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
9
|
+
Classifier: License :: OSI Approved :: MIT License
|
10
|
+
Classifier: Operating System :: OS Independent
|
11
|
+
Requires-Python: >=3.11
|
12
|
+
Description-Content-Type: text/markdown
|
13
|
+
License-File: LICENSE
|
14
|
+
Requires-Dist: altgraph==0.17.4
|
15
|
+
Requires-Dist: annotated-types==0.7.0
|
16
|
+
Requires-Dist: anyio==4.9.0
|
17
|
+
Requires-Dist: click==8.1.8
|
18
|
+
Requires-Dist: colorama==0.4.6
|
19
|
+
Requires-Dist: oracledb==3.0.0
|
20
|
+
Requires-Dist: DBUtils==3.0.0
|
21
|
+
Requires-Dist: dmPython==2.5.8
|
22
|
+
Requires-Dist: fastapi==0.115.12
|
23
|
+
Requires-Dist: greenlet==3.2.1
|
24
|
+
Requires-Dist: h11==0.16.0
|
25
|
+
Requires-Dist: idna==3.10
|
26
|
+
Requires-Dist: mysql-connector-python==8.4.0
|
27
|
+
Requires-Dist: numpy==2.0.0
|
28
|
+
Requires-Dist: packaging==25.0
|
29
|
+
Requires-Dist: pandas==2.2.3
|
30
|
+
Requires-Dist: pefile==2023.2.7
|
31
|
+
Requires-Dist: psycopg2-binary==2.9.8
|
32
|
+
Requires-Dist: pydantic==2.11.3
|
33
|
+
Requires-Dist: pydantic_core==2.33.1
|
34
|
+
Requires-Dist: pyinstaller==6.14.0
|
35
|
+
Requires-Dist: pyinstaller-hooks-contrib==2025.4
|
36
|
+
Requires-Dist: python-dateutil==2.9.0.post0
|
37
|
+
Requires-Dist: pytz==2025.2
|
38
|
+
Requires-Dist: pywin32-ctypes==0.2.3
|
39
|
+
Requires-Dist: six==1.17.0
|
40
|
+
Requires-Dist: sniffio==1.3.1
|
41
|
+
Requires-Dist: SQLAlchemy==2.0.40
|
42
|
+
Requires-Dist: starlette==0.47.2
|
43
|
+
Requires-Dist: typing-inspection==0.4.0
|
44
|
+
Requires-Dist: typing_extensions==4.13.2
|
45
|
+
Requires-Dist: tzdata==2025.2
|
46
|
+
Requires-Dist: uvicorn==0.34.2
|
47
|
+
Requires-Dist: JayDeBeApi==1.2.3
|
48
|
+
Requires-Dist: jpype1>=1.5.2
|
49
|
+
Dynamic: author
|
50
|
+
Dynamic: author-email
|
51
|
+
Dynamic: classifier
|
52
|
+
Dynamic: description
|
53
|
+
Dynamic: description-content-type
|
54
|
+
Dynamic: license-file
|
55
|
+
Dynamic: requires-dist
|
56
|
+
Dynamic: requires-python
|
57
|
+
Dynamic: summary
|
58
|
+
|
59
|
+
# python-main
|
60
|
+
|
61
|
+
#### 介绍
|
62
|
+
python web服务,api - module - model - db
|
63
|
+
|
64
|
+
/logRefresh:是日志配置初始化接口(开发调试用的)
|
65
|
+
/configRefresh:是配置文件初始化接口,修改了项目下的conf.ini后可以调用这个接口刷新
|
66
|
+
/etl/functionCall:调用etl脚本主入口
|
67
|
+
/etl/dbpool/refresh:修改数据库链接后,用于刷新数据库连接池
|
68
|
+
/etl/lo
|
69
|
+
|
70
|
+
#### 软件架构
|
71
|
+
软件架构说明
|
72
|
+
目录结构参照项目目录下的Readme.txt
|
73
|
+
|
74
|
+
|
75
|
+
#### 安装教程
|
76
|
+
进入到项目主目录下
|
77
|
+
1. 安装Python 3.10.16
|
78
|
+
2. pip install -r requirement.txt
|
79
|
+
|
80
|
+
|
81
|
+
#### 使用说明
|
82
|
+
1. 运行服务器,python main.py [可选参数:dev/pro,分别为开发环境和产品环境,默认dev],对应配置信息在conf.ini中
|
83
|
+
2. 控制台会输出对应的Swagger UI界面,可在该页面上调试api
|
84
|
+

|
@@ -0,0 +1,50 @@
|
|
1
|
+
database-smartools/__init__.py,sha256=I6HQXHD3UG-_beIYjsJ_l4pD6hUrNzo9HXuIRb6qT8g,393
|
2
|
+
database-smartools/main.py,sha256=5hd-iQgl7t3nCJmem97HI9AGVDxikcI61vgu9g06j3A,2725
|
3
|
+
database-smartools/api/__init__.py,sha256=I6HQXHD3UG-_beIYjsJ_l4pD6hUrNzo9HXuIRb6qT8g,393
|
4
|
+
database-smartools/api/etl.py,sha256=jcruwZcCLr6zDFp9z20xC5HfMnVDoE97yBNIrxK8gXs,6002
|
5
|
+
database-smartools/database/__init__.py,sha256=I6HQXHD3UG-_beIYjsJ_l4pD6hUrNzo9HXuIRb6qT8g,393
|
6
|
+
database-smartools/database/dameng_extend.py,sha256=WlgRKamGUTHE5xWUxkTXJZePoENBIyK8klhWR0h-egs,2800
|
7
|
+
database-smartools/database/db_handler.py,sha256=m5IttdhJqgSt5UloYTwnk3OI0huiOkRtp7dI7iPkpIE,25414
|
8
|
+
database-smartools/database/mysql_extend.py,sha256=5AmFnrSwljV0Yo76w3c1QmwJsQtlk5Fe6DfXpZYW36o,12569
|
9
|
+
database-smartools/database/oceanbase_extend.py,sha256=B44TjQ1qlq17DLgwt2WxOSZtGNXU-jvlh23k83muc_Q,1764
|
10
|
+
database-smartools/database/oracle_extend.py,sha256=AxKESGoqdDxHoPRrIz1cbQgWf3Y32DrMCwu6xS7G7wU,870
|
11
|
+
database-smartools/database/postgre_extend.py,sha256=LBG3cOnQWLxbiRdRO-r8u8K6d2A30gXyDplrciaptmc,12571
|
12
|
+
database-smartools/module/__init__.py,sha256=I6HQXHD3UG-_beIYjsJ_l4pD6hUrNzo9HXuIRb6qT8g,393
|
13
|
+
database-smartools/module/function.py,sha256=fSMVzGUOQdfNlWvkUAUEgaWU1MQGrtS-c3Ej9SNCVSI,4178
|
14
|
+
database-smartools/utils/__init__.py,sha256=I6HQXHD3UG-_beIYjsJ_l4pD6hUrNzo9HXuIRb6qT8g,393
|
15
|
+
database-smartools/utils/config.py,sha256=VIJYuF3cbfPssgXipqW752SiJhBnWyBOZPQkRKL57M4,1557
|
16
|
+
database-smartools/utils/debug.py,sha256=wJKbd-aHuhQRK1yh3oNwLloDCCtGX-RnkTJr6jgMbRE,2441
|
17
|
+
database-smartools/utils/file.py,sha256=mxJRnQWZDvMy5Ze_br-cpsw0e4jRlbrFjRoGsJVv6IE,1069
|
18
|
+
database-smartools/utils/http.py,sha256=Q1K5_Mah-Tw8IqpaLv3AZFPN08x570EHHDk-fLHFbUQ,2240
|
19
|
+
database-smartools/utils/logger.py,sha256=21QqGPjnn5GvO7ORuFbnwBYc3Yv-Blhy-fidBZmmoAE,9337
|
20
|
+
database-smartools/utils/output.py,sha256=PWSGZi2AY2ii0aSQCngggtRrrxKQRnYPIsj1kV6IWGk,832
|
21
|
+
database-smartools/utils/texter.py,sha256=3XQzkT2fN0_Nz6eBu4HKOeYZQjtr-2lUZvNHXiTqlus,6642
|
22
|
+
database-smartools/utils/timer.py,sha256=lTS0cCNybamyxrnuVEPvXEs3UClRXrFHTDBbjSsnV6Y,1330
|
23
|
+
database-tools/__init__.py,sha256=I6HQXHD3UG-_beIYjsJ_l4pD6hUrNzo9HXuIRb6qT8g,393
|
24
|
+
database-tools/main.py,sha256=5hd-iQgl7t3nCJmem97HI9AGVDxikcI61vgu9g06j3A,2725
|
25
|
+
database-tools/api/__init__.py,sha256=I6HQXHD3UG-_beIYjsJ_l4pD6hUrNzo9HXuIRb6qT8g,393
|
26
|
+
database-tools/api/etl.py,sha256=jcruwZcCLr6zDFp9z20xC5HfMnVDoE97yBNIrxK8gXs,6002
|
27
|
+
database-tools/database/__init__.py,sha256=I6HQXHD3UG-_beIYjsJ_l4pD6hUrNzo9HXuIRb6qT8g,393
|
28
|
+
database-tools/database/dameng_extend.py,sha256=WlgRKamGUTHE5xWUxkTXJZePoENBIyK8klhWR0h-egs,2800
|
29
|
+
database-tools/database/db_handler.py,sha256=m5IttdhJqgSt5UloYTwnk3OI0huiOkRtp7dI7iPkpIE,25414
|
30
|
+
database-tools/database/mysql_extend.py,sha256=5AmFnrSwljV0Yo76w3c1QmwJsQtlk5Fe6DfXpZYW36o,12569
|
31
|
+
database-tools/database/oceanbase_extend.py,sha256=B44TjQ1qlq17DLgwt2WxOSZtGNXU-jvlh23k83muc_Q,1764
|
32
|
+
database-tools/database/oracle_extend.py,sha256=AxKESGoqdDxHoPRrIz1cbQgWf3Y32DrMCwu6xS7G7wU,870
|
33
|
+
database-tools/database/postgre_extend.py,sha256=LBG3cOnQWLxbiRdRO-r8u8K6d2A30gXyDplrciaptmc,12571
|
34
|
+
database-tools/module/__init__.py,sha256=I6HQXHD3UG-_beIYjsJ_l4pD6hUrNzo9HXuIRb6qT8g,393
|
35
|
+
database-tools/module/function.py,sha256=fSMVzGUOQdfNlWvkUAUEgaWU1MQGrtS-c3Ej9SNCVSI,4178
|
36
|
+
database-tools/utils/__init__.py,sha256=I6HQXHD3UG-_beIYjsJ_l4pD6hUrNzo9HXuIRb6qT8g,393
|
37
|
+
database-tools/utils/config.py,sha256=VIJYuF3cbfPssgXipqW752SiJhBnWyBOZPQkRKL57M4,1557
|
38
|
+
database-tools/utils/debug.py,sha256=wJKbd-aHuhQRK1yh3oNwLloDCCtGX-RnkTJr6jgMbRE,2441
|
39
|
+
database-tools/utils/file.py,sha256=mxJRnQWZDvMy5Ze_br-cpsw0e4jRlbrFjRoGsJVv6IE,1069
|
40
|
+
database-tools/utils/http.py,sha256=Q1K5_Mah-Tw8IqpaLv3AZFPN08x570EHHDk-fLHFbUQ,2240
|
41
|
+
database-tools/utils/logger.py,sha256=21QqGPjnn5GvO7ORuFbnwBYc3Yv-Blhy-fidBZmmoAE,9337
|
42
|
+
database-tools/utils/output.py,sha256=PWSGZi2AY2ii0aSQCngggtRrrxKQRnYPIsj1kV6IWGk,832
|
43
|
+
database-tools/utils/texter.py,sha256=3XQzkT2fN0_Nz6eBu4HKOeYZQjtr-2lUZvNHXiTqlus,6642
|
44
|
+
database-tools/utils/timer.py,sha256=lTS0cCNybamyxrnuVEPvXEs3UClRXrFHTDBbjSsnV6Y,1330
|
45
|
+
database_smartools-1.0.0.dist-info/licenses/LICENSE,sha256=TAl-eTNT5gFLQaorJQu9wUaqXooawK9_gpmX5iT604k,616
|
46
|
+
model/__init__.py,sha256=xV5ec-ySIpwv5RbIgM5qvuTrPhO9oXwGVcdat8jW9q0,331
|
47
|
+
database_smartools-1.0.0.dist-info/METADATA,sha256=8iAEJ5DcUqb3IqIrwqiMmyGn5fg36bD2IQJ9-lUnZwY,2708
|
48
|
+
database_smartools-1.0.0.dist-info/WHEEL,sha256=ck4Vq1_RXyvS4Jt6SI0Vz6fyVs4GWg7AINwpsaGEgPE,91
|
49
|
+
database_smartools-1.0.0.dist-info/top_level.txt,sha256=s32NtD_FLPBwKsEVN0J1f-gE6vQi8NH7w6TYX8IpJyM,19
|
50
|
+
database_smartools-1.0.0.dist-info/RECORD,,
|
@@ -0,0 +1,13 @@
|
|
1
|
+
Copyright:2025-2035, 深圳市赢和信息技术有限公司. All rights Reserved.
|
2
|
+
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
you may not use this file except in compliance with the License.
|
5
|
+
You may obtain a copy of the License at
|
6
|
+
|
7
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
|
9
|
+
Unless required by applicable law or agreed to in writing, software
|
10
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
See the License for the specific language governing permissions and
|
13
|
+
limitations under the License.
|
@@ -0,0 +1 @@
|
|
1
|
+
database-smartools
|
model/__init__.py
ADDED