Common utils for python3.
Project description
pywlf 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 pywlf
Quickuse
# 引入日志工具类
#from pywlf.log import LogUtil
# 引入文件目录操作方法集合中的某个方法
from pywlf.file import del_fd
log_name = 'run.log'
del_fd(log_file)
LogUtil.init(log_name, 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.6.tar.gz
(1.8 kB
view hashes)
Built Distribution
pywlf-0.0.6-py3-none-any.whl
(2.6 kB
view hashes)