krpctools#

krpctools is a Python package of command line tools for developing services and client libraries, and for testing them against the game. Install it with pip:

pip install krpctools

Its version matches the kRPC release it comes from. krpc-servicedefs, krpc-testserver and krpc-conformance run on Linux and Windows, and need the .NET 10 runtime. Every tool takes --help.

Tools#

Tool

Purpose

Described in

krpc-servicedefs

Generates the service definitions, a JSON file, from a service’s assemblies.

Generating Service Code for Static Clients

krpc-clientgen

Generates the stubs of a service for the clients that need them.

Generating Service Code for Static Clients

krpc-docgen

Generates the API reference pages of a service.

API Reference Pages

krpc-testserver

Runs a kRPC server without the game, for testing a client.

Test Server

krpc-conformance

Runs the conformance tests against a client library.

Conformance Tests

krpc-game

Installs kRPC and the test add-on into KSP, and runs the game.

In-Game Tests