Skip to main content

Python API

pykep_rust is the typed, collision-safe Python interface to the native pykep-core implementation. It covers foundations, epochs and anomalies, element conversion, two-body propagation and STMs, mission-design utilities, Lambert problems, ephemerides, evaluated dynamics, and low-thrust legs.

Since 0.1.5 the wheels include the native pykep_rust.trajopt.gym catalog: 14 classical mission problems, 34 fixed and 34 moving TOPS low-thrust problems with analytic gradients, and six launcher tables. See the gym guide for examples and the matched report for Python and native timings.

import pykep_rust as pk

assert pk.jd_to_mjd2000(2_451_544.5) == 0.0
assert pk.cross([1.0, 0.0, 0.0], [0.0, 1.0, 0.0]) == [0.0, 0.0, 1.0]
epoch = pk.Epoch.from_iso("2030-01")
assert epoch.to_iso() == "2030-01-01T00:00:00.000000"
eccentric = pk.mean_to_eccentric_anomaly(0.1, 0.5)
assert abs(pk.eccentric_to_mean_anomaly(eccentric, 0.5) - 0.1) < 1e-15
state = pk.classical_to_cartesian([7e6, 0.01, 0.4, 1.0, 0.5, 0.2], 3.986004418e14)
earth = pk.Planet.jpl_low_precision("earth")
earth_state = earth.state(0.0)

Key conventions:

  • Angles are radians.
  • Julian conversions are arithmetic day counts without an implied UTC, TT, or TDB time scale.
  • Numeric Epoch arithmetic uses days; add_seconds() and seconds_since() make second-based arithmetic explicit.
  • Public numerical functions reject NaN and infinity.
  • Ordered batches preserve scalar semantics and release the GIL around native work.
  • workers=0 uses Rayon's shared pool, workers=1 runs serially, and workers=N uses a cached pool of exactly N threads. Avoid nested full-size pools.
  • Constructors copy their data into immutable native objects.

The wheel ships a py.typed marker and complete extension stub. The full units, shape, default, ownership, and error contract is in docs/python-api.md. Users moving from kep3 should read docs/python-migration.md; no partial legacy-name facade is installed.

Metadata

Release files for pykep-rust 0.1.5

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

Source distribution (sdist)

Source distribution for pykep-rust 0.1.5
File Size Uploaded Provenance Actions
pykep_rust-0.1.5.tar.gz 2.6 MB Without provenance Details for pykep_rust-0.1.5.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for pykep-rust 0.1.5
File Actions
pykep_rust-0.1.5-pp311-pypy311_pp73-manylinux2014_x86_64.manylinux_2_17_x86_64.whl PyPy 3.11 PyPy 3.11 7.3 Linux glibc 2.17+ x86-64 Details for pykep_rust-0.1.5-pp311-pypy311_pp73-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
pykep_rust-0.1.5-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for pykep_rust-0.1.5-cp313-cp313-win_amd64.whl
pykep_rust-0.1.5-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.17+ x86-64 Details for pykep_rust-0.1.5-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
pykep_rust-0.1.5-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details for pykep_rust-0.1.5-cp313-cp313-macosx_11_0_arm64.whl
pykep_rust-0.1.5-cp313-cp313-macosx_10_12_x86_64.whl CPython 3.13 CPython 3.13 macOS 10.12+ x86-64 Details for pykep_rust-0.1.5-cp313-cp313-macosx_10_12_x86_64.whl
pykep_rust-0.1.5-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for pykep_rust-0.1.5-cp312-cp312-win_amd64.whl
pykep_rust-0.1.5-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ x86-64 Details for pykep_rust-0.1.5-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
pykep_rust-0.1.5-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details for pykep_rust-0.1.5-cp312-cp312-macosx_11_0_arm64.whl
pykep_rust-0.1.5-cp312-cp312-macosx_10_12_x86_64.whl CPython 3.12 CPython 3.12 macOS 10.12+ x86-64 Details for pykep_rust-0.1.5-cp312-cp312-macosx_10_12_x86_64.whl
pykep_rust-0.1.5-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for pykep_rust-0.1.5-cp311-cp311-win_amd64.whl
pykep_rust-0.1.5-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ x86-64 Details for pykep_rust-0.1.5-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
pykep_rust-0.1.5-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details for pykep_rust-0.1.5-cp311-cp311-macosx_11_0_arm64.whl
pykep_rust-0.1.5-cp311-cp311-macosx_10_12_x86_64.whl CPython 3.11 CPython 3.11 macOS 10.12+ x86-64 Details for pykep_rust-0.1.5-cp311-cp311-macosx_10_12_x86_64.whl

Total release size: 53.5 MB

Release files / pykep_rust-0.1.5.tar.gz

Download URL pykep_rust-0.1.5.tar.gz
Size 2.6 MB
Tags Source
SHA-256 checksum
How to use checksums
1f1ffb6f38cd6ec9660899bb23caeec09f47b2c88ba73903252894022b601a5d
BLAKE2b-256 checksum
How to use checksums
3ee991167d7f822ca2e747596b2471870ce93519764ca21bb22fbdbe1dd7bac0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / pykep_rust-0.1.5-pp311-pypy311_pp73-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL pykep_rust-0.1.5-pp311-pypy311_pp73-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 4.0 MB
Tags Linux glibc 2.17+ x86-64 PyPy 3.11 PyPy 3.11 7.3
SHA-256 checksum
How to use checksums
2e7ed26ca7f9313a33ee6be554db064b413f7488d3d2e91d4b93882fd2cc9032
BLAKE2b-256 checksum
How to use checksums
386a2f07c756f97ef5b025f4fab32a324501bdc5fc74cb7908c896cbfaf93f1d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / pykep_rust-0.1.5-cp313-cp313-win_amd64.whl

