Skip to main content

Common utils for python3.

Project description

pywlf

Common utils for python3.

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


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)

Uploaded Source

Built Distribution

pywlf-0.0.6-py3-none-any.whl (2.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page