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.19.tar.gz
(9.8 kB
view hashes)