Skip to main content

oiiaio-web-kepler

轨道计算器 / Orbital Mechanics Calculator

A Python library for orbital mechanics calculations.


介绍 / Introduction

中文: oiiaio-web-kepler 是一个用于计算轨道周期、引力、二体问题等轨道力学数据的 Python 库。

English: oiiaio-web-kepler is a Python library for calculating orbital periods, gravitational forces, and two-body problem solutions.


安装 / Installation

中文: 使用 pip 安装:

English: Install with pip:

pip install oiiaio-web-kepler


使用方法 / Usage

中文: 安装后,在 Python 中导入并使用:

English: After installation, import and use in Python:

import oiiaio_web_kepler as k

计算引力 / Calculate gravity

force = k.compute_gravity(5.972e24, 1000, 6371000) print(f"引力: {force}")

计算轨道速度 / Calculate orbital velocity

v = k.orbital_velocity(5.972e24, 6800000) print(f"轨道速度: {v}")

查询版本更新信息 / Query version update information

info = k.update_information("1.2.2") print(f"更新信息: {info}")

霍曼转移轨道计算 / Hohmann transfer orbit calculation

dv1, dv2, total_dv, time = k.hohmann_transfer(6371000, 42164000, 3.986e14) print(f"第一次点火速度增量: {dv1} m/s") print(f"第二次点火速度增量: {dv2} m/s") print(f"总速度增量: {total_dv} m/s") print(f"转移时间: {time} 秒")

更新日志 / Changelog

点击查看完整的更新日志(Click to expand)

[1.3.1] - 2026-09-12

改进 / Improved

中文:

  • 添加 python_requires='>=3.8',明确 Python 版本要求。
  • 添加 classifiers,完善 PyPI 页面分类。
  • 添加 project_urls,指向 GitHub 仓库和 Issues。
  • 优化 setup.py,支持 Linux 和 Windows 双平台编译。
  • README 改用 utf-8-sig 读取,避免 BOM 影响。
  • 修正 README 中 update_information() 示例版本号为 1.3.1。

English:

  • Added python_requires='>=3.8' to specify Python version requirement.
  • Added classifiers for PyPI page categorization.
  • Added project_urls pointing to GitHub repository and Issues.
  • Improved setup.py to support both Linux and Windows compilation.
  • README now reads with utf-8-sig to avoid BOM issues.
  • Fixed update_information() example version in README to 1.3.1.

[1.3.0] - 2026-09-11

添加 / Added

中文:

  • 新增 hohmann_transfer() 函数,支持霍曼转移轨道计算。
  • 新增 hohmann() 别名,与 hohmann_transfer() 功能相同。

English:

  • Added hohmann_transfer() function for Hohmann transfer orbit calculation.
  • Added hohmann() alias, same function as hohmann_transfer().

[1.2.2] - 2026-09-11

移除 / Removed

中文:

  • 移除了 play_desktop() 功能,不再依赖 pygame-ce,纯轨道计算器。

English:

  • Removed play_desktop() function, no longer depends on pygame-ce, pure orbital mechanics calculator.

[1.2.1] - 2026-09-06

添加 / Added

中文:

  • 更新了 abi3 稳定接口,明确支持 Python 3.8~3.14 版本。

English:

  • Updated abi3 stable interface, clearly supports Python 3.8~3.14 versions.

[1.2.0.post1] - 2026-08-28

修复 / Fixed

中文:

  • 修复了 PyPI 页面显示更新日志的问题。

English:

  • Fixed the issue of displaying changelog on the PyPI page.

[1.2.0] - 2026-08-28

发布 / Release

中文:

  • 正式发布 1.2.0 版本。
  • 修复了部分用户无法安装的 bug。

English:

  • Officially released version 1.2.0.
  • Fixed installation bugs for some users.

[1.2.0rc1] - 2026-08-28

添加 / Added

中文:

  • 新增游戏模块,可打开自制桌面系统。

English:

  • Added game module, can open custom desktop system.

[1.2.0b1] - 2026-08-28

添加 / Added

中文:

  • Beta 测试版,使用 abi3 稳定接口,支持所有 Python 3.8+ 版本。

English:

  • Beta version, uses abi3 stable interface, supports all Python 3.8+ versions.

[1.2.0a2.post3] - 2026-08-28

修复 / Fixed

中文:

  • 修复必要 bug。

English:

  • Fixed necessary bugs.

[1.2.0a2.post2] - 2026-08-28

修复 / Fixed

中文:

  • 使用微软编译器(MSVC)重新编译,修复 DLL 依赖问题。

English:

  • Recompiled with Microsoft compiler (MSVC), fixed DLL dependency issues.

[1.2.0a2.post1] - 2026-08-28

添加 / Added

中文:

  • 使用 abi3 稳定接口,支持所有 Python 3.8+ 版本。

English:

  • Uses abi3 stable interface, supports all Python 3.8+ versions.

[1.2.0a2] - 2026-08-28

添加 / Added

中文:

  • 在 1.2.0a1 的基础上,增加了 abi3 稳定接口,支持所有 Python 3.8+ 版本。

English:

  • Added abi3 stable interface on top of 1.2.0a1, supports all Python 3.8+ versions.

[1.2.0a1] - 2026-08-28

添加 / Added

中文:

  • 首次使用 abi3 稳定接口,支持所有 Python 3.8+ 版本。

English:

  • First use of abi3 stable interface, supports all Python 3.8+ versions.

[1.1.5.post2] - 2026-08-28

文档 / Documentation

中文:

  • 更新了 Apache License 2.0 许可证中的版权信息。

English:

  • Updated copyright information in the Apache License 2.0.

