基础工具包
| 适合新手快速部署一些基础工具
如何安装
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
Release files for chinaunicom 1.0.12
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| chinaunicom-1.0.12.tar.gz | 5.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| chinaunicom-1.0.12-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.4 kB
Release files / chinaunicom-1.0.12.tar.gz
| Download URL | chinaunicom-1.0.12.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d0ac6cc9c95c38f50430e79766ef544cc0c482bdf8f720652d74c5551986b25c
|
|
BLAKE2b-256 checksum How to use checksums |
d0dc80075c78ff3740a7fd33a38bd76bae154f653cdacf71abdb443d1a7971d1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / chinaunicom-1.0.12-py3-none-any.whl
| Download URL | chinaunicom-1.0.12-py3-none-any.whl |
|---|---|
| Size | 6.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5b79ad16e66417f16a1e724b52a83aeec4ef4a7e36deb9c4f69781711a0f81cc
|
|
BLAKE2b-256 checksum How to use checksums |
e30c85d6b4d32fb37a0c42ca6d2ee39404d702b9f2298910fd2bdee0a274641c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|