Skip to main content

Common utils for python.

Project description

WlfUtil

Common utils for python.

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


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 hashes)

Uploaded Source

Built Distribution

wlfutil-0.0.51-py3-none-any.whl (18.1 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