# fastapiutils/fastapi-utils

Reusable utilities for FastAPI

Repository: https://github.com/fastapiutils/fastapi-utils
Canonical: https://ross.abutalabs.com/products/fastapi-utils
Homepage: https://fastapiutils.github.io/fastapi-utils/
Language: Python
License: MIT
License Family: permissive
Topics: fastapi
Last push: 2025-03-03T19:47:13+00:00

## Health v2 (maintenance only)
Score: 27/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 9, release rhythm 8, longevity 100
- inputs: {"age_days": 2418, "days_push": 548, "days_rel": 660, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2308, forks 189 (observed 2026-08-28T04:06:35.884470+00:00)

## What it is
A Python library of reusable utilities for FastAPI that reduces boilerplate across projects. It provides class-based views, CRUD resource classes, periodic tasks, timing middleware, SQLAlchemy session management, and pydantic-based helpers.

## Use cases
- reduce boilerplate in fastapi projects
- create crud endpoints with class based views
- run periodic background tasks in fastapi
- manage sqlalchemy sessions in fastapi
- configure fastapi app settings via environment variables
- simplify openapi operation ids
- log request timing in fastapi

## When to choose
- you build multiple FastAPI apps and want shared utilities
- you want OOP-style CRUD and class-based dependency injection in FastAPI
- you need periodic tasks or timing middleware without extra dependencies

## When to avoid
- you don't use FastAPI
- you need only one small feature that's easy to implement yourself
- you need a heavily maintained, feature-rich alternative like fastapi-utils forks with newer pydantic v2 support

## Facets
- artifact type: library
- maturity: active
- function: web-framework, middleware, orm, api-framework
- domain: web-development, backend, developer-tools
- platform: python
- tags: fastapi, pydantic, sqlalchemy, crud, class-based-views, boilerplate-reduction

## Member repositories
- fastapiutils/fastapi-utils (main) score 27

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:35.884470+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:39:36.800200+00:00, confidence not recorded.
  - readme: https://github.com/fastapiutils/fastapi-utils (fetched 2026-08-28T04:06:35.884470+00:00, sha 5f2bdb76561a)
  - homepage: https://fastapiutils.github.io/fastapi-utils/ (fetched 2026-08-29T10:19:45.664690+00:00, sha adc9c39a8ad5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
