Metadata-Version: 2.1
Name: pywlf
Version: 0.0.1
Summary: Common utils for python3.
Home-page: https://github.com/waisaa/tools-python3-wlf
Author: waisaa
Author-email: waisaa@qq.com
License: MIT Licence
Keywords: log,file,date,ssh,core,influxdb,mysql,redis,minio,kafka,http
Platform: any
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Requires-Dist: colorlog (==6.6.0)
Requires-Dist: influxdb (==5.3.1)
Requires-Dist: PyMySQL (==1.0.2)
Requires-Dist: paramiko (==2.11.0)
Requires-Dist: minio (==7.1.9)
Requires-Dist: redis (==3.2.0)

<div align="center">

# pywlf

*Common utils for python3.*

[![](https://img.shields.io/badge/pypi-latest-9cf.svg)](https://pypi.org/project/wlfutil/) [![](https://img.shields.io/badge/blog-@waisaa-blue.svg)](https://blog.csdn.net/qq_42761569?type=blog) [![](https://img.shields.io/badge/license-MIT-brightgreen.svg)](https://github.com/waisaa/tools-python3-wlf/tree/main/LICENSE)

</div>

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
```python3
pip3 install wlfutil
```

## Quickuse
```python3
# 引入所有工具类
#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')
```


