Hi - I answer from the OpenSmartRoute documentation: routing, the API, plans and quotas, self-hosting. Ask away, or open a support ticket if you need a person.
Grounded in the docs - follow a source before acting on it.
py-fastapi-application - Skill - OpenSmartRoute
Skillv1.0.0
py-fastapi-application
Specific guidelines for FastAPI application structure and setup in the main application file.
Instruction file imported from nerdfunk-net/datenschleuder (.github/instructions/py-fastapi-application.instructions.md). Copyright stays with the author.
Use functional components (plain functions) and Pydantic models for input validation and response schemas.
Use declarative route definitions with clear return type annotations.
Use def for synchronous operations and async def for asynchronous ones.
Minimize @app.on_event("startup") and @app.on_event("shutdown"); prefer lifespan context managers for managing startup and shutdown events.
Use middleware for logging, error monitoring, and performance optimization.
Use it
Copy one of these into your project. Installing also returns the manifest and these snippets.
yaml
targets:
- https://api.opensmartroute.ai/api/v1/registry/nerdfunk-net-datenschleuder-py-fastapi-application-instructions/manifest # or paste the manifest below
Manifest
An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.