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.

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)

Angles are radians and Julian conversions are arithmetic day counts without an implied UTC, TT, or TDB time scale. Public numerical functions reject NaN and infinity. Sequence batch functions preserve order, release the GIL around native work, and do not create a thread pool. Numeric Epoch arithmetic uses days; add_seconds() and seconds_since() make second-based arithmetic explicit. Constructor data is copied 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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pykep_rust-0.1.4.tar.gz (2.5 MB view details)

Uploaded Source

Built Distributions

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

pykep_rust-0.1.4-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.4 MB view details)

Uploaded PyPymanylinux: glibc 2.17+ x86-64

pykep_rust-0.1.4-cp313-cp313-win_amd64.whl (3.4 MB view details)

Uploaded CPython 3.13Windows x86-64

pykep_rust-0.1.4-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.4 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

pykep_rust-0.1.4-cp313-cp313-macosx_11_0_arm64.whl (3.3 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

pykep_rust-0.1.4-cp313-cp313-macosx_10_12_x86_64.whl (3.4 MB view details)

Uploaded CPython 3.13macOS 10.12+ x86-64

pykep_rust-0.1.4-cp312-cp312-win_amd64.whl (3.4 MB view details)

Uploaded CPython 3.12Windows x86-64

pykep_rust-0.1.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.4 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

pykep_rust-0.1.4-cp312-cp312-macosx_11_0_arm64.whl (3.3 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

pykep_rust-0.1.4-cp312-cp312-macosx_10_12_x86_64.whl (3.4 MB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

pykep_rust-0.1.4-cp311-cp311-win_amd64.whl (3.4 MB view details)

Uploaded CPython 3.11Windows x86-64

pykep_rust-0.1.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

pykep_rust-0.1.4-cp311-cp311-macosx_11_0_arm64.whl (3.3 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

pykep_rust-0.1.4-cp311-cp311-macosx_10_12_x86_64.whl (3.4 MB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

File details

Details for the file pykep_rust-0.1.4.tar.gz.

File metadata

  • Download URL: pykep_rust-0.1.4.tar.gz
  • Upload date:
  • Size: 2.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.33 {"installer":{"name":"uv","version":"0.11.33","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pykep_rust-0.1.4.tar.gz
Algorithm Hash digest
SHA256 291c5a23bba629a0f38e99c855a6495bfac35fd2c3e658a3be8f87e1e05566c1
MD5 cf341b3d93e709b604f6e57f638e6947
BLAKE2b-256 e0423bf80f0d420c5fbd282f7524e61e0440d0b9bd440b2c0d97b0655a19f7af

See more details on using hashes here.

File details

Details for the file pykep_rust-0.1.4-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

  • Download URL: pykep_rust-0.1.4-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
  • Upload date:
  • Size: 3.4 MB
  • Tags: PyPy, manylinux: glibc 2.17+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.33 {"installer":{"name":"uv","version":"0.11.33","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pykep_rust-0.1.4-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d448012a695939d71c8197b451f1a4b12dcf24756b5e7868ccbad562f8ee88f0
MD5 3df12583a1a9bb5691a2bf72c367373c
BLAKE2b-256 9c60a3e8407abaaba694bd60b7a2231ca3767531351df5ac0cc18715dc92bdf5

See more details on using hashes here.

File details

Details for the file pykep_rust-0.1.4-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: pykep_rust-0.1.4-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 3.4 MB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.33 {"installer":{"name":"uv","version":"0.11.33","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pykep_rust-0.1.4-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 3e92e4efbf0477a03643fe8be9d904769217a9a66b6a8b4b9fabe539689fd4ca
MD5 fa1769ce91057417f98035274d2de9f9
BLAKE2b-256 7a5a0bbf577cefdff2440ce458527695bda3b8a7279e0604325b756d821785b0

See more details on using hashes here.

File details

Details for the file pykep_rust-0.1.4-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

  • Download URL: pykep_rust-0.1.4-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
  • Upload date:
  • Size: 3.4 MB
  • Tags: CPython 3.13, manylinux: glibc 2.17+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.33 {"installer":{"name":"uv","version":"0.11.33","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pykep_rust-0.1.4-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 60c38232ab94a6f9e7f707c139f8102511a2296892295dca1cae1ead6bc198cd
MD5 2ae7f1bf1f2a88d9a0f356cca7cb2b37
BLAKE2b-256 9fe72ea766267b0d7060f16ace8208223b96a768726c2bf79dc5d02d486037e0

See more details on using hashes here.

File details

Details for the file pykep_rust-0.1.4-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

  • Download URL: pykep_rust-0.1.4-cp313-cp313-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 3.3 MB
  • Tags: CPython 3.13, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.33 {"installer":{"name":"uv","version":"0.11.33","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pykep_rust-0.1.4-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ee68afa5b062f1f7e84b8ebb2d5f26708c6378db79065348a434a638f6787c1e
MD5 2361b7ae26dc13e83391749f0833ec44
BLAKE2b-256 2b46831ff537f922a2cd2746724f2457c0c9cf4d06fece55d686f6bb0e84d24a

See more details on using hashes here.

File details

Details for the file pykep_rust-0.1.4-cp313-cp313-macosx_10_12_x86_64.whl.

File metadata

  • Download URL: pykep_rust-0.1.4-cp313-cp313-macosx_10_12_x86_64.whl
  • Upload date:
  • Size: 3.4 MB
  • Tags: CPython 3.13, macOS 10.12+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.33 {"installer":{"name":"uv","version":"0.11.33","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pykep_rust-0.1.4-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 2796e447eb581f8f3f61334cb719da1d3b3acedffd453745782cb722492ffdce
MD5 430c48d2aff44bae9e057b08ccd4e337
BLAKE2b-256 5539bb506fc185f7137f57f73528bbbdeeb2114747480895674bc30576607d23

See more details on using hashes here.

File details

Details for the file pykep_rust-0.1.4-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: pykep_rust-0.1.4-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 3.4 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.33 {"installer":{"name":"uv","version":"0.11.33","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pykep_rust-0.1.4-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 88c0f7549c652442da472f4f208d98eb89662a764349653e72c3fdc4792db40e
MD5 5400b68635f04bea76809252c8a17c28
BLAKE2b-256 11305ec7fcff6163a0ae85ccdad561fe6528886bba4e09eae599c1c80a0e450f

See more details on using hashes here.

File details

Details for the file pykep_rust-0.1.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

  • Download URL: pykep_rust-0.1.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
  • Upload date:
  • Size: 3.4 MB
  • Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.33 {"installer":{"name":"uv","version":"0.11.33","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pykep_rust-0.1.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9651c53da0d9bd3c6ad115caf0485e75279b5dbaa55f4386894bff8e43ee5716
MD5 089a927f61cb6ba57e35c42b083247eb
BLAKE2b-256 45c32a7cc83c690f2c011070161e175ab56bc847e55a1222b88a935cb493247d

See more details on using hashes here.

File details

Details for the file pykep_rust-0.1.4-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

  • Download URL: pykep_rust-0.1.4-cp312-cp312-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 3.3 MB
  • Tags: CPython 3.12, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.33 {"installer":{"name":"uv","version":"0.11.33","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pykep_rust-0.1.4-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c993dc19132cde11fe1e70fc4ffa6c67b1848c02379faeacb0b8880e053fa81a
MD5 cc55738421a5c1cce6e875b50e39b67f
BLAKE2b-256 89dd727150ee101ac8c355e43c56fcccd57fcf4dac6a543a11a593f32703f8c9

See more details on using hashes here.

File details

Details for the file pykep_rust-0.1.4-cp312-cp312-macosx_10_12_x86_64.whl.

File metadata

  • Download URL: pykep_rust-0.1.4-cp312-cp312-macosx_10_12_x86_64.whl
  • Upload date:
  • Size: 3.4 MB
  • Tags: CPython 3.12, macOS 10.12+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.33 {"installer":{"name":"uv","version":"0.11.33","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pykep_rust-0.1.4-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 17ed8cf99abc4b51cf27b7103deafec4a8598e3e0ea3a76a8077542c7efa37e9
MD5 853c34a18f6d5b426e2e25d40b6ac97e
BLAKE2b-256 549bd09ef12f1b3c1ebbb52fc1c6869170064a2b2214d5d352482db8f226e592

See more details on using hashes here.

File details

Details for the file pykep_rust-0.1.4-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: pykep_rust-0.1.4-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 3.4 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.33 {"installer":{"name":"uv","version":"0.11.33","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pykep_rust-0.1.4-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b5f460e1165605f2b038a93e750e207b54a9082ba54dfde565f69a14c593e42a
MD5 e7d8133c2ef3003884f64a171dfaeb49
BLAKE2b-256 5b14c395d4d2e0429464cfb73e0cf8a3a4986a82830d0c6b3c3629d92f96d087

See more details on using hashes here.

File details

Details for the file pykep_rust-0.1.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

  • Download URL: pykep_rust-0.1.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
  • Upload date:
  • Size: 3.4 MB
  • Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.33 {"installer":{"name":"uv","version":"0.11.33","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pykep_rust-0.1.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 147df3e12595a639db8239d1ad2bc4ee2e8c44fb6133971fcbd430781bbdf93b
MD5 6b855332eb636a6eef76e3e9090df152
BLAKE2b-256 541a35deffb735af99f19832e8a0550722ddc1e933904ef9d202ee77db670f10

See more details on using hashes here.

File details

Details for the file pykep_rust-0.1.4-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

  • Download URL: pykep_rust-0.1.4-cp311-cp311-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 3.3 MB
  • Tags: CPython 3.11, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.33 {"installer":{"name":"uv","version":"0.11.33","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pykep_rust-0.1.4-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6f37a33861b71b9eb4a936584e052d41e7d4d5d7e5f6ec50dddd2f1259aad603
MD5 1f0a34cdb735ee437a731870343092b6
BLAKE2b-256 4afcd7c373a5e3411a9a26425659b80a499d3f49b0803fbe4ef9c2eeae88ab07

See more details on using hashes here.

File details

Details for the file pykep_rust-0.1.4-cp311-cp311-macosx_10_12_x86_64.whl.

File metadata

  • Download URL: pykep_rust-0.1.4-cp311-cp311-macosx_10_12_x86_64.whl
  • Upload date:
  • Size: 3.4 MB
  • Tags: CPython 3.11, macOS 10.12+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.33 {"installer":{"name":"uv","version":"0.11.33","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pykep_rust-0.1.4-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 0202352a2d00d06749004d3ede317663d1cb8ee4646de23a67e4c41b0fdc506e
MD5 4e6924de5f33b783263b991344cc4e83
BLAKE2b-256 0b173a00f231c63602485730b2dcc76288c41f1348ccabe1a9223c40e997761c

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.4 This release

14 files

0.1.3

14 files

0.1.2

14 files

0.1.1

14 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