中国联通软件研究院专用python工具包
Project description
基础工具包
| 适合新手快速部署一些基础工具
如何安装
python setup.py install
此工具依赖的其他包:
- MySQLdb see https://github.com/farcepest/MySQLdb1
- DBUtils see https://cito.github.io/DBUtils/
如何使用
例1
# 申请资源
mysql = Mysql()
#执行语句
sqlAll = "SELECT * FROM BMS_ROLE"
#返回结果
result = mysql.getAll(sqlAll)
#打印
print ("mysql")
例2
配置说明:
PROJECT_NAME = 项目根目录
LOG_PATH_DIR = 日志位置
LOG_FORMATTER = 日志格式化
LOG_LEVEL = 日志级别
LOG_SPLIT_TIMES = 日志分割:D:按天分割;H:按小时分割;M:按分钟分割
CONFIG 为上述配置的字典形式
#加载日志
m_logger=MyLogger(CONFIG)
#打印日志
m_logger.ERRORLog("自定义内容")
Licence
GPL v3 or any later version
Author
wangruomeng
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
chinaunicom-1.0.12.tar.gz
(5.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file chinaunicom-1.0.12.tar.gz.
File metadata
- Download URL: chinaunicom-1.0.12.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d0ac6cc9c95c38f50430e79766ef544cc0c482bdf8f720652d74c5551986b25c
|
|
| MD5 |
1fbf52e62fbbecaf53e9158310480236
|
|
| BLAKE2b-256 |
d0dc80075c78ff3740a7fd33a38bd76bae154f653cdacf71abdb443d1a7971d1
|
File details
Details for the file chinaunicom-1.0.12-py3-none-any.whl.
File metadata
- Download URL: chinaunicom-1.0.12-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5b79ad16e66417f16a1e724b52a83aeec4ef4a7e36deb9c4f69781711a0f81cc
|
|
| MD5 |
5a9bb590249166ca5b3f5e024a359c25
|
|
| BLAKE2b-256 |
e30c85d6b4d32fb37a0c42ca6d2ee39404d702b9f2298910fd2bdee0a274641c
|