Common utils for python.
Project description
WlfUtil provides a series of imperative functions that help deal with mysql, redis, influxdb and so on.
Utils
util | func |
---|---|
LogUtil | 日志打印工具类 |
FileUtil | 文件目录操作工具类 |
ConfUtil | 配置文件操作工具类 |
UniUtil | 通用工具类 |
DtUtil | 日期操作工具类 |
InfluxUtil | Influxdb操作工具类 |
MysqlUtil | Mysql操作工具类 |
ShellUtil | Shell操作工具类 |
MinioUtil | Minio操作工具类 |
RedisUtil | Redis操作工具类 |
Installation
pip3 install wlfutil
Quickuse
# 引入所有工具类
#from wlfutil.all import *
# 引入指定的
from wlfutil.all import LogUtil, FileUtil
log_file = 'test/run.log'
FileUtil.del_dir_or_file(log_file)
LogUtil.init(log_file, True)
LogUtil.info('title', 'this is a test')
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
wlfutil-0.0.51.tar.gz
(11.6 kB
view details)
Built Distribution
wlfutil-0.0.51-py3-none-any.whl
(18.1 kB
view details)
File details
Details for the file wlfutil-0.0.51.tar.gz
.
File metadata
- Download URL: wlfutil-0.0.51.tar.gz
- Upload date:
- Size: 11.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1f27ff188849db094da1e90031fab46a803f4b78f943d14b7abc01b75910064 |
|
MD5 | 1cd220e31f32ab5cfc770e8e667f5c07 |
|
BLAKE2b-256 | af7a3371d9f77b767910c94d38cc7e615888cb3838ab202f22ad4d5c6a5aedd2 |
File details
Details for the file wlfutil-0.0.51-py3-none-any.whl
.
File metadata
- Download URL: wlfutil-0.0.51-py3-none-any.whl
- Upload date:
- Size: 18.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02f2de29d9ae4ef28031bbd1b4daf66cf7fd094689f7af57bbdcaaa251a1e499 |
|
MD5 | 692b6ccb2aef8c3fc31fb5cfaa4d4802 |
|
BLAKE2b-256 | 99135bfd6aefc8717b830a3b7d37d96738832f9d5347e65b939c7c80558585f7 |