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.3.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.3-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.3-cp313-cp313-win_amd64.whl (3.4 MB view details)

Uploaded CPython 3.13Windows x86-64

pykep_rust-0.1.3-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.3-cp313-cp313-macosx_11_0_arm64.whl (3.3 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

pykep_rust-0.1.3-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.3-cp312-cp312-win_amd64.whl (3.4 MB view details)

Uploaded CPython 3.12Windows x86-64

pykep_rust-0.1.3-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.3-cp312-cp312-macosx_11_0_arm64.whl (3.3 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

pykep_rust-0.1.3-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.3-cp311-cp311-win_amd64.whl (3.4 MB view details)

Uploaded CPython 3.11Windows x86-64

pykep_rust-0.1.3-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.3-cp311-cp311-macosx_11_0_arm64.whl (3.3 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

pykep_rust-0.1.3-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.3.tar.gz.

File metadata

  • Download URL: pykep_rust-0.1.3.tar.gz
  • Upload date:
  • Size: 2.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.32 {"installer":{"name":"uv","version":"0.11.32","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.3.tar.gz
Algorithm Hash digest
SHA256 aa12c83b4c29d9bd372f25edfb28f15db7cc3a3841641ac06d716e4d64903861
MD5 c83426a935dd74e747f1f15e8eee1cf6
BLAKE2b-256 84a0386a7aabec638bc474684153c0fbd452f3eaf166b48ea3ab1f983825728b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pykep_rust-0.1.3-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.32 {"installer":{"name":"uv","version":"0.11.32","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.3-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 61883f6418b5f396c691b321d06c33ca0ad0b80882a0c1ea13b41edc2c2c3b81
MD5 f34240b82e7b9df3ce37d4c35e576e17
BLAKE2b-256 058ea70f6496d20a9b210126cd408cd754303d10cf1663081ce9e6ee77ae793a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pykep_rust-0.1.3-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.32 {"installer":{"name":"uv","version":"0.11.32","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.3-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 c9e1ed8e1da27d31f89a21d2b49be8dbc84361a9a709781d9c38dc3316a37362
MD5 fe1a8c6f6872a4e2aafd1b65be926f17
BLAKE2b-256 c48551e9901d4c83964cc2b2551cd9867e13e0be953497125e005d9cdc4843c8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pykep_rust-0.1.3-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.32 {"installer":{"name":"uv","version":"0.11.32","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.3-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 57ee4c384c88e84979b2d7e7fe6b1b86086334418b331091af28e82a87b9a699
MD5 a2d78f049fa267bdeac04ed455ea201a
BLAKE2b-256 fb3aa4f0ae2df233bbad5fe2627fce0e48091b50c340ba87d21cc709fdfbd3d7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pykep_rust-0.1.3-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.32 {"installer":{"name":"uv","version":"0.11.32","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.3-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 341f801549cdb4b0a2956d6cf10593cce2cd373018e8c0a981721b3fc41bb533
MD5 90e63a81926a17878b2d0607a844e365
BLAKE2b-256 46e14e75045be693d5ea60220117f63266b9cf3d64b0f89c04d38c81721639fe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pykep_rust-0.1.3-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.32 {"installer":{"name":"uv","version":"0.11.32","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.3-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 1a48467d182b4a35f46caf4751cf4874698a3e17b476ff48293e738cab0c338c
MD5 68b3721f492bb5f10b8d00761f74deca
BLAKE2b-256 d2aea2643f65659501fd7c076db0c41bb8c176dec40064bcf12fec21047720f3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pykep_rust-0.1.3-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.32 {"installer":{"name":"uv","version":"0.11.32","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.3-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2baa2888644284d09d886dd0840db0379cf5f382e16ac9d924b04dce820094c5
MD5 f69ebad37df44a1ee269588eb222c928
BLAKE2b-256 d3aaea97f87ea82962d6c7ebcf97a5567b9fef37bb7ef1929db40716dfadac8f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pykep_rust-0.1.3-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.32 {"installer":{"name":"uv","version":"0.11.32","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.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 bef1bccea8d4ebafa61d07a1a3478774e1641a54a90314c26ab78ea86a04a377
MD5 28b1b8cf8a3e225affb3ca34a3da576a
BLAKE2b-256 fd65a2d2f8518445118f9addb26c4b93d98936cb9eb5d1f11be1db1886646be8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pykep_rust-0.1.3-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.32 {"installer":{"name":"uv","version":"0.11.32","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.3-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2dc0bc3a44a1831c8533e80fb8c87d97bc75c81584678b28753ed2de61f44a74
MD5 7517937b8e70053733350f82c232031c
BLAKE2b-256 9699db94166d0a049cb6962dd844896b68dd05f5752c96fead1fefdddea54ef8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pykep_rust-0.1.3-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.32 {"installer":{"name":"uv","version":"0.11.32","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.3-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 676a7e0854560ba1b88fc2424a3e3481192590a2325a38b457579dd3f398bc6d
MD5 c2ea13dc397b7dd37c46e1e5531df3f5
BLAKE2b-256 3dfb7bd3c8c28e4f84b09b1b2cbec135a36f0f0b897aeae5874ff23c1a0a5f31

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pykep_rust-0.1.3-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.32 {"installer":{"name":"uv","version":"0.11.32","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.3-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d51cc7694cf7b4ad9b7943baa40974da1d9c3689aeda73e72c29ca7529863895
MD5 171098a3bcb81c6638971759a6cd1701
BLAKE2b-256 99b012544ec8f99f32fb4063b936692717c6ca0177a0327662f44c41f4de96d2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pykep_rust-0.1.3-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.32 {"installer":{"name":"uv","version":"0.11.32","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.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a523d0f774f79da45571ed8cf2d934b3e9a567195abb5f3c0508a3e3d1ab6bec
MD5 fb9cd5910fdae1662e365d5662980480
BLAKE2b-256 94182af4030c37263d352fe05797dc044d7feed473ad6df219ba0e8bc9f79c09

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pykep_rust-0.1.3-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.32 {"installer":{"name":"uv","version":"0.11.32","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.3-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f2e1d1c7079c4a542055eb2ee8d5b23ee9a696da0c4ca30cc93be6138008f1b9
MD5 eaec62820d620b0c81980f757876f80f
BLAKE2b-256 661b6580cfb8938267ec9c34cc895baba6fa55890a331b416ae5b919037117e6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pykep_rust-0.1.3-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.32 {"installer":{"name":"uv","version":"0.11.32","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.3-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 3c3a836d17de0278c1a97bdeafd330d6c5ab17a65bc49a6af516f4b09ac04b75
MD5 828cc59de3ca0bda7c3659722fc37d0d
BLAKE2b-256 baf54bd922933573346cf8b4ee4b10c0c9d7a00e18d8c6395e29d8d587698589

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.4

14 files

This release

0.1.3 This release

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