{"id":19362414,"url":"https://github.com/alancunningham/krpc-scripts","last_synced_at":"2025-04-13T11:10:24.136Z","repository":{"id":54271504,"uuid":"285660522","full_name":"AlanCunningham/krpc-scripts","owner":"AlanCunningham","description":"Scripts for the kRPC mod for Kerbal Space Program","archived":false,"fork":false,"pushed_at":"2025-02-10T17:59:26.000Z","size":80,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T02:21:16.780Z","etag":null,"topics":["kerbal-space-program","krpc","krpc-mod","krpc-scripts","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AlanCunningham.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-06T20:01:32.000Z","updated_at":"2025-02-11T07:00:19.000Z","dependencies_parsed_at":"2025-02-06T23:22:59.003Z","dependency_job_id":"1a2e0f9e-2182-4de5-9594-dde3fc2122d4","html_url":"https://github.com/AlanCunningham/krpc-scripts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlanCunningham%2Fkrpc-scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlanCunningham%2Fkrpc-scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlanCunningham%2Fkrpc-scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlanCunningham%2Fkrpc-scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlanCunningham","download_url":"https://codeload.github.com/AlanCunningham/krpc-scripts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248703199,"owners_count":21148118,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["kerbal-space-program","krpc","krpc-mod","krpc-scripts","python"],"created_at":"2024-11-10T07:28:16.752Z","updated_at":"2025-04-13T11:10:24.130Z","avatar_url":"https://github.com/AlanCunningham.png","language":"Python","readme":"# kRPC Scripts for Kerbal Space Program\n\nScripts for the [kRPC mod](https://krpc.github.io/krpc/).\n\n# Installation\n- Follow the [\"Getting started\" guide for kRPC](https://krpc.github.io/krpc/getting-started.html)\n```\n# Clone the repository\ngit clone git@github.com:AlanCunningham/krpc-scripts.git\n\n# Create a python virtual environment\npython3 -m venv venv\n\n# Activate the virtual environment\nsource venv/bin/activate\n\n# Install the python dependencies using the requirements.txt file provided\npip install -r requirements.txt\n```\n\n# Running the scripts\nRunning the orbit.py script directly will launch your rocket into orbit.\n```\n(venv) $ python orbit.py\n```\n\nYou can also import orbit.py and set the direction of the orbit and target altitude in meters:\n```\nimport krpc\nimport orbit\n\nconnection = krpc.connect(address=ip_address)\nvessel = connection.space_center.active_vessel\norbit.launch(connection, vessel, orbit.HEADING_EAST, 80000)\n```\n\nRunning the mun.py script will maneuver a rocket already in Kerbin-orbit to an orbit around the Mun:\n ```\n(venv) $ python mun.py\n```\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falancunningham%2Fkrpc-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falancunningham%2Fkrpc-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falancunningham%2Fkrpc-scripts/lists"}