# benavlabs/fastcrud

FastCRUD is a Python package for FastAPI, offering robust async CRUD operations and flexible endpoint creation utilities.

Repository: https://github.com/benavlabs/fastcrud
Canonical: https://ross.abutalabs.com/products/fastcrud
Homepage: https://benavlabs.github.io/fastcrud/
Language: Python
License: MIT
License Family: permissive
Topics: async, backend, crud, fastapi, pydantic, pydantic-v2, python, sqlalchemy
Last push: 2026-06-21T04:03:28+00:00

## Health v2 (maintenance only)
Score: 85/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 88, release rhythm 89, longevity 69
- inputs: {"age_days": 968, "days_push": 73, "days_rel": 73, "gap_med": 10.0, "n_releases_24m": 27}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1567, forks 112 (observed 2026-08-28T04:05:04.930150+00:00)

## What it is
FastCRUD is a Python library for FastAPI that provides fully async CRUD operations built on SQLAlchemy 2.0 (or SQLModel) with Pydantic schemas. It auto-generates CRUD endpoints with features like auto-detected joins, dynamic filtering and sorting, and offset/cursor pagination.

## Use cases
- generate crud endpoints for fastapi models
- async database crud operations with sqlalchemy
- build rest api endpoints automatically from pydantic schemas
- add cursor pagination for infinite scrolling in fastapi
- perform joins across sqlalchemy models without writing join conditions
- scaffold a fastapi backend crud layer quickly

## When to choose
- you use FastAPI with SQLAlchemy 2.0 or SQLModel and want to eliminate boilerplate CRUD code
- you need auto-generated endpoints with joins, filtering, sorting, and pagination out of the box
- your stack is fully async and you want non-blocking database operations

## When to avoid
- you use a non-SQLAlchemy ORM or a non-relational database
- you need fine-grained manual control over every endpoint's query logic and don't want generated abstractions
- your project is not built on FastAPI

## Facets
- artifact type: library
- maturity: active
- function: orm, database, api-framework, routing, serialization
- domain: web-development, backend, apis, databases, developer-tools
- platform: python, cross-platform
- tags: fastapi, crud, sqlalchemy, pydantic, async, auto-generated-endpoints, pagination, sqlmodel, web-server

## Member repositories
- benavlabs/fastcrud (main) score 85

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:04.930150+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-30T03:59:00.021339+00:00, confidence not recorded.
  - readme: https://github.com/benavlabs/fastcrud (fetched 2026-08-28T04:05:04.930150+00:00, sha 4e4cc7c835a3)
  - homepage: https://benavlabs.github.io/fastcrud/ (fetched 2026-08-29T11:28:55.500931+00:00, sha cd0cf5954393)
  - registry_pypi: https://pypi.org/pypi/fastcrud/json (fetched 2026-08-29T11:28:55.510397+00:00, sha 981e1538d32a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
