Skip to main content
Last updated on
Advanced — 0.0.x primitives

You don't need this page for a normal integration. Use the quickstarts and createMythos() instead. These low-level functions remain exported for custom setups.

Python SDK overview

API reference for mythos-sdk — the official Mythos SDK for Python.

info

Just getting started? Quickstart: FastAPI

Install​

bash
pip install "mythos-sdk[fastapi]"

Exports​

ExportDescription
handshake_routerPre-built FastAPI router for publish handshake
create_handshake_routerFactory for customizable handshake router
create_listing_callback_handlerHandler for listing registration callback
require_launch_tokenFastAPI dependency factory — verify + consume
verify_launch_tokenLow-level JWT verify
report_usageDebit Consumer wallet
MythosSessionSession dataclass
MythosErrorBase error
MythosConfigErrorMissing/invalid SDK config
InvalidLaunchTokenErrorLaunch token failed claim validation
InsufficientFundsErrorWallet has no credits
SessionNotFoundErrorSession JTI not found
InvalidUsageErrorInvalid arguments passed to an SDK function

MythosSession​

python
@dataclass
class MythosSession:
userId: str
email: str
displayName: str
listingId: str
sessionJti: str # camelCase — matches Node SDK

Pages​