codosdk 1.0.20__tar.gz → 1.0.23__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.
Files changed (53) hide show
  1. codosdk-1.0.23/PKG-INFO +47 -0
  2. codosdk-1.0.23/codosdk.egg-info/PKG-INFO +47 -0
  3. {codosdk-1.0.20 → codosdk-1.0.23}/setup.py +4 -3
  4. {codosdk-1.0.20 → codosdk-1.0.23}/websdk2/consts.py +5 -0
  5. {codosdk-1.0.20 → codosdk-1.0.23}/websdk2/crud_utils.py +1 -1
  6. codosdk-1.0.20/PKG-INFO +0 -98
  7. codosdk-1.0.20/codosdk.egg-info/PKG-INFO +0 -98
  8. {codosdk-1.0.20 → codosdk-1.0.23}/LICENSE +0 -0
  9. {codosdk-1.0.20 → codosdk-1.0.23}/README.md +0 -0
  10. {codosdk-1.0.20 → codosdk-1.0.23}/codosdk.egg-info/SOURCES.txt +0 -0
  11. {codosdk-1.0.20 → codosdk-1.0.23}/codosdk.egg-info/dependency_links.txt +0 -0
  12. {codosdk-1.0.20 → codosdk-1.0.23}/codosdk.egg-info/requires.txt +0 -0
  13. {codosdk-1.0.20 → codosdk-1.0.23}/codosdk.egg-info/top_level.txt +0 -0
  14. {codosdk-1.0.20 → codosdk-1.0.23}/opssdk/__init__.py +0 -0
  15. {codosdk-1.0.20 → codosdk-1.0.23}/opssdk/utils/__init__.py +0 -0
  16. {codosdk-1.0.20 → codosdk-1.0.23}/pyproject.toml +0 -0
  17. {codosdk-1.0.20 → codosdk-1.0.23}/setup.cfg +0 -0
  18. {codosdk-1.0.20 → codosdk-1.0.23}/websdk2/__init__.py +0 -0
  19. {codosdk-1.0.20 → codosdk-1.0.23}/websdk2/api_set.py +0 -0
  20. {codosdk-1.0.20 → codosdk-1.0.23}/websdk2/apis/__init__.py +0 -0
  21. {codosdk-1.0.20 → codosdk-1.0.23}/websdk2/apis/admin_apis.py +0 -0
  22. {codosdk-1.0.20 → codosdk-1.0.23}/websdk2/apis/agent_apis.py +0 -0
  23. {codosdk-1.0.20 → codosdk-1.0.23}/websdk2/apis/cmdb_apis.py +0 -0
  24. {codosdk-1.0.20 → codosdk-1.0.23}/websdk2/apis/kerrigan_apis.py +0 -0
  25. {codosdk-1.0.20 → codosdk-1.0.23}/websdk2/apis/mgv4_apis.py +0 -0
  26. {codosdk-1.0.20 → codosdk-1.0.23}/websdk2/apis/task_apis.py +0 -0
  27. {codosdk-1.0.20 → codosdk-1.0.23}/websdk2/application.py +0 -0
  28. {codosdk-1.0.20 → codosdk-1.0.23}/websdk2/base_handler.py +0 -0
  29. {codosdk-1.0.20 → codosdk-1.0.23}/websdk2/cache.py +0 -0
  30. {codosdk-1.0.20 → codosdk-1.0.23}/websdk2/cache_context.py +0 -0
  31. {codosdk-1.0.20 → codosdk-1.0.23}/websdk2/client.py +0 -0
  32. {codosdk-1.0.20 → codosdk-1.0.23}/websdk2/cloud/__init__.py +0 -0
  33. {codosdk-1.0.20 → codosdk-1.0.23}/websdk2/cloud/qcloud_api.py +0 -0
  34. {codosdk-1.0.20 → codosdk-1.0.23}/websdk2/cloud/ucloud_api.py +0 -0
  35. {codosdk-1.0.20 → codosdk-1.0.23}/websdk2/cloud_utils.py +0 -0
  36. {codosdk-1.0.20 → codosdk-1.0.23}/websdk2/configs.py +0 -0
  37. {codosdk-1.0.20 → codosdk-1.0.23}/websdk2/db_context.py +0 -0
  38. {codosdk-1.0.20 → codosdk-1.0.23}/websdk2/error.py +0 -0
  39. {codosdk-1.0.20 → codosdk-1.0.23}/websdk2/fetch_coroutine.py +0 -0
  40. {codosdk-1.0.20 → codosdk-1.0.23}/websdk2/jwt_token.py +0 -0
  41. {codosdk-1.0.20 → codosdk-1.0.23}/websdk2/ldap.py +0 -0
  42. {codosdk-1.0.20 → codosdk-1.0.23}/websdk2/logger.py +0 -0
  43. {codosdk-1.0.20 → codosdk-1.0.23}/websdk2/model_utils.py +0 -0
  44. {codosdk-1.0.20 → codosdk-1.0.23}/websdk2/mqhelper.py +0 -0
  45. {codosdk-1.0.20 → codosdk-1.0.23}/websdk2/program.py +0 -0
  46. {codosdk-1.0.20 → codosdk-1.0.23}/websdk2/salt_api.py +0 -0
  47. {codosdk-1.0.20 → codosdk-1.0.23}/websdk2/sqlalchemy_pagination.py +0 -0
  48. {codosdk-1.0.20 → codosdk-1.0.23}/websdk2/tools.py +0 -0
  49. {codosdk-1.0.20 → codosdk-1.0.23}/websdk2/utils/__init__.py +0 -0
  50. {codosdk-1.0.20 → codosdk-1.0.23}/websdk2/utils/cc_crypto.py +0 -0
  51. {codosdk-1.0.20 → codosdk-1.0.23}/websdk2/utils/date_format.py +0 -0
  52. {codosdk-1.0.20 → codosdk-1.0.23}/websdk2/utils/pydantic_utils.py +0 -0
  53. {codosdk-1.0.20 → codosdk-1.0.23}/websdk2/web_logs.py +0 -0
