Skip to main content

fastapi-cli

NestJS-style scaffolding for FastAPI.

pip install -e .

fastapi-cli new my-api            # create a new project
cd my-api
pip install -r requirements.txt

fastapi-cli g resource users      # generate app/modules/users/*
fastapi-cli generate resource users   # same thing
uvicorn app.main:app --reload

Generated project

my-api/
├── app/
│   ├── main.py
│   ├── core/config.py
│   └── modules/
│       └── users/
│           ├── controller.py   # APIRouter (routes)
│           ├── service.py      # business logic
│           ├── repository.py   # data access (in-memory by default)
│           ├── schema.py       # pydantic models
│           └── model.py        # domain model
├── requirements.txt
└── .gitignore

app/router.py is the main router (api_router), included by app/main.py. g resource <name> registers the new router there automatically (via the # fastapi-cli:imports / # fastapi-cli:routers markers). Run it from the project root, i.e. the folder created by new.

Metadata

Release files for fastapi-nest-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 fastapi-nest-cli 0.1.0
File Size Uploaded Provenance Actions
fastapi_nest_cli-0.1.0.tar.gz 5.2 kB Without provenance Details for fastapi_nest_cli-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 11.5 kB

Release files / fastapi_nest_cli-0.1.0.tar.gz

Download URL fastapi_nest_cli-0.1.0.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
739a3435aa00097415b29d29904fbd91f64ac252aded79f07f838ec224c5893a
BLAKE2b-256 checksum
How to use checksums
b6dc8e2982196266820d095f82fdf6f6a54883d6852df6c4a7a0ec6160f2c8ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

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

Download URL fastapi_nest_cli-0.1.0-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0e0b475ed4ba607a1436ab62b37232731fd2fdd9d326f63a24e918b0666573ea
BLAKE2b-256 checksum
How to use checksums
6b5b3b759ab5cd1202796c7eba4f659bb722bcf570b1dbd72bc48cee57d55366
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Security for fastapi-nest-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