[1.1.5.post1] - 2026-08-28

修复 / Fixed

中文:

  • 修正了 README 中 1.0.0 和 1.0.1 的发布日期。

English:

  • Fixed the release dates of versions 1.0.0 and 1.0.1 in the README.

[1.1.5] - 2026-08-28

修复 / Fixed

中文:

  • 修复了网页显示的 bug。

English:

  • Fixed the webpage display bug.

[1.1.4] - 2026-08-28

添加 / Added

中文:

  • 升级到新版本,新增功能。

English:

  • Upgraded to new version, added new features.

[1.1.3] - 2026-08-28

修复 / Fixed

中文:

  • 修复了 update_information() 功能中的编码错误。

English:

  • Fixed encoding error in update_information() function.

[1.1.2] - 2026-08-28

文档 / Documentation

中文:

  • 完善了项目描述,添加了安装和使用说明。

English:

  • Improved project description, added installation and usage instructions.

[1.1.1] - 2026-08-28

添加 / Added

中文:

  • 新增了 update_information() 功能,支持查询版本更新信息。
  • 更新了许可证为 Apache License 2.0。

English:

  • Added update_information() function to query version update information.
  • Updated license to Apache License 2.0.

[1.1.0] - 2026-08-28

添加 / Added

中文:

  • 新增了 update_information() 功能。

English:

  • Added update_information() function.

[1.0.1] - 2026-08-27

文档 / Documentation

中文:

  • 更新了 README,添加了项目描述。
  • 更新了许可证为 MIT License。

English:

  • Updated README, added project description.
  • Updated license to MIT License.

[1.0.0] - 2026-08-27

添加 / Added

中文:

  • 首次发布:支持计算引力和轨道速度。

English:

  • Initial release with gravity and orbital velocity calculations.

许可证 / License

本项目采用 Apache License 2.0。

This project is licensed under the Apache License 2.0. Apache License Version 2.0, January 2004 http://www.apache.org/licenses/

TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

  1. Definitions.

    "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.

    "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.

    "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.

    "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.

    "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.

    "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.

    "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).

    "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.

    "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."

    "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.

  2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.

  3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.

  4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:

    (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and

    (b) You must cause any modified files to carry prominent notices stating that You changed the files; and

    (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and

    (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.

    You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.

  5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.

  6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.

  7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.

  8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.

  9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.

END OF TERMS AND CONDITIONS

APPENDIX: How to apply the Apache License to your work.

  To apply the Apache License to your work, attach the following
  boilerplate notice, with the fields enclosed by brackets "[]"
  replaced with your own identifying information. (Don't include
  the brackets!)  The text should be enclosed in the appropriate
  comment syntax for the file format. We also recommend that a
  file or class name and description of purpose be included on the
  same "printed page" as the copyright notice for easier
  identification within third-party archives.

Copyright 2026 oiiaio-web

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Release files for oiiaio-web-kepler 1.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for oiiaio-web-kepler 1.3.1
File Size Uploaded
oiiaio_web_kepler-1.3.1.tar.gz 15.8 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for oiiaio-web-kepler 1.3.1
File Interpreter ABI Platform
oiiaio_web_kepler-1.3.1-cp312-abi3-win_amd64.whl CPython 3.12 abi3 Windows x86-64 Details
oiiaio_web_kepler-1.3.1-cp38-abi3-win_amd64.whl CPython 3.8 abi3 Windows x86-64 Details
oiiaio_web_kepler-1.3.1-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.whl CPython 3.8 abi3 Linux glibc 2.5+ x86-64 Details

Total release size: 76.7 kB

Release files / oiiaio_web_kepler-1.3.1.tar.gz

Download URL oiiaio_web_kepler-1.3.1.tar.gz
Size 15.8 kB
Tags Source
SHA-256 checksum
How to use checksums
8896f3537ca7ae4ed5fa69d7aea92bf2f0a5b1a9e93663e815c4eba90c34bb54
BLAKE2b-256 checksum
How to use checksums
111fa1eae537c9c866ce6181fec071e93c5f1cbb818bfc63fb9890881295e6cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.8.9

Release files / oiiaio_web_kepler-1.3.1-cp312-abi3-win_amd64.whl

Download URL oiiaio_web_kepler-1.3.1-cp312-abi3-win_amd64.whl
Size 20.0 kB
Tags CPython 3.12 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
4e22722913179bc230e6d671f0b384ebb4e3cb728c329815be4418fc03e7eea7
BLAKE2b-256 checksum
How to use checksums
ab862e4f0a1d0f4fd2decc2f098422195811b44f14dac93b6be9a8d244262b2d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.8.9

Release files / oiiaio_web_kepler-1.3.1-cp38-abi3-win_amd64.whl

Download URL oiiaio_web_kepler-1.3.1-cp38-abi3-win_amd64.whl
Size 19.6 kB
Tags CPython 3.8 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
f1b431e233e5e154b4cda965863c0ca9ece139ed91901294739a20b151258f6d
BLAKE2b-256 checksum
How to use checksums
2a7d0a14e7582bdecf8659c9b0c6a754adffda2543f726115caa3c3118eb49f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.8.9

Release files / oiiaio_web_kepler-1.3.1-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.whl

Download URL oiiaio_web_kepler-1.3.1-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Size 21.3 kB
Tags CPython 3.8 Linux glibc 2.5+ x86-64 abi3
SHA-256 checksum
How to use checksums
1b80eca19ba62490a7c80509523f456f5a5e4f61197f3778dcacabee8733298c
BLAKE2b-256 checksum
How to use checksums
e3068c8837465bf2dec1e81ed43394d9b3ace8f05d68330cb416befeff696c21
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.8.9
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page