@@ -0,0 +1,47 @@
1
+ Metadata-Version: 2.2
2
+ Name: codosdk
3
+ Version: 1.0.23
4
+ Summary: CODO项目的Python SDK
5
+ Home-page: https://github.com/ss1917/codo_sdk/
6
+ Author: shenshuo
7
+ Author-email: 191715030@qq.com
8
+ License: GPLv3
9
+ Keywords: ops,codo,devops
10
+ Platform: any
11
+ Classifier: Development Status :: 5 - Production/Stable
12
+ Classifier: Environment :: Console :: Curses
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
15
+ Classifier: Programming Language :: Python :: 3.6
16
+ Classifier: Programming Language :: Python :: 3.7
17
+ Classifier: Programming Language :: Python :: 3.8
18
+ Classifier: Programming Language :: Python :: 3.9
19
+ Classifier: Programming Language :: Python :: 3.9
20
+ Requires-Python: >=2.7, >=3.6
21
+ License-File: LICENSE
22
+ Requires-Dist: fire==0.5.0
23
+ Requires-Dist: shortuuid==1.0.11
24
+ Requires-Dist: pymysql==0.9.3
25
+ Requires-Dist: sqlalchemy==1.3.23
26
+ Requires-Dist: pika==1.3.1
27
+ Requires-Dist: PyJWT==2.0.1
28
+ Requires-Dist: requests==2.28.2
29
+ Requires-Dist: redis==4.5.1
30
+ Requires-Dist: tornado>=6.0
31
+ Requires-Dist: loguru>=0.6.0
32
+ Requires-Dist: cryptography==42.0.4
33
+ Requires-Dist: ldap3==2.9
34
+ Requires-Dist: pydantic>=1.10.5
35
+ Dynamic: author
36
+ Dynamic: author-email
37
+ Dynamic: classifier
38
+ Dynamic: description
39
+ Dynamic: home-page
40
+ Dynamic: keywords
41
+ Dynamic: license
42
+ Dynamic: platform
43
+ Dynamic: requires-dist
44
+ Dynamic: requires-python
45
+ Dynamic: summary
46
+
47
+ SDK of the operation and maintenance script logs operate
@@ -0,0 +1,47 @@
1
+ Metadata-Version: 2.2
2
+ Name: codosdk
3
+ Version: 1.0.23
4
+ Summary: CODO项目的Python SDK
5
+ Home-page: https://github.com/ss1917/codo_sdk/
6
+ Author: shenshuo
7
+ Author-email: 191715030@qq.com
8
+ License: GPLv3
9
+ Keywords: ops,codo,devops
10
+ Platform: any
11
+ Classifier: Development Status :: 5 - Production/Stable
12
+ Classifier: Environment :: Console :: Curses
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
15
+ Classifier: Programming Language :: Python :: 3.6
16
+ Classifier: Programming Language :: Python :: 3.7
17
+ Classifier: Programming Language :: Python :: 3.8
18
+ Classifier: Programming Language :: Python :: 3.9
19
+ Classifier: Programming Language :: Python :: 3.9
20
+ Requires-Python: >=2.7, >=3.6
21
+ License-File: LICENSE
22
+ Requires-Dist: fire==0.5.0
23
+ Requires-Dist: shortuuid==1.0.11
24
+ Requires-Dist: pymysql==0.9.3
25
+ Requires-Dist: sqlalchemy==1.3.23
26
+ Requires-Dist: pika==1.3.1
27
+ Requires-Dist: PyJWT==2.0.1
28
+ Requires-Dist: requests==2.28.2
29
+ Requires-Dist: redis==4.5.1
30
+ Requires-Dist: tornado>=6.0
31
+ Requires-Dist: loguru>=0.6.0
32
+ Requires-Dist: cryptography==42.0.4
33
+ Requires-Dist: ldap3==2.9
34
+ Requires-Dist: pydantic>=1.10.5
35
+ Dynamic: author
36
+ Dynamic: author-email
37
+ Dynamic: classifier
38
+ Dynamic: description
39
+ Dynamic: home-page
40
+ Dynamic: keywords
41
+ Dynamic: license
42
+ Dynamic: platform
43
+ Dynamic: requires-dist
44
+ Dynamic: requires-python
45
+ Dynamic: summary
46
+
47
+ SDK of the operation and maintenance script logs operate
@@ -9,7 +9,7 @@ desc : CODO SDK
9
9
  import sys
