Common utils for python3.
Project description
WlfUtil provides a series of imperative functions that help deal with mysql, redis, influxdb and so on.
Utils
tool | desc |
---|---|
log | 日志操作工具类 |
file | 文件目录操作方法集合 |
core | 通用操作方法集合 |
date | 日期操作方法集合 |
influxdb | Influxdb操作工具类 |
mysql | Mysql操作工具类 |
ssh | Shell操作工具类 |
minio | Minio操作工具类 |
redis | Redis操作工具类 |
kafka | Kafka操作工具类 |
http | Http操作工具类 |
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
pywlf-0.0.1.tar.gz
(1.9 kB
view hashes)
Built Distribution
pywlf-0.0.1-py3-none-any.whl
(2.6 kB
view hashes)