Skip to main content

Python

Python is fully supported by Speedscale. Use this page for Python-specific proxy settings, TLS trust configuration, demo guidance, and the Proxymock local workflow.

Demo App

This is the current public Python demo used for local Proxymock examples.

Proxymock

Use this path for the fastest Python first success on a developer workstation.

  1. 1. Install and initialize Proxymock
    brew install speedscale/tap/proxymock
    proxymock init

    Use browser sign-in by default. Use `proxymock init --api-key <your key>` only for CI or other headless environments.

  2. 2. Clone the Python demo and install dependencies
    git clone https://github.com/speedscale/demo
    cd demo/python
    make install

    The Python demo now includes a small Makefile so setup is repeatable.

  3. 3. Run the app
    cd demo/python
    make local

    The app listens on port 5001 and exposes a health check plus the SpaceX proxy endpoint.

  4. 4. Capture a real workflow
    cd demo/python
    make capture

    The capture flow records outbound SpaceX traffic through Proxymock.

  5. 5. Run with mocks
    cd demo/python
    make mock

    Mock mode replays the captured response without reaching the live SpaceX API.

  6. 6. Replay the same traffic against a change
    cd demo/python
    make replay

    Use replay as the regression check before shipping Python changes.

TLS Trust

Python applications that use requests should trust the Speedscale certificate bundle with REQUESTS_CA_BUNDLE. See the shared Language Configuration page for the exact command and related options.