Skip to main content

fastapi-minimal-template

Uma pequena ferramenta CLI de código aberto que cria uma aplicação FastAPI deliberadamente mínima. Ela foi projetada para aulas práticas sobre Python, APIs REST, Docker, Docker Compose e gerenciamento de dependências com uv.

O projeto gerado contém dois endpoints, testes e arquivos opcionais para Docker. Intencionalmente, ele não inclui banco de dados, autenticação, ORM ou infraestrutura de produção.

Início rápido

Execute a versão mais recente publicada sem instalá-la:

uvx fastapi-minimal-template@latest new hello-api
cd hello-api
uv sync
uv run fastapi dev src/app/main.py

Acesse:

A forma abreviada também é aceita:

uvx fastapi-minimal-template@latest hello-api

Use --no-docker para omitir os arquivos do Docker. Um destino existente nunca será alterado, a menos que --force seja informado explicitamente:

fastapi-minimal-template new hello-api --no-docker
fastapi-minimal-template new hello-api --force

Outras opções de instalação

Execute uma versão específica:

uvx fastapi-minimal-template@0.1.0 new hello-api

Instale o comando permanentemente:

uv tool install fastapi-minimal-template
fastapi-minimal-template new hello-api

Desenvolvimento da CLI

git clone https://github.com/dirleiflsilva/fastapi-minimal-template.git
cd fastapi-minimal-template
uv sync
uv run fastapi-minimal-template new hello-api

Para reproduzir a experiência do uvx antes da publicação:

uvx --from . fastapi-minimal-template new hello-api

Um caminho absoluto pode ser usado após --from caso a forma com o diretório atual não seja resolvida por uma versão mais antiga do uv.

Execute todas as verificações de qualidade e construa a distribuição:

uv run ruff check .
uv run ruff format --check .
uv run pytest
uv build

Publicação

Depois de atualizar a única declaração de versão em src/fastapi_minimal_template/__init__.py, valide e construa o pacote:

uv sync
uv run ruff check .
uv run ruff format --check .
uv run pytest
uv build
uv publish

A publicação requer credenciais do PyPI e deve ser realizada a partir de um commit de release limpo e revisado.

Licença

MIT

Metadata

Release files for fastapi-minimal-template 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 fastapi-minimal-template 0.1.0
File Size Uploaded Provenance
fastapi_minimal_template-0.1.0.tar.gz 66.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for fastapi-minimal-template 0.1.0
File Interpreter ABI Platform
fastapi_minimal_template-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 77.2 kB

Release files / fastapi_minimal_template-0.1.0.tar.gz

Download URL fastapi_minimal_template-0.1.0.tar.gz
Size 66.6 kB
Tags Source
SHA-256 checksum
How to use checksums
5e0d19b4dc584d10649eb69c4fea538a04bfc6b2dd1b862e934619f867d5ddd8
BLAKE2b-256 checksum
How to use checksums
b02a45a7b4b52921e11a96e14b60aca7ba7f438a25ee16b6cc39a36a831e9275
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.0 {"installer":{"name":"uv","version":"0.12.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

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

Download URL fastapi_minimal_template-0.1.0-py3-none-any.whl
Size 10.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4da71aee55368a940b66e1ccdd3e91a907a50adc50a9e630f6ab8fcbe10df946
BLAKE2b-256 checksum
How to use checksums
adc9fc2cc05bc20f1899eac3cbddaab3ea317dbc595f32f56f46a4f4ddf14459
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.0 {"installer":{"name":"uv","version":"0.12.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for fastapi-minimal-template 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