# SomeTools 一些常用工具
[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg?style=plastic)](./LICENSE)
[![pypi](https://img.shields.io/pypi/v/SomeTools.svg?style=plastic)](https://pypi.org/project/SomeTools/)
[![wheel](https://img.shields.io/pypi/wheel/SomeTools.svg?style=plastic)](https://pypi.org/project/SomeTools/)
[![pyversions](https://img.shields.io/pypi/pyversions/SomeTools.svg?style=plastic)](https://pypi.org/project/SomeTools/)
[![Downloads](https://pepy.tech/badge/SomeTools?style=plastic)](https://pepy.tech/badge/SomeTools)
---------------------------------------------
一些方便日常使用的工具
* 将输入的任何类型的日期字符串类型转化为datetime.datetime类型的日期对象
* 移除一个字符串中的回车换行空格制表符等内容
* 将中文字符转为其拼音的首字母
* 更加方便的日志记录工具
* 繁体简体中文汉字转换工具
* url编码解码
* 正则表达式提取字符串中的中文内容工具
* 检测 bytes 编码
* 查看硬件信息
* 获取本月的中国法定节假日和工作日
* redis创建连接同步、异步工具
* 异步布隆过滤工具
* 异步 MySql orm
* 同步 MySql 连接池
* 图片处理
* 进程池
* 查看操作系统信息
* 获取本机ip地址
* AES、RSA加密解密
* base64、md5封装
## 安装
``` bash
$ python -m pip install --upgrade pip
$ pip install SomeTools -i https://pypi.python.org/simple
```
## 使用
1.同步工具使用参考demo.py
2.异步工具使用参考async_demo.py
Raw data
{
"_id": null,
"home_page": "https://pypi.org/project/SomeTools/",
"name": "SomeTools",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": "",
"keywords": "Python,Tools",
"author": "zhangkun",
"author_email": "zk.kyle@foxmail.com",
"download_url": "https://files.pythonhosted.org/packages/3a/bc/1cef48a2eeb8c58657a4ccc47a3fa77e0a023c8e6dd2746c7986c33cff27/SomeTools-0.1.44.tar.gz",
"platform": "any",
"description": "# SomeTools \u4e00\u4e9b\u5e38\u7528\u5de5\u5177\r\n\r\n[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg?style=plastic)](./LICENSE)\r\n[![pypi](https://img.shields.io/pypi/v/SomeTools.svg?style=plastic)](https://pypi.org/project/SomeTools/)\r\n[![wheel](https://img.shields.io/pypi/wheel/SomeTools.svg?style=plastic)](https://pypi.org/project/SomeTools/)\r\n[![pyversions](https://img.shields.io/pypi/pyversions/SomeTools.svg?style=plastic)](https://pypi.org/project/SomeTools/)\r\n[![Downloads](https://pepy.tech/badge/SomeTools?style=plastic)](https://pepy.tech/badge/SomeTools)\r\n\r\n---------------------------------------------\r\n\r\n\u4e00\u4e9b\u65b9\u4fbf\u65e5\u5e38\u4f7f\u7528\u7684\u5de5\u5177\r\n\r\n* \u5c06\u8f93\u5165\u7684\u4efb\u4f55\u7c7b\u578b\u7684\u65e5\u671f\u5b57\u7b26\u4e32\u7c7b\u578b\u8f6c\u5316\u4e3adatetime.datetime\u7c7b\u578b\u7684\u65e5\u671f\u5bf9\u8c61\r\n* \u79fb\u9664\u4e00\u4e2a\u5b57\u7b26\u4e32\u4e2d\u7684\u56de\u8f66\u6362\u884c\u7a7a\u683c\u5236\u8868\u7b26\u7b49\u5185\u5bb9\r\n* \u5c06\u4e2d\u6587\u5b57\u7b26\u8f6c\u4e3a\u5176\u62fc\u97f3\u7684\u9996\u5b57\u6bcd\r\n* \u66f4\u52a0\u65b9\u4fbf\u7684\u65e5\u5fd7\u8bb0\u5f55\u5de5\u5177\r\n* \u7e41\u4f53\u7b80\u4f53\u4e2d\u6587\u6c49\u5b57\u8f6c\u6362\u5de5\u5177\r\n* url\u7f16\u7801\u89e3\u7801\r\n* \u6b63\u5219\u8868\u8fbe\u5f0f\u63d0\u53d6\u5b57\u7b26\u4e32\u4e2d\u7684\u4e2d\u6587\u5185\u5bb9\u5de5\u5177\r\n* \u68c0\u6d4b bytes \u7f16\u7801\r\n* \u67e5\u770b\u786c\u4ef6\u4fe1\u606f\r\n* \u83b7\u53d6\u672c\u6708\u7684\u4e2d\u56fd\u6cd5\u5b9a\u8282\u5047\u65e5\u548c\u5de5\u4f5c\u65e5\r\n\r\n* redis\u521b\u5efa\u8fde\u63a5\u540c\u6b65\u3001\u5f02\u6b65\u5de5\u5177\r\n* \u5f02\u6b65\u5e03\u9686\u8fc7\u6ee4\u5de5\u5177\r\n* \u5f02\u6b65 MySql orm\r\n* \u540c\u6b65 MySql \u8fde\u63a5\u6c60\r\n* \u56fe\u7247\u5904\u7406\r\n* \u8fdb\u7a0b\u6c60\r\n* \u67e5\u770b\u64cd\u4f5c\u7cfb\u7edf\u4fe1\u606f\r\n* \u83b7\u53d6\u672c\u673aip\u5730\u5740\r\n* AES\u3001RSA\u52a0\u5bc6\u89e3\u5bc6\r\n* base64\u3001md5\u5c01\u88c5\r\n\r\n## \u5b89\u88c5\r\n\r\n``` bash\r\n$ python -m pip install --upgrade pip\r\n$ pip install SomeTools -i https://pypi.python.org/simple\r\n```\r\n\r\n\r\n## \u4f7f\u7528\r\n\r\n1.\u540c\u6b65\u5de5\u5177\u4f7f\u7528\u53c2\u8003demo.py\r\n\r\n2.\u5f02\u6b65\u5de5\u5177\u4f7f\u7528\u53c2\u8003async_demo.py\r\n\r\n",
"bugtrack_url": null,
"license": "",
"summary": "Some python tools",
"version": "0.1.44",
"project_urls": {
"Documentation": "https://github.com/584807419/SomeTools",
"Funding": "https://github.com/584807419/SomeTools",
"Homepage": "https://pypi.org/project/SomeTools/",
"Source": "https://github.com/584807419/SomeTools",
"Tracker": "https://github.com/584807419/SomeTools"
},
"split_keywords": [
"python",
"tools"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "6940085ac6346a1d4db96c01b645d1fb66ad72633a10420b00a54b084e49f5b7",
"md5": "c2a9151ffd11ea6139b8e371643e605f",
"sha256": "54ee9ee7ed7455933a8cbea1f68e8ab40149cf2f34c3c73c6101712ef9cf6363"
},
"downloads": -1,
"filename": "SomeTools-0.1.44-py3-none-any.whl",
"has_sig": false,
"md5_digest": "c2a9151ffd11ea6139b8e371643e605f",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 38674,
"upload_time": "2023-08-05T05:05:41",
"upload_time_iso_8601": "2023-08-05T05:05:41.279295Z",
"url": "https://files.pythonhosted.org/packages/69/40/085ac6346a1d4db96c01b645d1fb66ad72633a10420b00a54b084e49f5b7/SomeTools-0.1.44-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "3abc1cef48a2eeb8c58657a4ccc47a3fa77e0a023c8e6dd2746c7986c33cff27",
"md5": "10e1617974eff15bca6437b875e3615a",
"sha256": "c53649e6a402ae327d1b48fb774ae496a441164f5a2250db65971471626482cb"
},
"downloads": -1,
"filename": "SomeTools-0.1.44.tar.gz",
"has_sig": false,
"md5_digest": "10e1617974eff15bca6437b875e3615a",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 26363,
"upload_time": "2023-08-05T05:05:43",
"upload_time_iso_8601": "2023-08-05T05:05:43.561266Z",
"url": "https://files.pythonhosted.org/packages/3a/bc/1cef48a2eeb8c58657a4ccc47a3fa77e0a023c8e6dd2746c7986c33cff27/SomeTools-0.1.44.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-08-05 05:05:43",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "584807419",
"github_project": "SomeTools",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "sometools"
}