fly-ruler
飞行器建模、编译、仿真与分析的 Python 包,包含 fly_ruler_core、fly_ruler_std、fly_ruler_docs 和原生 Rust 扩展。保留类型声明、py.typed 与代码生成模板。
Docs 通过 fr-docs 打开内置静态文档,或用 fly_ruler_docs.start/serve 集成进 Python 程序。文档含搜索、公式和图片,阅读不需要源码仓库或前端工具。
Graph 是 std runtime 工具,网页和 fr-graph 命令随 Python wheel 分发;Plot 通过 fly_ruler_std.runtime.plot 使用,网页也随 wheel/sdist 分发。使用与维护说明见主仓文档:core、std、Graph与Plot。
示例是主要教学入口:先看 examples/mainline/hybrid_system.py 的十步闭环,再按主题读 examples/core/ 与 examples/std/。每个脚本都在模块 docstring 与行内注释里写清运行方式、参数含义和预期结果;目录总览见 examples/README.md,just test-examples 会把它们按目录跑一遍。
源码开发运行 just setup-dev,随后 just check、just test。完整 Python 测试与 just test-examples 包含 Graph/Plot,会先通过 build-graph 与 build-plot 准备网页,因此需要 Node/pnpm;不涉及 Graph 的窄 Python 测试仍可直接运行。just build 先构建 Graph/Plot/Docs 网页,再由 Maturin 构建本机 wheel。Linux 发行由版本 tag 流水线在 manylinux 2.28 中构建;三个站点复用同一个资源准备器,Docs 也可以通过 just build-docs 单独准备;独立站点位于根 docs/.vitepress/dist/,sdist 预带网页,重建 wheel 不需要 Node。
版本号只由 just set-version X.Y.Z 统一写入 Python 包、Rust crate、两个锁文件、Graph 前端 package.json、Plot 前端 package.json;just version 只读盘点这些来源,just check 会校验它们一致。发布步骤见主仓 RELEASING.md。