Skip to main content

fastpg

Genera proyectos FastAPI + PostgreSQL listos para trabajar, en un solo comando.

pipx install fastpg-cli
fastpg new mi-api
cd mi-api
fastpg dev

Qué trae el proyecto generado

  • Docker con entornos separados de desarrollo y producción
    • dev: recarga automática, la base de datos abierta en localhost para DBeaver o psql, y Mailpit
    • prod: workers, healthcheck, límites de recursos, base de datos sin puertos expuestos, scram-sha-256
    • red interna backend sin salida a internet, solo para la comunicación app ↔ db
  • PostgreSQL 15 + SQLAlchemy 2 + Alembic para las migraciones
  • Autenticación: registro, login con username o email, JWT y bcrypt
  • Correo (opcional): SMTP listo, plantillas HTML con Jinja2 y envío en segundo plano. Gmail, Outlook o un SMTP propio: solo llenas los campos en .env
  • .env generado con contraseña de base de datos y SECRET_KEY aleatorias
  • Modelos de ejemplo con relaciones 1-1, 1-N y N-N (opcional)

Comandos

Comando Qué hace
fastpg new <nombre> Crea un proyecto (hace preguntas; -y usa los valores por defecto)
fastpg dev Levanta el entorno de desarrollo
fastpg prod Levanta el entorno de producción
fastpg down Detiene los contenedores
fastpg logs [servicio] Logs en vivo
fastpg makemigrations "msg" Crea una migración
fastpg migrate Aplica las migraciones

Opciones de new

--email / --no-email          incluir envío de correo
--mail-provider gmail|outlook|smtp
--examples / --no-examples    modelos de ejemplo (profile, post, tag)
--app-port 8000               puerto de la API
--db-port 5433                puerto de Postgres en dev
--python 3.14                 versión de Python de la imagen
-y, --yes                     no preguntar nada

Desarrollo de fastpg

python -m venv .venv && source .venv/bin/activate
pip install -e .
fastpg --help

Metadata

Release files for fastpg-cli 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fastpg-cli 0.1.0
File Size Uploaded Provenance Actions
fastpg_cli-0.1.0.tar.gz 19.1 kB Without provenance Details for fastpg_cli-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fastpg-cli 0.1.0
File Interpreter ABI Platform Actions
fastpg_cli-0.1.0-py3-none-any.whl Python 3 none any Details for fastpg_cli-0.1.0-py3-none-any.whl

Total release size: 51.5 kB

Release files / fastpg_cli-0.1.0.tar.gz

Download URL fastpg_cli-0.1.0.tar.gz
Size 19.1 kB
Tags Source
SHA-256 checksum
How to use checksums
8d951e3cbf34e08ba74fd5744dc44316538dafec177b86afae1d1e3b730e2e95
BLAKE2b-256 checksum
How to use checksums
fe3f215d076c66826d4748e8770affc11df3eea7e677f5b913885daf436d390c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.10

Release files / fastpg_cli-0.1.0-py3-none-any.whl

Download URL fastpg_cli-0.1.0-py3-none-any.whl
Size 32.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
50541864638470b606398a8f47d3ccebaabd02981497ea81a0fff476dbc3ed4b
BLAKE2b-256 checksum
How to use checksums
872119af4e6d9ac358e60b35df10f20de2865953832a22f21b9c4a7c06946d5f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.10

Security for fastpg-cli 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page