pywlf


Namepywlf JSON
Version 0.0.8 PyPI version JSON
download
home_pagehttps://github.com/waisaa/tools-python3-wlf
SummaryCommon utils for python3.
upload_time2024-10-26 04:54:47
maintainerNone
docs_urlNone
authorwaisaa
requires_python>=3.7
licenseMIT Licence
keywords wlflog wlffile wlfdate wlfssh wlfcore wlfinfluxdb wlfmysql wlfredis wlfminio wlfkafka wlfhttp
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <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>

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

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



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/waisaa/tools-python3-wlf",
    "name": "pywlf",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": "wlflog, wlffile, wlfdate, wlfssh, wlfcore, wlfinfluxdb, wlfmysql, wlfredis, wlfminio, wlfkafka, wlfhttp",
    "author": "waisaa",
    "author_email": "waisaa@qq.com",
    "download_url": "https://files.pythonhosted.org/packages/f4/2b/4e3ee78fea39e7b48754e3a70dc3c9477f5eb76a234207a11664dc064ccb/pywlf-0.0.8.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\npywlf 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 pywlf\n```\n\n## Quickuse\n```python3\n# \u5f15\u5165\u65e5\u5fd7\u5de5\u5177\u7c7b\n#from pywlf.log import LogUtil\n# \u5f15\u5165\u6587\u4ef6\u76ee\u5f55\u64cd\u4f5c\u65b9\u6cd5\u96c6\u5408\u4e2d\u7684\u67d0\u4e2a\u65b9\u6cd5\nfrom pywlf.file import del_fd\n\nlog_name = 'run.log'\ndel_fd(log_file)\nLogUtil.init(log_name, 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.8",
    "project_urls": {
        "Homepage": "https://github.com/waisaa/tools-python3-wlf"
    },
    "split_keywords": [
        "wlflog",
        " wlffile",
        " wlfdate",
        " wlfssh",
        " wlfcore",
        " wlfinfluxdb",
        " wlfmysql",
        " wlfredis",
        " wlfminio",
        " wlfkafka",
        " wlfhttp"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "208d4db9ce6135b7d37314d040cf3a6a76fd420cb74f0fe8b113f66dd8ebb16b",
                "md5": "e1ed085ec885ed72f16d6795914ffef0",
                "sha256": "df70df4b73862e1029effb695b250dca88f746208db921defab33927a4d1c095"
            },
            "downloads": -1,
            "filename": "pywlf-0.0.8-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "e1ed085ec885ed72f16d6795914ffef0",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 2560,
            "upload_time": "2024-10-26T04:54:46",
            "upload_time_iso_8601": "2024-10-26T04:54:46.022789Z",
            "url": "https://files.pythonhosted.org/packages/20/8d/4db9ce6135b7d37314d040cf3a6a76fd420cb74f0fe8b113f66dd8ebb16b/pywlf-0.0.8-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f42b4e3ee78fea39e7b48754e3a70dc3c9477f5eb76a234207a11664dc064ccb",
                "md5": "d4b0f49c63e45fccfdcc7c6a73b7a47a",
                "sha256": "cd1d3a7e272fa9af055eb9f0322bdb7cc8cbd69a030b9c790104158a28667222"
            },
            "downloads": -1,
            "filename": "pywlf-0.0.8.tar.gz",
            "has_sig": false,
            "md5_digest": "d4b0f49c63e45fccfdcc7c6a73b7a47a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 1863,
            "upload_time": "2024-10-26T04:54:47",
            "upload_time_iso_8601": "2024-10-26T04:54:47.556815Z",
            "url": "https://files.pythonhosted.org/packages/f4/2b/4e3ee78fea39e7b48754e3a70dc3c9477f5eb76a234207a11664dc064ccb/pywlf-0.0.8.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-26 04:54:47",
    "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"
}
        
Elapsed time: 0.73276s