项目结构介绍
hpyculator仓库内存放着若干子项目 分别是
hpyc_core 核心SDK
hpyc_pyside_ui 基于pyside6的应用程序
hpyc_cli 尽可能小的实现功能的应用程序
hpyculatorPackage仓库内存放着hpyculator模块 可通过pip获取
pip install hpyculator
项目关系
开发插件需要 hpyculatorPackage
开发新ui需要 hpyc_core和hpyculatorPackage
开发新SDK需要 hpyc_core
项目目录结构介绍
hpyc_core
作为包使用
calculate -> 调用插件计算
plugin -> 插件管理,插件加载
data_structure -> 数据结构
settings -> 管理设置文件
hpyculatorPackage
作为包使用
tests -> 单元测试
hpyculator -> 存放模块
hpycore.py -> 核心
hpydecorator.py -> 为了方便使用而添加的装饰器
hpyfunc.py -> 为了方便添加的函数
hpyc_pyside_ui
__main__.py 是入口文件
hpyc_pyside_ui文件夹下
Plugin -> 内置插件
background_img -> 背景图
tests -> 单元测试
use_for_packing -> 用于打包的工具
utils内是主要代码
document -> 常量存放
locale -> i18n
pyside_frameless_win -> 无边框ui
ui -> ui
ui_manager -> 管理ui, 程序逻辑
hpyc_cli
__main__.py 是入口文件