Skip to main content

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)}")

完整首次运行流程见 快速上手

文档

参与开发

开发环境搭建与构建步骤见 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

astrox_python-1.1.0.tar.gz (709.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

astrox_python-1.1.0-py3-none-any.whl (74.0 kB view details)

Uploaded Python 3

File details

Details for the file astrox_python-1.1.0.tar.gz.

File metadata

  • Download URL: astrox_python-1.1.0.tar.gz
  • Upload date:
  • Size: 709.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for astrox_python-1.1.0.tar.gz
Algorithm Hash digest
SHA256 10e7e6cdd9cc9446f9b3e0bb9e6bb717d44edbc2bd89e7987fc5f1bd972e974a
MD5 25c82c41e6dd3bfebb6c965b58e7fc5c
BLAKE2b-256 ce8e527480bc418670e95a0e5b083eda0f79fd40cfdb43ab784115dd1907f250

See more details on using hashes here.

Provenance

The following attestation bundles were made for astrox_python-1.1.0.tar.gz:

Publisher: publish.yml on Mtrya/astrox-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file astrox_python-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: astrox_python-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 74.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for astrox_python-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 960c40992a5eddd181a3936cce1291b4a84eac5cfb3198b85b7ef67a9a2b94c6
MD5 71f60624dc86f2e24c8db57e52f7eafc
BLAKE2b-256 faeca2e65a118c900747f3a06d88a3ae3178a65b5cb2b0cb95b0653fdc68bc63

See more details on using hashes here.

Provenance

The following attestation bundles were made for astrox_python-1.1.0-py3-none-any.whl:

Publisher: publish.yml on Mtrya/astrox-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

1.2.0

2 files

This release

1.1.0 This release

2 files

1.0.0

2 files

0.2.0

2 files

0.1.1

2 files

0.1.0

2 files

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