| Crates.io | keplemon |
| lib.rs | keplemon |
| version | 3.2.0 |
| created_at | 2026-01-07 00:16:40.179243+00 |
| updated_at | 2026-01-21 20:48:09.856981+00 |
| description | Expanded functionality for the Standardized Astrodynamics Algorithms Library (SAAL) |
| homepage | |
| repository | |
| max_upload_size | |
| id | 2027198 |
| size | 35,594,050 |
Citra Space Corporation's Rust-accelerated astrodynamics package built on the shared libraries provided by space-track. Please visit the documentation page for additional details.
KepLemon can be installed directly for any operating system from a command line using pip install keplemon.
For python users, the preferred installation method is through PyPI; however, the package can be installed locally by following the steps below.
git clone https://github.com/citra-space/keplemon.gitcargo install cargo-makecargo make build-<os>-<architecture> (e.g. for Linux x86 cargo make build-linux-x86)pip install target/wheels/*.whlTo avoid potential conflicts with system libraries, you can alternatively build the wheel using Docker.
docker buildx build \
--build-arg OS="${OS:-linux}" \
--build-arg ARCH="${ARCH:-x86}" \
--build-arg PYTHON_VERSION="${PYTHON_VERSION:-310}" \
--output type=local,dest=./target .
Then install the wheel the same way with:
pip install target/wheels/*.whl
Although not required, it is recommended to explicitly apply the settings in this section before using KepLemon to avoid unexpected behaviors and inaccurate calculations.
By default, KepLemon will have access to all available cores when performing parallel functions. Limit this by calling
set_thread_count before using other KepLemon functions.
from keplemon import set_thread_count, get_thread_count
# Update this to the desired core count
set_thread_count(4)
All astrodynamics packages have a strict dependence on measured changes to time and Earth's orientation. Since KepLemon uses the public Standardized Astrodynamics Algorithms Library (SAAL) at the core, the time and (EOP) data must conform to a specific format required by the underlying binaries. Rather than referencing data directly provided by the USNO, utility scripts are provided in KepLemon to request and export the relevant data.
Use the command below from a terminal to update time constants and EOP data package-wide.
keplemon --update-eop global
EOP data can also be written to explicit paths for inspection or package overrides using the commands below.
keplemon --update-eop custom_path.txt
!!! note
If you intend to use the data written to a local override, you must use the load_time_constants method at the
beginning of your scripts. This is not needed if you maintain constants using the global method.
from keplemon.time import load_time_constants
# Update this to reflect the desired override path
load_time_constants("custom_path.txt")
Anyone is welcome to contribute to KepLemon. Users are encouraged to start by opening issues or forking the repository. Changes directly to the baseline may be approved by contacting the owner at brandon@citra.space.