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.6

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.6
File Size Uploaded Provenance Actions
pykep_rust-0.1.6.tar.gz 2.6 MB Without provenance Details for pykep_rust-0.1.6.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for pykep-rust 0.1.6
File Actions
pykep_rust-0.1.6-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.6-pp311-pypy311_pp73-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
pykep_rust-0.1.6-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for pykep_rust-0.1.6-cp313-cp313-win_amd64.whl
pykep_rust-0.1.6-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.6-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
pykep_rust-0.1.6-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details for pykep_rust-0.1.6-cp313-cp313-macosx_11_0_arm64.whl
pykep_rust-0.1.6-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.6-cp313-cp313-macosx_10_12_x86_64.whl
pykep_rust-0.1.6-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for pykep_rust-0.1.6-cp312-cp312-win_amd64.whl
pykep_rust-0.1.6-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.6-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
pykep_rust-0.1.6-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details for pykep_rust-0.1.6-cp312-cp312-macosx_11_0_arm64.whl
pykep_rust-0.1.6-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.6-cp312-cp312-macosx_10_12_x86_64.whl
pykep_rust-0.1.6-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for pykep_rust-0.1.6-cp311-cp311-win_amd64.whl
pykep_rust-0.1.6-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.6-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
pykep_rust-0.1.6-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details for pykep_rust-0.1.6-cp311-cp311-macosx_11_0_arm64.whl
pykep_rust-0.1.6-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.6-cp311-cp311-macosx_10_12_x86_64.whl

Total release size: 53.8 MB

Release files / pykep_rust-0.1.6.tar.gz

Download URL pykep_rust-0.1.6.tar.gz
Size 2.6 MB
Tags Source
SHA-256 checksum
How to use checksums
a198ff5b6c89c3a4c430dc2c1e731034a965a8df81ae75a8b4f2db6214ba164f
BLAKE2b-256 checksum
How to use checksums
1984b5e3cc8ce087dabe74137c833f456d7b22d15abe8462282aa4f5c84e663b
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.6-pp311-pypy311_pp73-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL pykep_rust-0.1.6-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
2a4c2f8005f3d03982598fb9bf43c877220accbbb230a4ac864257cca6fe6d07
BLAKE2b-256 checksum
How to use checksums
17aa8cea3826513a30bed23ea77d1ef3918f1a77223c2f4a6c30d3795e4c4d4b
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.6-cp313-cp313-win_amd64.whl

Download URL pykep_rust-0.1.6-cp313-cp313-win_amd64.whl
Size 4.0 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
f2c0a32b3fe8ef48f0e5e8ad2c3fe9810ce6b5a4f0116057ff3e2d98d609163c
BLAKE2b-256 checksum
How to use checksums
f779a3cd6f5f441710f05917445d68e9b29e1cec899836b53f3a68469f15cddb
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.6-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL pykep_rust-0.1.6-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
dca0dd940e3925f13ad2f0f35bdd1f7745aefa9a83a36952c42cbe07f1aab5cb
BLAKE2b-256 checksum
How to use checksums
98e6c7dd27fe2103c90df48ac3af60bd3f8512347bd21b84933f17c576a26965
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.6-cp313-cp313-macosx_11_0_arm64.whl

Download URL pykep_rust-0.1.6-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
903e0ba0fe1f8e862b1fa7c3d20df6193a5c3646b0cb56a01d52954c8e155052
BLAKE2b-256 checksum
How to use checksums
c883a89a43592342fc6bfa8cca6d9dc981a20b134ffdeb851c117a17f34ec3b8
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.6-cp313-cp313-macosx_10_12_x86_64.whl

Download URL pykep_rust-0.1.6-cp313-cp313-macosx_10_12_x86_64.whl
Size 4.0 MB
Tags CPython 3.13 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
d63ad62e8a19ec21391cc95ab3e34c6d8db8525303a22d7fb9c9326345f666b7
BLAKE2b-256 checksum
How to use checksums
aec19c06298392193fccff669011eba650c2e55c0ed40db269f3ddafe53e1d2b
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.6-cp312-cp312-win_amd64.whl

Download URL pykep_rust-0.1.6-cp312-cp312-win_amd64.whl
Size 4.0 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
5485046cfb7ff0ddc18ef116522de8b60790c93179dfb16b62d18047fd1b37d3
BLAKE2b-256 checksum
How to use checksums
60c5192ad729d5d2a857b3cdef103881840abf2dd7ec8fda4dd4404c23b58b22
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.6-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL pykep_rust-0.1.6-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
3e4f7f15393fbb478f6eb8ef8be65db565fc49f13277562b48bfdab74ab95665
BLAKE2b-256 checksum
How to use checksums
432d2bdb1b941faf0fc4d2c6d1f750fcd54860a1aca80ff4af332c70d1fc0ca5
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.6-cp312-cp312-macosx_11_0_arm64.whl

Download URL pykep_rust-0.1.6-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
e6918b0e7636460c3c2acdb3a7da636c856f8bfbb7d9d4af3863bfc8955dfa2b
BLAKE2b-256 checksum
How to use checksums
759e8c786a0cbe649d597168a43df07adcc217bd01808d479661d9ebc08072ab
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.6-cp312-cp312-macosx_10_12_x86_64.whl

Download URL pykep_rust-0.1.6-cp312-cp312-macosx_10_12_x86_64.whl
Size 4.0 MB
Tags CPython 3.12 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
5bd089e96fa740d02522e4a138789c5e3bed0012c180f1c3a8d65c098fb804b7
BLAKE2b-256 checksum
How to use checksums
35c7b942d2bc3c08b9781efb2977e58029fd1c10599befdb4e9155a7a65b1424
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.6-cp311-cp311-win_amd64.whl

Download URL pykep_rust-0.1.6-cp311-cp311-win_amd64.whl
Size 4.0 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
2dc0e053e4e9e6423a10971a872362aacf544aef8dce8d586d8015b75ee3375f
BLAKE2b-256 checksum
How to use checksums
f0cee980739c6ac13a6dbe2c286432345f71e556589f2c070de7cf34cb9fa524
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.6-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL pykep_rust-0.1.6-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
0d62f0b8086c2cb6c9dc8e7a1b75d95cad3326a22d98f87bf200f6478626305b
BLAKE2b-256 checksum
How to use checksums
6ab07a390db66a7ecee5df5bda24ca5aec5aaa53034f036eeac739e6a405b705
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.6-cp311-cp311-macosx_11_0_arm64.whl

Download URL pykep_rust-0.1.6-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
d4dda58e0721920019b8e84b20ee1cb6173e5437cac2413c5920e5aeaf8146ee
BLAKE2b-256 checksum
How to use checksums
c905dcaa3c7d341873167baf5908bdd49c246ed7e75cdd9a561bf51c9adba5b3
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.6-cp311-cp311-macosx_10_12_x86_64.whl

Download URL pykep_rust-0.1.6-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
42c8b482d98879170ef5bae63adb212bcbe2ed05e542f0769f74f54965739ffc
BLAKE2b-256 checksum
How to use checksums
fd2c91b2b97ca5e8cfd221783211dacdc0a08ea8e770e478d739a63cfa5d4d21
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.6

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