{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/15"},{"label":"Libraries","url":"https://skillfed.io/packages/category/software-development-libraries/8"},{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/18"},{"label":"Internet","url":"https://skillfed.io/packages/category/internet/4"},{"label":"WWW/HTTP","url":"https://skillfed.io/packages/category/internet-www-http/6"},{"label":"Application Frameworks","url":"https://skillfed.io/packages/category/software-development-libraries-application-frameworks/4"},{"label":"HTTP Servers","url":"https://skillfed.io/packages/category/internet-www-http-http-servers"}],"enrichment":{"capability":"Converts functions into FastAPI-compatible decorators that can inject and resolve FastAPI dependencies, eliminating boilerplate when building reusable endpoint decorators.","skillfed_tags":["fastapi-extension","decorator-pattern","dependency-injection"],"use_cases":["Build an authentication decorator that checks OAuth2 tokens and raises 401/403 errors without duplicating token resolution logic across routes.","Create a rate-limiting decorator factory that accepts max_calls and period parameters and applies them to individual endpoints.","Implement a caching decorator that wraps expensive operations and uses a Depends()-injected cache backend to store and retrieve results.","Add request logging or audit trails by decorating endpoints to capture request metadata and write to a database via injected Session.","Enforce custom response headers or modify responses by decorating endpoints with a decorator that receives the Response object via Depends()."],"what_it_does":"fastapi-decorators provides a @depends decorator that wraps FastAPI's Depends() mechanism, letting you build reusable decorators that inject dependencies into endpoints without repeating dependency resolution logic. Instead of manually threading FastAPI dependencies through custom decorators, you annotate a function with @depends and use it directly as a decorator on your route handlers.\n\nThe package supports three main patterns: simple decorators that run side effects (logging, auditing), decorator factories that accept parameters (rate limiting, authorization scopes), and wrapper decorators that intercept endpoint execution while still accessing injected dependencies (caching, error handling). It integrates directly with FastAPI's dependency system, so decorated endpoints appear correctly in auto-generated API documentation.","worth_installing":"Yes. The package solves a genuine friction point in FastAPI: building reusable decorators that need access to dependencies. It has no security vulnerabilities, low install friction, permissive licensing, and active maintenance. Use it when you find yourself writing the same dependency-aware decorator logic across multiple endpoints."},"id":"fastapi-decorators","links":{"html":"https://skillfed.io/packages/fastapi-decorators","md":"https://skillfed.io/packages/fastapi-decorators.md","pypi":"https://pypi.org/project/fastapi-decorators/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-03-30","license_spdx":null,"license_treatment":"permissive","name":"fastapi-decorators","python_support":"supports_current","summary":"Create decorators for your endpoints using FastAPI dependencies."},"popularity":{"monthly_downloads":148668,"position":11023,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.0.20"}
