{"id":37634186,"url":"https://github.com/itchono/trajectorize","last_synced_at":"2026-01-16T11:01:11.787Z","repository":{"id":64138876,"uuid":"565618333","full_name":"itchono/trajectorize","owner":"itchono","description":"A tool for planning flights from one celestial body in KSP to another","archived":false,"fork":false,"pushed_at":"2023-03-14T21:25:42.000Z","size":3120,"stargazers_count":3,"open_issues_count":4,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-20T10:30:38.135Z","etag":null,"topics":["cffi","kerbal-space-program","orbital-mechanics","python","spacecraft-trajectories"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/trajectorize/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/itchono.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-11-14T00:10:11.000Z","updated_at":"2024-09-29T03:36:09.000Z","dependencies_parsed_at":"2023-02-01T04:17:33.359Z","dependency_job_id":null,"html_url":"https://github.com/itchono/trajectorize","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/itchono/trajectorize","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itchono%2Ftrajectorize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itchono%2Ftrajectorize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itchono%2Ftrajectorize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itchono%2Ftrajectorize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itchono","download_url":"https://codeload.github.com/itchono/trajectorize/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itchono%2Ftrajectorize/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28478106,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T06:30:42.265Z","status":"ssl_error","status_checked_at":"2026-01-16T06:30:16.248Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cffi","kerbal-space-program","orbital-mechanics","python","spacecraft-trajectories"],"created_at":"2026-01-16T11:01:11.676Z","updated_at":"2026-01-16T11:01:11.757Z","avatar_url":"https://github.com/itchono.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Trajectorize Logo](https://raw.githubusercontent.com/itchono/trajectorize/assets/trajectorize_logo.png)\n[![PyPi Version](https://img.shields.io/pypi/v/trajectorize?style=for-the-badge)](https://pypi.org/project/trajectorize/)\n[![License](https://img.shields.io/github/license/itchono/trajectorize?style=for-the-badge)](https://github.com/itchono/trajectorize/blob/main/LICENSE)\n\n---\n\nKSP Trajectory Optimizer.\n\nThis project is a reduced-scope version of [one of my other (currently incomplete) projects](https://github.com/itchono/gravity-assist-flyby-optimizer), as an intermediate stepping stone.\n\nThis tool computes trajectories between celestial bodies in KSP based on on-rails two-body patched conics, incorporating trajectory correction maneuvers for a variety of mission scenarios, such as:\n\n* Ballistic Hohmann transfers for other planets\n* Gravity assist flyby routes\n\nComputationally-intensive code is implemented in C, with a Python wrapper made using `cffi`.\nC code follows mostly C89, with some C99 features used. It has been tested against the latest versions of GCC (on Linux) and MSVC (on Windows 10).\n\n# Installation\n\nThe simplest way to install is from PyPI:\n\n`pip install trajectorize`\n\nThis will install the latest stable version of the package, and may include pre-compiled binaries for your platform.\n\nThe package is still in development, so you may want to install from the latest commit on the `main` branch instead:\n\nRun `pip install git+https://github.com/itchono/trajectorize` to install the package from source.\n\nYou will need to have Python 3.8+, and a **C compiler installed** to compile the C code if installing from source. You will also need a C compiler installed if there are no pre-compiled binaries for your platform. If you're on Windows, you can find details about installing a C compiler [here](https://wiki.python.org/moin/WindowsCompilers).\n\nThe following platforms/compilers have been tested:\n|Platform         |Compiler   |\n|-----------------|-----------|\n|Windows 10       | MSVC 14.16 (Visual Studio 2017)|\n|Ubuntu 20.04 LTS (Dev Machine) | GCC 9.4.0 |\n\n# Demos\n\nRight now, full functionality is incomplete. There are, however, some cool demos showing off the capabilities of the package.\n\n## Full Model of KSP Planetary System and Ephemerides\n\n`python -m trajectorize.demos.kerbol_system_anim`\n\n![Kerbol System Animation](https://raw.githubusercontent.com/itchono/trajectorize/assets/kerbol_system.gif)\n\n## Calculation of Ballistic Interplanetary Transfers Using Lambert's Problem\n\n`python -m trajectorize.demos.kerbin_duna_transfer`\n\n![Transfer](https://raw.githubusercontent.com/itchono/trajectorize/assets/kerbin_duna_transfer.png)\n\n## Propagation of Two-Body Trajectories Using Universal Keplerian Elements\n\n`python -m trajectorize.demos.orbit`\n\n![Orbit Demo](https://raw.githubusercontent.com/itchono/trajectorize/assets/orbit_universal.png)\n\n## Calculations of Optimal Transfers, Porkchop Plots\n\n`python -m trajectorize.demos.single_transfer Kerbin Duna --capture_alt 60000`\n\n![Porkchop](https://raw.githubusercontent.com/itchono/trajectorize/assets/single_transfer.png)\n\n# Inspirations\n\n* [Interactive illustrated interplanetary guide and calculator for KSP](https://ksp.olex.biz/), by Olex\n* [Launch Window Planner](https://alexmoon.github.io/ksp/), by AlexMoon\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitchono%2Ftrajectorize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitchono%2Ftrajectorize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitchono%2Ftrajectorize/lists"}