# Zampie Utils
一个实用的Python工具包,提供了一系列常用的工具函数。
## 功能特性
- 文件操作工具
- 计时器上下文管理器
- 表情符号和表情识别
- 概率触发器
- 会话保存功能
## 安装
```bash
pip install zampie_utils
```
## 使用示例
```python
from zampie_utils import ContextTimer, read_file
# 使用计时器
with ContextTimer("my_task", "s"):
# 你的代码
pass
# 读取文件
content = read_file("path/to/your/file.txt")
```
## PyPi
https://pypi.org/project/zampie-utils/0.4.0/
Raw data
{
"_id": null,
"home_page": "https://github.com/zampie/zampie_utils",
"name": "zampie-utils",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": "utils, tools, utilities",
"author": "zampie",
"author_email": "zampielzp@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/0c/c3/251e6989048dfd6b7d53502ae378c5dcf39ce8354bc91ec874e5096dcaec/zampie_utils-0.5.1.tar.gz",
"platform": null,
"description": "# Zampie Utils\n\n\u4e00\u4e2a\u5b9e\u7528\u7684Python\u5de5\u5177\u5305\uff0c\u63d0\u4f9b\u4e86\u4e00\u7cfb\u5217\u5e38\u7528\u7684\u5de5\u5177\u51fd\u6570\u3002\n\n## \u529f\u80fd\u7279\u6027\n\n- \u6587\u4ef6\u64cd\u4f5c\u5de5\u5177\n- \u8ba1\u65f6\u5668\u4e0a\u4e0b\u6587\u7ba1\u7406\u5668\n- \u8868\u60c5\u7b26\u53f7\u548c\u8868\u60c5\u8bc6\u522b\n- \u6982\u7387\u89e6\u53d1\u5668\n- \u4f1a\u8bdd\u4fdd\u5b58\u529f\u80fd\n\n## \u5b89\u88c5\n\n```bash\npip install zampie_utils\n```\n\n## \u4f7f\u7528\u793a\u4f8b\n\n```python\nfrom zampie_utils import ContextTimer, read_file\n\n# \u4f7f\u7528\u8ba1\u65f6\u5668\nwith ContextTimer(\"my_task\", \"s\"):\n # \u4f60\u7684\u4ee3\u7801\n pass\n\n# \u8bfb\u53d6\u6587\u4ef6\ncontent = read_file(\"path/to/your/file.txt\")\n```\n\n## PyPi\n\nhttps://pypi.org/project/zampie-utils/0.4.0/\n",
"bugtrack_url": null,
"license": null,
"summary": "A collection of utility functions",
"version": "0.5.1",
"project_urls": {
"Bug Reports": "https://github.com/zampie/zampie_utils/issues",
"Homepage": "https://github.com/zampie/zampie_utils",
"Source": "https://github.com/zampie/zampie_utils"
},
"split_keywords": [
"utils",
" tools",
" utilities"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "ffc7977b7c39f828baa59d8805fa428f65a763c3e80e37b3433c3a9fd9898d91",
"md5": "57813c6bfb4342706477b9a3db08c5f4",
"sha256": "09d3691d9d85a3feb6ac4a270418392f05fff5fe5bd72ea998f6ab4255488349"
},
"downloads": -1,
"filename": "zampie_utils-0.5.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "57813c6bfb4342706477b9a3db08c5f4",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 15122,
"upload_time": "2025-07-12T09:54:51",
"upload_time_iso_8601": "2025-07-12T09:54:51.804579Z",
"url": "https://files.pythonhosted.org/packages/ff/c7/977b7c39f828baa59d8805fa428f65a763c3e80e37b3433c3a9fd9898d91/zampie_utils-0.5.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "0cc3251e6989048dfd6b7d53502ae378c5dcf39ce8354bc91ec874e5096dcaec",
"md5": "941239d96ef4303529aed80e8ddc4e2c",
"sha256": "ed830ca0336c46d31542a37ea2dbc0542edaf8300335b2d9a1d5d833d32e6ada"
},
"downloads": -1,
"filename": "zampie_utils-0.5.1.tar.gz",
"has_sig": false,
"md5_digest": "941239d96ef4303529aed80e8ddc4e2c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 13139,
"upload_time": "2025-07-12T09:54:53",
"upload_time_iso_8601": "2025-07-12T09:54:53.424696Z",
"url": "https://files.pythonhosted.org/packages/0c/c3/251e6989048dfd6b7d53502ae378c5dcf39ce8354bc91ec874e5096dcaec/zampie_utils-0.5.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-12 09:54:53",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "zampie",
"github_project": "zampie_utils",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "zampie-utils"
}