astrox-python
astrox-python 是 ASTROX Web API 的 Python SDK。
安装
需要 Python 3.10 或更高版本。
pip install astrox-python
一分钟示例
用一组开普勒根数做 J2 传播:
import astrox
from astrox import orbits, propagator
astrox.configure(base_url="http://astrox.cn:8765")
orbit = orbits.keplerian(
semi_major_axis_m=6778137.0,
eccentricity=0.001,
inclination_deg=51.6,
argument_of_periapsis_deg=0.0,
raan_deg=120.0,
true_anomaly_deg=45.0,
)
period_s, position = propagator.j2(
start="2024-01-01T00:00:00.000Z",
stop="2024-01-01T00:10:00.000Z",
orbit_epoch="2024-01-01T00:00:00.000Z",
orbit=orbit,
)
print(f"轨道周期: {period_s:.3f} s")
print(f"位置/速度采样数: {len(position.cartesian_velocity)}")
完整首次运行流程见 快速上手。
文档
- 完整文档导航:docs/README.md
- 可运行示例:examples/
- 英文快照:docs/i18n/en/README.md
参与开发
开发环境搭建与构建步骤见 CONTRIBUTING.md。
许可
MIT 许可证,详见 LICENSE。
本项目目前处于 Alpha 阶段。
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file astrox_python-1.0.0.tar.gz.
File metadata
- Download URL: astrox_python-1.0.0.tar.gz
- Upload date:
- Size: 694.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5259cb29fff62be48c6c2dda9c20038d1d127e0e7db6ddca8dca6c78ba84024b
|
|
| MD5 |
be0c15005e932ad1e5dae46e3c7d5dc3
|
|
| BLAKE2b-256 |
56e91070b1aceeeee4ffff440289c4d35779d4adf6357f94071b32b3c672cd9a
|
Provenance
The following attestation bundles were made for astrox_python-1.0.0.tar.gz:
Publisher:
publish.yml on Mtrya/astrox-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
astrox_python-1.0.0.tar.gz -
Subject digest:
5259cb29fff62be48c6c2dda9c20038d1d127e0e7db6ddca8dca6c78ba84024b - Sigstore transparency entry: 2466686883
- Sigstore integration time:
-
Permalink:
Mtrya/astrox-python@afc9135652afac90119910d2ca446e80e9cf2f0f -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/Mtrya
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@afc9135652afac90119910d2ca446e80e9cf2f0f -
Trigger Event:
release
-
Statement type:
File details
Details for the file astrox_python-1.0.0-py3-none-any.whl.
File metadata
- Download URL: astrox_python-1.0.0-py3-none-any.whl
- Upload date:
- Size: 73.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0e0421145264bad848972e97913a8db35681368231966597225f323d5a1f14c2
|
|
| MD5 |
257dec61ed6cabf431cc1bcc21c5d243
|
|
| BLAKE2b-256 |
411e85bd09ffd9959078b0c36e70dbe2ba9a6f71098cf9dd1de002f70f03a84a
|
Provenance
The following attestation bundles were made for astrox_python-1.0.0-py3-none-any.whl:
Publisher:
publish.yml on Mtrya/astrox-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
astrox_python-1.0.0-py3-none-any.whl -
Subject digest:
0e0421145264bad848972e97913a8db35681368231966597225f323d5a1f14c2 - Sigstore transparency entry: 2466687006
- Sigstore integration time:
-
Permalink:
Mtrya/astrox-python@afc9135652afac90119910d2ca446e80e9cf2f0f -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/Mtrya
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@afc9135652afac90119910d2ca446e80e9cf2f0f -
Trigger Event:
release
-
Statement type: