wlfutil


Namewlfutil JSON
Version 0.0.47 PyPI version JSON
download
home_pagehttps://github.com/waisaa/wlf-util
SummaryCommon utils for python.
upload_time2023-09-05 08:23:29
maintainer
docs_urlNone
authorwaisaa
requires_python>=3.7
licenseMIT Licence
keywords uniutil confutil fileutil dtutil logutil influxutil mysqlutil shellutil minioutil redisutil
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <div align="center">

# WlfUtil

*Common utils for python.*

[![](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/wlf-util/blob/main/LICENSE)

</div>

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
```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/wlf-util",
    "name": "wlfutil",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "UniUtil,ConfUtil,FileUtil,DtUtil,LogUtil,InfluxUtil,MysqlUtil,ShellUtil,MinioUtil,RedisUtil",
    "author": "waisaa",
    "author_email": "waisaa@qq.com",
    "download_url": "https://files.pythonhosted.org/packages/73/10/7aa474622f0d94dfef3106961449e1830736a837121be7f13e7e306c5ea6/wlfutil-0.0.47.tar.gz",
    "platform": "any",
    "description": "<div align=\"center\">\n\n# WlfUtil\n\n*Common utils for python.*\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/wlf-util/blob/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| util | func |\n|:---------:|:---------:|\n| LogUtil | \u65e5\u5fd7\u6253\u5370\u5de5\u5177\u7c7b |\n| FileUtil | \u6587\u4ef6\u76ee\u5f55\u64cd\u4f5c\u5de5\u5177\u7c7b|\n| ConfUtil | \u914d\u7f6e\u6587\u4ef6\u64cd\u4f5c\u5de5\u5177\u7c7b|\n| UniUtil | \u901a\u7528\u5de5\u5177\u7c7b|\n| DtUtil | \u65e5\u671f\u64cd\u4f5c\u5de5\u5177\u7c7b|\n| InfluxUtil | Influxdb\u64cd\u4f5c\u5de5\u5177\u7c7b|\n| MysqlUtil | Mysql\u64cd\u4f5c\u5de5\u5177\u7c7b|\n| ShellUtil | Shell\u64cd\u4f5c\u5de5\u5177\u7c7b|\n| MinioUtil | Minio\u64cd\u4f5c\u5de5\u5177\u7c7b|\n| RedisUtil | Redis\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 python.",
    "version": "0.0.47",
    "project_urls": {
        "Homepage": "https://github.com/waisaa/wlf-util"
    },
    "split_keywords": [
        "uniutil",
        "confutil",
        "fileutil",
        "dtutil",
        "logutil",
        "influxutil",
        "mysqlutil",
        "shellutil",
        "minioutil",
        "redisutil"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c973fb348d9565d4ab680e39b0cc0706da8c1ffedce83a4e1393754e3d7b93b9",
                "md5": "2ab827423a04211d4fdec3d1a92d687e",
                "sha256": "b9efae505e9a9ce6d4f27590f2b22f6ed7133d8a69ed9bb05348d38c3d24527b"
            },
            "downloads": -1,
            "filename": "wlfutil-0.0.47-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2ab827423a04211d4fdec3d1a92d687e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 18017,
            "upload_time": "2023-09-05T08:23:28",
            "upload_time_iso_8601": "2023-09-05T08:23:28.210861Z",
            "url": "https://files.pythonhosted.org/packages/c9/73/fb348d9565d4ab680e39b0cc0706da8c1ffedce83a4e1393754e3d7b93b9/wlfutil-0.0.47-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "73107aa474622f0d94dfef3106961449e1830736a837121be7f13e7e306c5ea6",
                "md5": "03efd858b77f88bb29a0bac83ba38346",
                "sha256": "7142411ca98518011ee6e86021c41ad352f2caff0ae3a43e8e5411e3e6072210"
            },
            "downloads": -1,
            "filename": "wlfutil-0.0.47.tar.gz",
            "has_sig": false,
            "md5_digest": "03efd858b77f88bb29a0bac83ba38346",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 11249,
            "upload_time": "2023-09-05T08:23:29",
            "upload_time_iso_8601": "2023-09-05T08:23:29.833584Z",
            "url": "https://files.pythonhosted.org/packages/73/10/7aa474622f0d94dfef3106961449e1830736a837121be7f13e7e306c5ea6/wlfutil-0.0.47.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-09-05 08:23:29",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "waisaa",
    "github_project": "wlf-util",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "wlfutil"
}
        
Elapsed time: 0.11677s