Download URL pykep_rust-0.1.5-cp313-cp313-win_amd64.whl
Size 4.0 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
68a13488e8e00e03257d947ffbd9f78841a23f43db93b9ced4b8c470b7c06328
BLAKE2b-256 checksum
How to use checksums
e327d1a016cb0389e37c07492e7061061dcfc0c9389dfae78d81b5d25e7edfe6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / pykep_rust-0.1.5-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL pykep_rust-0.1.5-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 4.0 MB
Tags CPython 3.13 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
8b9851a2d845e17fd0092fac99ce29fc077fa7dac01a4cd6dd986461edad2097
BLAKE2b-256 checksum
How to use checksums
68b0767ec4d84728a71ee05cc795a988cd6cc81183e7c0429986bd936189a56a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / pykep_rust-0.1.5-cp313-cp313-macosx_11_0_arm64.whl

Download URL pykep_rust-0.1.5-cp313-cp313-macosx_11_0_arm64.whl
Size 3.8 MB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
a8dfb06098980e6b632307ea875afd8877329c03ce62e669242736df475e046e
BLAKE2b-256 checksum
How to use checksums
efc86687ae40d52be6c527106ed869573efd8fa74bf112a10063f219fc60809a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / pykep_rust-0.1.5-cp313-cp313-macosx_10_12_x86_64.whl

Download URL pykep_rust-0.1.5-cp313-cp313-macosx_10_12_x86_64.whl
Size 3.9 MB
Tags CPython 3.13 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
d2d67d18c14bde3b7c40d58caa1b19c22c2e15b96d7fb9b9aacc368e0532f017
BLAKE2b-256 checksum
How to use checksums
82f78cb36bf3aa7b76531ea01bd324acf3f5712454bda658ceebb5f8c35a31da
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / pykep_rust-0.1.5-cp312-cp312-win_amd64.whl

Download URL pykep_rust-0.1.5-cp312-cp312-win_amd64.whl
Size 4.0 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
06e59b7be781a8a98ba1cede593cef6598258f5523e961146629120af03857d5
BLAKE2b-256 checksum
How to use checksums
09df2f8f8398caafbef2a559af6a03a1944e9641add62d68589dd4c35363f649
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / pykep_rust-0.1.5-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL pykep_rust-0.1.5-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 4.0 MB
Tags CPython 3.12 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
a007a4ac488f530289a0be86e890d7415c3745c1c8f1b75467cb02b6c7f602f9
BLAKE2b-256 checksum
How to use checksums
01281f86f140f1cddd0cc5d6277449cc703d5dd8e3f6772672e6fe1545fe9696
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / pykep_rust-0.1.5-cp312-cp312-macosx_11_0_arm64.whl

Download URL pykep_rust-0.1.5-cp312-cp312-macosx_11_0_arm64.whl
Size 3.8 MB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
5bb77b8d95da4bd77e366872cc47c999c1f671ef73dc8e973a4c21bf2fb8c01e
BLAKE2b-256 checksum
How to use checksums
1b5f8f5a92cb63e625ec63ab64c261b0d4205df6887fbcc20c37e1b766fbdfc3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / pykep_rust-0.1.5-cp312-cp312-macosx_10_12_x86_64.whl

Download URL pykep_rust-0.1.5-cp312-cp312-macosx_10_12_x86_64.whl
Size 3.9 MB
Tags CPython 3.12 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
aa82cb594f131d9d9a63052d52e8917808d64c923b705b27072e05ed80448f45
BLAKE2b-256 checksum
How to use checksums
f2dcb9101f6a9c87c477795a9f4c01f36143fa526955d698331318c5382f2a99
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / pykep_rust-0.1.5-cp311-cp311-win_amd64.whl

Download URL pykep_rust-0.1.5-cp311-cp311-win_amd64.whl
Size 4.0 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
9700c64d0fa0b6322e0d4fc0e5e144c3ad3fb0ebd0a5d75802b6a6c6ea0a183b
BLAKE2b-256 checksum
How to use checksums
f02ba70366eb97dc39fc0a27389b53787777b46a7f0927f9469664d9828834b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / pykep_rust-0.1.5-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL pykep_rust-0.1.5-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 4.0 MB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
4562a3e69d70bded6e8a35f401df4cbc6f4b8283eff90b0cff55081f3f8cd73e
BLAKE2b-256 checksum
How to use checksums
06c16b9a9d9c5432fee2e243c2b29554adf124b8075798189f9e0d12f28cf88f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / pykep_rust-0.1.5-cp311-cp311-macosx_11_0_arm64.whl

Download URL pykep_rust-0.1.5-cp311-cp311-macosx_11_0_arm64.whl
Size 3.8 MB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
17cb7d9289c815b2af2421a54294243d7364429d7ad42c71f4415d54fa8a6bfa
BLAKE2b-256 checksum
How to use checksums
aaa4d3f911b39eccf20a278b524bcb03325575172cddc7c2936e6f24f785033d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / pykep_rust-0.1.5-cp311-cp311-macosx_10_12_x86_64.whl

Download URL pykep_rust-0.1.5-cp311-cp311-macosx_10_12_x86_64.whl
Size 3.9 MB
Tags CPython 3.11 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
693f201a5614242517f0e53c9fed6bf9e24a243dfca95dda3dc03c9c39497ad3
BLAKE2b-256 checksum
How to use checksums
6fa3c4f084c90260bef917df6ac0b08b034b4847c270f1382917a2695a8ac857
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for pykep-rust 0.1.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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