Skip to content

Latest commit

 

History

History
56 lines (41 loc) · 1.16 KB

File metadata and controls

56 lines (41 loc) · 1.16 KB

MPP REST API - Python

This is the Python implementation of the MPP REST API sample using FastAPI.

Requirements

  • Python 3.12+
  • uv package manager
  • make
  • Stripe account with crypto payments enabled
  • EVM wallet with testnet USDC on Tempo testnet

These examples run on Tempo testnet. If you need testnet funds, you can use the Tempo faucet.

Setup

  1. Configure environment variables:
cp ../../../.env.template .env
# Edit .env with your credentials
  1. Install dependencies:
make install

Run the server

  • make run — start the local sample server
make run

Development commands

  • make lint — run lint and formatting checks without changing files
  • make format — apply automatic formatting fixes
  • make typecheck — run the sample's type checker or build validation
  • make test — run the automated test suite
  • make ci — run the full local CI sequence (install, lint, typecheck, and test)
make lint
make format
make typecheck
make test
make ci

Test the sample

purl http://localhost:4242/paid