<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')
```
Raw data
{
"_id": null,
"home_page": "https://github.com/waisaa/tools-python3-wlf",
"name": "pywlf",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "",
"keywords": "log,file,date,ssh,core,influxdb,mysql,redis,minio,kafka,http",
"author": "waisaa",
"author_email": "waisaa@qq.com",
"download_url": "https://files.pythonhosted.org/packages/23/84/c39b6842619b128b0e89853f88ed8c19e3699be92e84af2b5c5d5faf124c/pywlf-0.0.1.tar.gz",
"platform": "any",
"description": "<div align=\"center\">\n\n# pywlf\n\n*Common utils for python3.*\n\n[![](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)\n\n</div>\n\nWlfUtil provides a series of imperative functions that help deal with mysql, redis, influxdb and so on.\n\n## Utils\n| tool | desc |\n|:---------:|:---------:|\n| log | \u65e5\u5fd7\u64cd\u4f5c\u5de5\u5177\u7c7b |\n| file | \u6587\u4ef6\u76ee\u5f55\u64cd\u4f5c\u65b9\u6cd5\u96c6\u5408|\n| core | \u901a\u7528\u64cd\u4f5c\u65b9\u6cd5\u96c6\u5408|\n| date | \u65e5\u671f\u64cd\u4f5c\u65b9\u6cd5\u96c6\u5408|\n| influxdb | Influxdb\u64cd\u4f5c\u5de5\u5177\u7c7b|\n| mysql | Mysql\u64cd\u4f5c\u5de5\u5177\u7c7b|\n| ssh | Shell\u64cd\u4f5c\u5de5\u5177\u7c7b|\n| minio | Minio\u64cd\u4f5c\u5de5\u5177\u7c7b|\n| redis | Redis\u64cd\u4f5c\u5de5\u5177\u7c7b|\n| kafka | Kafka\u64cd\u4f5c\u5de5\u5177\u7c7b|\n| http | Http\u64cd\u4f5c\u5de5\u5177\u7c7b|\n\n## Installation\n```python3\npip3 install wlfutil\n```\n\n## Quickuse\n```python3\n# \u5f15\u5165\u6240\u6709\u5de5\u5177\u7c7b\n#from wlfutil.all import *\n# \u5f15\u5165\u6307\u5b9a\u7684\nfrom wlfutil.all import LogUtil, FileUtil\n\nlog_file = 'test/run.log'\nFileUtil.del_dir_or_file(log_file)\nLogUtil.init(log_file, True)\n\nLogUtil.info('title', 'this is a test')\n```\n\n\n",
"bugtrack_url": null,
"license": "MIT Licence",
"summary": "Common utils for python3.",
"version": "0.0.1",
"project_urls": {
"Homepage": "https://github.com/waisaa/tools-python3-wlf"
},
"split_keywords": [
"log",
"file",
"date",
"ssh",
"core",
"influxdb",
"mysql",
"redis",
"minio",
"kafka",
"http"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "beca49499ebb0448483d82e4aa0e6ca7050aef886628d50a3d0c9ba2e35c568d",
"md5": "3f0c2adaebca0eb8867274bfa68ac4a1",
"sha256": "cacdbd3053186e21f63de4b091d89aa444b8b8ecbb9510a0e896f4e24ca9357f"
},
"downloads": -1,
"filename": "pywlf-0.0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "3f0c2adaebca0eb8867274bfa68ac4a1",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 2607,
"upload_time": "2023-10-20T02:56:55",
"upload_time_iso_8601": "2023-10-20T02:56:55.360956Z",
"url": "https://files.pythonhosted.org/packages/be/ca/49499ebb0448483d82e4aa0e6ca7050aef886628d50a3d0c9ba2e35c568d/pywlf-0.0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "2384c39b6842619b128b0e89853f88ed8c19e3699be92e84af2b5c5d5faf124c",
"md5": "79947062b46771efd1a12614f118b125",
"sha256": "e11d090c3a5e3ad2a937ebe5efc12c282e9535fffafd814a5e9b7894344b157b"
},
"downloads": -1,
"filename": "pywlf-0.0.1.tar.gz",
"has_sig": false,
"md5_digest": "79947062b46771efd1a12614f118b125",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 1909,
"upload_time": "2023-10-20T02:56:57",
"upload_time_iso_8601": "2023-10-20T02:56:57.438717Z",
"url": "https://files.pythonhosted.org/packages/23/84/c39b6842619b128b0e89853f88ed8c19e3699be92e84af2b5c5d5faf124c/pywlf-0.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-10-20 02:56:57",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "waisaa",
"github_project": "tools-python3-wlf",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [],
"lcname": "pywlf"
}