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.8.tar.gz
(1.9 kB
view details)
Built Distribution
pywlf-0.0.8-py3-none-any.whl
(2.6 kB
view details)
File details
Details for the file pywlf-0.0.8.tar.gz
.
File metadata
- Download URL: pywlf-0.0.8.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd1d3a7e272fa9af055eb9f0322bdb7cc8cbd69a030b9c790104158a28667222 |
|
MD5 | d4b0f49c63e45fccfdcc7c6a73b7a47a |
|
BLAKE2b-256 | f42b4e3ee78fea39e7b48754e3a70dc3c9477f5eb76a234207a11664dc064ccb |
File details
Details for the file pywlf-0.0.8-py3-none-any.whl
.
File metadata
- Download URL: pywlf-0.0.8-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | df70df4b73862e1029effb695b250dca88f746208db921defab33927a4d1c095 |
|
MD5 | e1ed085ec885ed72f16d6795914ffef0 |
|
BLAKE2b-256 | 208d4db9ce6135b7d37314d040cf3a6a76fd420cb74f0fe8b113f66dd8ebb16b |