fastapi-service
Installation
SKILL.md
FastAPI Service
Build production-grade FastAPI services with JWT authentication, structured logging via structlog, and Prometheus metrics.
Quick Start
import os
import sys
import logging
from contextlib import asynccontextmanager
from typing import Dict
import structlog
from fastapi import Depends, FastAPI, HTTPException, status
from fastapi.security import HTTPAuthorizationCredentials, HTTPBearer
from jose import JWTError, jwt
from prometheus_fastapi_instrumentator import Instrumentator