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.
- Support matrix: Technology Support
- Shared Proxymock proxy reference: Language Configuration
Demo App
- Public demo: speedscale/demo/python
- Stack: Flask
- Local run:
make local - Traffic generator:
make capture
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. Install and initialize Proxymock
brew install speedscale/tap/proxymock proxymock initUse browser sign-in by default. Use `proxymock init --api-key <your key>` only for CI or other headless environments.
- 2. Clone the Python demo and install dependencies
git clone https://github.com/speedscale/demo cd demo/python make installThe Python demo now includes a small Makefile so setup is repeatable.
- 3. Run the app
cd demo/python make localThe app listens on port 5001 and exposes a health check plus the SpaceX proxy endpoint.
- 4. Capture a real workflow
cd demo/python make captureThe capture flow records outbound SpaceX traffic through Proxymock.
- 5. Run with mocks
cd demo/python make mockMock mode replays the captured response without reaching the live SpaceX API.
- 6. Replay the same traffic against a change
cd demo/python make replayUse 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.