fastapi-dependency-injection

Official

Modular DI for FastAPI APIs

AuthorTheBushidoCollective
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill covers FastAPI's dependency injection system to build modular, testable APIs with reusable dependencies.

Core Features & Use Cases

  • Depends pattern: Reusable dependencies across endpoints.
  • Scoped lifetimes: Request-scoped vs singleton-like patterns.
  • Sub-dependencies: Build chains of dependencies for complex flows.

Quick Start

Define a get_db dependency and reuse it in multiple endpoints with Depends.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: fastapi-dependency-injection
Download link: https://github.com/TheBushidoCollective/han/archive/main.zip#fastapi-dependency-injection

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.