10
10
  from setuptools import setup, find_packages
11
11
 
12
- VERSION = '1.0.20'
12
+ VERSION = '1.0.23'
13
13
 
14
14
  if sys.version_info < (2, 7) or (3, 0) <= sys.version_info < (3, 6):
15
15
  print('This program requires at least Python 2.7 or 3.6 to run.')
@@ -42,8 +42,9 @@ setup(
42
42
  install_requires=get_install_requires(),
43
43
  author='shenshuo',
44
44
  author_email='191715030@qq.com',
45
- long_description=open('README.md').read(), # 自动读取README文件
46
- long_description_content_type='text/markdown', # 确保Markdown格式
45
+ long_description='SDK of the operation and maintenance script logs operate',
46
+ # long_description=open('README.md').read(), # 自动读取README文件
47
+ # long_description_content_type='text/markdown', # 确保Markdown格式
47
48
  include_package_data=True,
48
49
  data_files=get_data_files(),
49
50
  classifiers=[
@@ -109,6 +109,11 @@ const.CONSUL_PORT_KEY = 'cs_port'
109
109
  const.CONSUL_TOKEN_KEY = 'cs_token'
110
110
  const.CONSUL_SCHEME_KEY = 'cs_scheme'
111
111
 
112
+ # kafka
113
+ const.KAFKA_BOOTSTRAP_SERVERS = 'kafka_bootstrap_servers'
114
+ const.KAFKA_CLIENT_ID = 'kafka_client_id'
115
+ const.KAFKA_TOPIC = 'kafka_topic'
116
+
112
117
  const.APP_NAME = 'app_name'
113
118
  const.LOG_PATH = 'log_path'
114
119
  const.LOG_BACKUP_COUNT = 'log_backup_count'
@@ -58,7 +58,7 @@ class ModelCRUDView:
58
58
 
59
59
  @staticmethod
60
60
  def del_data(data) -> dict:
61
- for key in ['_index', '_rowKey', 'update_time']:
61
+ for key in ['_index', '_rowKey', 'update_time', 'updated_at']:
62
62
  data.pop(key, None)
63
63
  return data
64
64
 
codosdk-1.0.20/PKG-INFO DELETED
@@ -1,98 +0,0 @@
1
- Metadata-Version: 2.2
2
- Name: codosdk
3
- Version: 1.0.20
4
- Summary: CODO项目的Python SDK
5
- Home-page: https://github.com/ss1917/codo_sdk/
6
- Author: shenshuo
7
- Author-email: 191715030@qq.com
8
- License: GPLv3
9
- Keywords: ops,codo,devops
10
- Platform: any
11
- Classifier: Development Status :: 5 - Production/Stable
12
- Classifier: Environment :: Console :: Curses
13
- Classifier: Intended Audience :: Developers
14
- Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
15
- Classifier: Programming Language :: Python :: 3.6
16
- Classifier: Programming Language :: Python :: 3.7
17
- Classifier: Programming Language :: Python :: 3.8
18
- Classifier: Programming Language :: Python :: 3.9
19
- Classifier: Programming Language :: Python :: 3.9
20
- Requires-Python: >=2.7, >=3.6
21
- Description-Content-Type: text/markdown
22
- License-File: LICENSE
23
- Requires-Dist: fire==0.5.0
24
- Requires-Dist: shortuuid==1.0.11
25
- Requires-Dist: pymysql==0.9.3
26
- Requires-Dist: sqlalchemy==1.3.23
27
- Requires-Dist: pika==1.3.1
28
- Requires-Dist: PyJWT==2.0.1
29
- Requires-Dist: requests==2.28.2
30
- Requires-Dist: redis==4.5.1
31
- Requires-Dist: tornado>=6.0
32
- Requires-Dist: loguru>=0.6.0
33
- Requires-Dist: cryptography==42.0.4
34
- Requires-Dist: ldap3==2.9
35
- Requires-Dist: pydantic>=1.10.5
36
- Dynamic: author
37
- Dynamic: author-email
38
- Dynamic: classifier
39
- Dynamic: description
40
- Dynamic: description-content-type
41
- Dynamic: home-page
42
- Dynamic: keywords
43
- Dynamic: license
44
- Dynamic: platform
45
- Dynamic: requires-dist
46
- Dynamic: requires-python
47
- Dynamic: summary
48
-
49
- ## 安装
50
-
51
- ### python3安装
52
-
53
- [python链接](https://www.python.org/)
54
-
55
- ##### python3.9以上
56
-
57
- ##### SDK 安装
58
-
59
- ```bash
60
- $ pip3 install -U git+https://github.com/ss1917/ops_sdk.git
61
- ```
62
-
63
- ## 结构
64
-
65
- ```shell
66
- .
67
- ├── README.md 项目readme
68
- └── opssdk
69
- ├── logs 日志模块
70
- ├── install 安装模块
71
- ├── get_info 配置获取
72
- └── operate 运维操作
73
- ├── check 系统参数检查和获取
74
- ├── mysql mysql 操作
75
- ├── mail 发送邮件
76
- └── centralization 集中化管理工具 salt
77
- └── websdk2 web开发使用
78
- ├── application.py tornado application
79
- ├── base_handler.py tornado 基类
80
- ├── cache.py 处理redis缓存
81
- ├── configs.py 配置文件管理
82
- ├── consts.py 常量
83
- ├── db_context.py MySQL 处理类
84
- ├── error.py 异常
85
- ├── fetch_coroutine.py
86
- ├── __init__.py
87
- ├── jwt_token.py jwt
88
- ├── mqhelper.py MQ 处理类
89
- ├── program.py
90
- ├── salt_api.py salt 处理类 可以移到工具类
91
- ├── sms.py 发送短信 可以移到工具类
92
- ├── tools.py 工具类
93
- └── web_logs.py 日志处理
94
- ```
95
-
96
- ## License
97
-
98
- Everything is [GPL v3.0](https://www.gnu.org/licenses/gpl-3.0.html).
@@ -1,98 +0,0 @@
1
- Metadata-Version: 2.2
2
- Name: codosdk
3
- Version: 1.0.20
4
- Summary: CODO项目的Python SDK
5
- Home-page: https://github.com/ss1917/codo_sdk/
6
- Author: shenshuo
7
- Author-email: 191715030@qq.com
8
- License: GPLv3
9
- Keywords: ops,codo,devops
10
- Platform: any
11
- Classifier: Development Status :: 5 - Production/Stable
12
- Classifier: Environment :: Console :: Curses
13
- Classifier: Intended Audience :: Developers
14
- Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
15
- Classifier: Programming Language :: Python :: 3.6
16
- Classifier: Programming Language :: Python :: 3.7
17
- Classifier: Programming Language :: Python :: 3.8
18
- Classifier: Programming Language :: Python :: 3.9
19
- Classifier: Programming Language :: Python :: 3.9
20
- Requires-Python: >=2.7, >=3.6
21
- Description-Content-Type: text/markdown
22
- License-File: LICENSE
23
- Requires-Dist: fire==0.5.0
24
- Requires-Dist: shortuuid==1.0.11
25
- Requires-Dist: pymysql==0.9.3
26
- Requires-Dist: sqlalchemy==1.3.23
27
- Requires-Dist: pika==1.3.1
28
- Requires-Dist: PyJWT==2.0.1
29
- Requires-Dist: requests==2.28.2
30
- Requires-Dist: redis==4.5.1
31
- Requires-Dist: tornado>=6.0
32
- Requires-Dist: loguru>=0.6.0
33
- Requires-Dist: cryptography==42.0.4
34
- Requires-Dist: ldap3==2.9
35
- Requires-Dist: pydantic>=1.10.5
36
- Dynamic: author
37
- Dynamic: author-email
38
- Dynamic: classifier
39
- Dynamic: description
40
- Dynamic: description-content-type
41
- Dynamic: home-page
42
- Dynamic: keywords
43
- Dynamic: license
44
- Dynamic: platform
45
- Dynamic: requires-dist
46
- Dynamic: requires-python
47
- Dynamic: summary
48
-
49
- ## 安装
50
-
51
- ### python3安装
52
-
53
- [python链接](https://www.python.org/)
54
-
55
- ##### python3.9以上
56
-
57
- ##### SDK 安装
58
-
59
- ```bash
60
- $ pip3 install -U git+https://github.com/ss1917/ops_sdk.git
61
- ```
62
-
63
- ## 结构
64
-
65
- ```shell
66
- .
67
- ├── README.md 项目readme
68
- └── opssdk
69
- ├── logs 日志模块
70
- ├── install 安装模块
71
- ├── get_info 配置获取
72
- └── operate 运维操作
73
- ├── check 系统参数检查和获取
74
- ├── mysql mysql 操作
75
- ├── mail 发送邮件
76
- └── centralization 集中化管理工具 salt
77
- └── websdk2 web开发使用
78
- ├── application.py tornado application
79
- ├── base_handler.py tornado 基类
80
- ├── cache.py 处理redis缓存
81
- ├── configs.py 配置文件管理
82
- ├── consts.py 常量
83
- ├── db_context.py MySQL 处理类
84
- ├── error.py 异常
85
- ├── fetch_coroutine.py
86
- ├── __init__.py
87
- ├── jwt_token.py jwt
88
- ├── mqhelper.py MQ 处理类
89
- ├── program.py
90
- ├── salt_api.py salt 处理类 可以移到工具类
91
- ├── sms.py 发送短信 可以移到工具类
92
- ├── tools.py 工具类
93
- └── web_logs.py 日志处理
94
- ```
95
-
96
- ## License
97
-
98
- Everything is [GPL v3.0](https://www.gnu.org/licenses/gpl-3.0.html).
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