Skip to main content

An API wrapper for KSP.

Project description


An API wrapper for KSP.
The documentation is not done yet.


  • Fetch full product data easily (includes stock, tags, price, etc)
  • Look for queries easily. (MORE COMING SOON)


Installing is very easy.

python -m pip install


Simple product stock viewer.

import time

import ksp

client = ksp.Client(ksp.Languages.ENGLISH)
cache = []

while True:
    product = client.get_product(...)

    if product and product.stock:
        available_branches = [
            branch for branch, status in product.stock.items() if status

        for branch in available_branches:
            if branch not in cache:
                print(f"Branch '{branch}' has been resupplied!")

        for branch in cache:
            if branch not in available_branches:
                print(f"Branch '{branch}' ran out of stock!")

        cache = available_branches



  • Add async support.

Known Issues

  • Currently, None!

Incase you do find bugs, please create an issue or a PR.


Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution (8.1 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page