kRPC allows you to control Kerbal Space Program from scripts running outside of the game. It has client libraries for many popular languages including C#, C++, C, Java, Lua, Python, Ruby and Haskell.
For example, you could write programs to:
- Autopilot a ship into orbit,
- display docking guidance information,
- or examine and manipulate individual parts.
The possibilities are (almost) endless...
The mod exposes most of KSPs API and includes support for Kerbal Alarm Clock and Infernal Robotics. This functionality is provided to client programs via a Remote Procedure Call server, which can communicate using several different protocols including TCP/IP, websockets (for communication with web browsers) and over a serial port. The server is also extensible. Additional remote procedures (grouped into "services") can be added to the server using the "Service API".