Python SDK
Use the Python SDK when building Python agents or backend services.Run the local Python example
Try the SDK against the mock AAP server with
AAP_API_KEY=aap_demo_key and fake checkout data.Install
quickstart.py
Client
AAP(api_key, base_url="https://api.rako.sh")
Create a client. It can also be used as a context manager:
Methods
aap.search(**kwargs)
Search for offers.
| Option | Type | Description |
|---|---|---|
vertical | str | sim, broadband, energy, flights, hotels, insurance |
provider | str | Filter by provider name |
max_price | float | Maximum price |
min_data_gb | int | Minimum data allowance for SIM offers |
contract_months | int | Contract length, where 0 means rolling |