# CPR可视化工具包
一个用于CPR(圈点圆)可视化的Python工具包,基于Plotly构建。
## 功能特点
- 实时CPR波形可视化
- 种类繁多的花形可视化
- 交互式数据展示
- 自定义图表样式
- 导出图片功能
## 安装
```bash
pip install cprdspy
```
## 快速开始
```python
from cprdspy import wave_circle_geometric
# 创建可视化器实例
fig=wave_circle_geometric(1.2, 2, 12)
# 显示波形
fig.show()
```
```python
from cprdspy import config, set_theme,flowers_flower_by_petal_multi
# 设置主题
set_theme("dark")
# 自定义配置
config.line_width = 3
config.opacity = 0.8
# config.show_grid = True
# config.show_legend = False
# config.show_axis = False
config.axis_mirror = False
# 绘图时应用配置
fig = flowers_flower_by_petal_multi(
[0, 0], 1, 1, 4, np.sqrt(2), 3, 12, color="red", width=2, opacity=0.5
)
config.apply_to_figure(fig)
fig.update_layout(xaxis=dict(visible=False), yaxis=dict(visible=False))
```
## 文档
详细的文档请访问:[文档链接](https://github.com/lbylzk8/cprdspy#readme)
## 许可证
本项目采用 MIT 许可证 - 详见 [LICENSE](LICENSE) 文件
## 贡献
欢迎提交 Pull Request 或创建 Issue!
## 联系方式
如有问题,请通过以下方式联系我们:
- 提交 Issue
- 发送邮件至:lbylzk8@outlook.com
Raw data
{
"_id": null,
"home_page": null,
"name": "cprdspy",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "cpr, dash, medical, plotly, visualization",
"author": "CPR\u53ef\u89c6\u5316\u56e2\u961f",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/e1/c1/00811be7cb409e9329079ef390afd6287dcc869d5eaba18470fbd9ee8b79/cprdspy-0.2.2.tar.gz",
"platform": null,
"description": "# CPR\u53ef\u89c6\u5316\u5de5\u5177\u5305\n\n\u4e00\u4e2a\u7528\u4e8eCPR(\u5708\u70b9\u5706)\u53ef\u89c6\u5316\u7684Python\u5de5\u5177\u5305\uff0c\u57fa\u4e8ePlotly\u6784\u5efa\u3002\n\n## \u529f\u80fd\u7279\u70b9\n\n- \u5b9e\u65f6CPR\u6ce2\u5f62\u53ef\u89c6\u5316\n- \u79cd\u7c7b\u7e41\u591a\u7684\u82b1\u5f62\u53ef\u89c6\u5316\n- \u4ea4\u4e92\u5f0f\u6570\u636e\u5c55\u793a\n- \u81ea\u5b9a\u4e49\u56fe\u8868\u6837\u5f0f\n- \u5bfc\u51fa\u56fe\u7247\u529f\u80fd\n\n## \u5b89\u88c5\n\n```bash\npip install cprdspy\n```\n\n## \u5feb\u901f\u5f00\u59cb\n\n```python\nfrom cprdspy import wave_circle_geometric\n\n\n# \u521b\u5efa\u53ef\u89c6\u5316\u5668\u5b9e\u4f8b\nfig=wave_circle_geometric(1.2, 2, 12)\n\n# \u663e\u793a\u6ce2\u5f62\nfig.show()\n```\n```python\nfrom cprdspy import config, set_theme,flowers_flower_by_petal_multi\n\n# \u8bbe\u7f6e\u4e3b\u9898\nset_theme(\"dark\")\n\n# \u81ea\u5b9a\u4e49\u914d\u7f6e\nconfig.line_width = 3\nconfig.opacity = 0.8\n# config.show_grid = True\n# config.show_legend = False\n# config.show_axis = False \nconfig.axis_mirror = False\n# \u7ed8\u56fe\u65f6\u5e94\u7528\u914d\u7f6e\nfig = flowers_flower_by_petal_multi(\n [0, 0], 1, 1, 4, np.sqrt(2), 3, 12, color=\"red\", width=2, opacity=0.5\n)\nconfig.apply_to_figure(fig)\nfig.update_layout(xaxis=dict(visible=False), yaxis=dict(visible=False))\n```\n\n## \u6587\u6863\n\n\u8be6\u7ec6\u7684\u6587\u6863\u8bf7\u8bbf\u95ee\uff1a[\u6587\u6863\u94fe\u63a5](https://github.com/lbylzk8/cprdspy#readme)\n\n## \u8bb8\u53ef\u8bc1\n\n\u672c\u9879\u76ee\u91c7\u7528 MIT \u8bb8\u53ef\u8bc1 - \u8be6\u89c1 [LICENSE](LICENSE) \u6587\u4ef6\n\n## \u8d21\u732e\n\n\u6b22\u8fce\u63d0\u4ea4 Pull Request \u6216\u521b\u5efa Issue\uff01\n\n## \u8054\u7cfb\u65b9\u5f0f\n\n\u5982\u6709\u95ee\u9898\uff0c\u8bf7\u901a\u8fc7\u4ee5\u4e0b\u65b9\u5f0f\u8054\u7cfb\u6211\u4eec\uff1a\n- \u63d0\u4ea4 Issue\n- \u53d1\u9001\u90ae\u4ef6\u81f3\uff1albylzk8@outlook.com",
"bugtrack_url": null,
"license": "MIT",
"summary": "CPR\u53ef\u89c6\u5316\u521b\u610f\u5305",
"version": "0.2.2",
"project_urls": {
"Documentation": "https://github.com/lbylzk8/cprdspy#readme",
"Homepage": "https://github.com/lbylzk8/cprdspy",
"Issues": "https://github.com/lbylzk8/cprdspy/issues",
"Repository": "https://github.com/lbylzk8/cprdspy.git"
},
"split_keywords": [
"cpr",
" dash",
" medical",
" plotly",
" visualization"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "24e787db5cf04adaf4a9df8d5ade392ac6f62f688490fc62917ae0bd0585d9bd",
"md5": "eda3a87b268eb89127ba64dee122f6f6",
"sha256": "4fd6cedf49b5b2dd9ebffb33d27f5ec98f8dc59e581a0b4c8bfde9b33a5c39d4"
},
"downloads": -1,
"filename": "cprdspy-0.2.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "eda3a87b268eb89127ba64dee122f6f6",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 3037758,
"upload_time": "2025-09-10T13:36:25",
"upload_time_iso_8601": "2025-09-10T13:36:25.874901Z",
"url": "https://files.pythonhosted.org/packages/24/e7/87db5cf04adaf4a9df8d5ade392ac6f62f688490fc62917ae0bd0585d9bd/cprdspy-0.2.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "e1c100811be7cb409e9329079ef390afd6287dcc869d5eaba18470fbd9ee8b79",
"md5": "185459d8c94ca15c07acae1c67fc113a",
"sha256": "653aae584c50314ba166136db357cbc7366fa99bba3c5e11d258b61ee0fb02ac"
},
"downloads": -1,
"filename": "cprdspy-0.2.2.tar.gz",
"has_sig": false,
"md5_digest": "185459d8c94ca15c07acae1c67fc113a",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 47977053,
"upload_time": "2025-09-10T13:39:28",
"upload_time_iso_8601": "2025-09-10T13:39:28.398849Z",
"url": "https://files.pythonhosted.org/packages/e1/c1/00811be7cb409e9329079ef390afd6287dcc869d5eaba18470fbd9ee8b79/cprdspy-0.2.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-09-10 13:39:28",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "lbylzk8",
"github_project": "cprdspy#readme",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [
{
"name": "numpy",
"specs": []
},
{
"name": "matplotlib",
"specs": []
},
{
"name": "plotly",
"specs": []
},
{
"name": "dash",
"specs": []
}
],
"lcname": "cprdspy"
}