# piccolo-orm/piccolo

A fast, user friendly ORM and query builder which supports asyncio.

Repository: https://github.com/piccolo-orm/piccolo
Canonical: https://ross.abutalabs.com/products/piccolo-orm-piccolo
Homepage: https://piccolo-orm.com/
Language: Python
License: MIT
License Family: permissive
Topics: piccolo, asyncio, python, python3, orm, postgresql, asgi, database, query-builder, sqlite, fastapi, starlette, hacktoberfest
Last push: 2026-08-07T20:47:27+00:00

## Health v2 (maintenance only)
Score: 96/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 96, release rhythm 95, longevity 100
- inputs: {"age_days": 2867, "days_push": 26, "days_rel": 37, "gap_med": 14.0, "n_releases_24m": 25}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1937, forks 114 (observed 2026-08-28T04:05:57.079297+00:00)

## What it is
Piccolo is a fast, user-friendly ORM and query builder for Python with first-class asyncio support. It includes batteries like migrations, a User model, authentication, and integrates with ASGI frameworks such as FastAPI and Starlette.

## Use cases
- query a postgres database with async python
- orm for fastapi app
- build a web app with sqlite and asyncio
- manage database migrations in python
- type-annotated query builder for python
- add user authentication to a python backend
- scaffold an asgi web app with an orm

## When to choose
- you need async or sync database access in Python with Postgres or SQLite
- you want a modern, fully type-annotated ORM with tab completion
- you're building an ASGI web app (FastAPI, Starlette, Litestar, etc.) and want an integrated ORM with migrations and auth

## When to avoid
- you need databases other than Postgres, SQLite, or CockroachDB
- your team is heavily invested in Django ORM or SQLAlchemy ecosystems
- you need a synchronous-only, minimal ORM without extra batteries

## Facets
- artifact type: library
- maturity: active
- function: orm, database, auth, middleware
- domain: databases, web-development, backend, developer-tools
- platform: python, cross-platform
- tags: asyncio, query-builder, postgresql, sqlite, asgi, fastapi, migrations, type-annotated

## Member repositories
- piccolo-orm/piccolo (main) score 96

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:57.079297+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:08:24.605311+00:00, confidence not recorded.
  - readme: https://github.com/piccolo-orm/piccolo (fetched 2026-08-28T04:05:57.079297+00:00, sha 375e50fc07f0)
  - homepage: https://piccolo-orm.com/ (fetched 2026-08-29T10:47:37.314679+00:00, sha 35506d280c60)
  - registry_pypi: https://pypi.org/pypi/piccolo/json (fetched 2026-08-29T10:47:37.323619+00:00, sha 40cce5b357d8)
- Data as of 2026-08-30T08:39:29.467469+00:00.
