FasterAPI
Scaffold FastAPI APIs faster with a focused CLI for backend teams.
Why FasterAPI
nats-fasterapi helps you skip repetitive setup and move straight to business logic.
- Generate Pydantic schemas with one command
- Generate CRUD repositories and service layers
- Generate versioned FastAPI routes quickly
- Generate token repository and auth dependency utilities
- Auto-mount routes into
main.py - Works in interactive and automation-friendly flows
Demo
CLI Preview Screens
Installation
pip install nats-fasterapi
Upgrade:
fasterapi update
Quick Start
# 1) Create a schema
fasterapi make-schema user
# 2) Generate repository and service
fasterapi make-crud user
fasterapi make-service user
# 3) Generate a versioned route
fasterapi make-route user --version-mode highest-number
# 4) Mount routes into main.py
fasterapi mount
Run the app in development mode:
fasterapi run-d
Command Reference
| Command | Purpose |
|---|---|
new <name> |
Create a new project in a new folder |
new-here |
Scaffold a new project in the current folder |
make-schema <name> |
Generate a Pydantic schema |
make-crud <name> |
Generate CRUD repository functions |
make-service <name> |
Generate service layer template |
make-route <name> [--version-mode ...] |
Generate route files with API versioning |
make-account <name> |
Clone the user account scaffold into a new role module |
make-token-repo [roles...] |
Generate token repository for roles |
split-user [--force] |
Interactively split user into custom non-admin roles |
unsplit-user [--force] |
Collapse split custom roles back into canonical user |
make-token-deps |
Generate token dependency utilities |
mount |
Mount routes into main.py |
email add-template |
Interactively add a built-in email template example |
email mount |
Mount templates from email_templates/ into the email singleton |
email mount-custom |
Move templates from custom_templates/ and mount them |
run-d |
Run dev server (uvicorn main:app --reload) |
update |
Upgrade FasterAPI CLI |
new vs new-here
fasterapi new <name>creates a new directory (./<name>) and scaffolds the project inside it.fasterapi new-herescaffolds directly into your current directory (./) without creating a new folder.new-hereis safety-checked and will stop if template paths already exist in the current directory.
Route Versioning Modes
highest-numberlatest-modified
Token Repo Defaults
If no roles are provided to make-token-repo, defaults are:
admin, user
Email Templates
fasterapi email add-template first asks what kind of template you need, then shows available examples.
Built-in examples (10):
changing-passwordinvitationnew-signinotprevokingwelcomepassword-resetemail-verificationreceiptaccount-deactivated
Then mount templates with:
fasterapi email mount
For custom files placed in custom_templates/:
fasterapi email mount-custom
If mounting fails, check email_mount_errors.log in the project root.
Typical Workflow
fasterapi make-schema product
fasterapi make-crud product
fasterapi make-service product
fasterapi make-route product --version-mode latest-modified
fasterapi mount
fasterapi run-d
Roadmap
- Improve
newandnew-herebootstrap customization - SQLAlchemy repository generators (PostgreSQL/MySQL)
- Config-driven scaffolding via
fasterapi.yaml - CI/CD template generation
- Better Docker/Docker Compose scaffolding
- Shell autocompletion support
Contributing
git clone https://github.com/nathanieluriri/faster-api.git
cd faster-api
pip install -e .
pytest
Issues and pull requests are welcome.
License
Licensed under the MIT License.
© 2026 Nathaniel Uriri
Metadata
Release files for nats-fasterapi 0.2.93
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nats_fasterapi-0.2.93.tar.gz | 99.3 kB | Without provenance | Details for nats_fasterapi-0.2.93.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nats_fasterapi-0.2.93-py3-none-any.whl | Python 3 | none | any | Details for nats_fasterapi-0.2.93-py3-none-any.whl |
Total release size: 238.2 kB
Release files / nats_fasterapi-0.2.93.tar.gz
| Download URL | nats_fasterapi-0.2.93.tar.gz |
|---|---|
| Size | 99.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d9754cb532b13cc233ca59772420e21e708a95cdf12f59f1f24078620af141f5
|
|
BLAKE2b-256 checksum How to use checksums |
60e1bfc90cfdb592b3b66d2a3a1f068c086985ace4d49b02f05ba7318bf593ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.10
|
Release files / nats_fasterapi-0.2.93-py3-none-any.whl
| Download URL | nats_fasterapi-0.2.93-py3-none-any.whl |
|---|---|
| Size | 138.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
57ac66b6e0f4a2fd18862119603eec2710524587118dc1c2e5ec66bdd87982f8
|
|
BLAKE2b-256 checksum How to use checksums |
5294cc7ddbe9f324be58d3c09df4be433442e061dfacee73127e9b51487f25f2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.10
|
Security for nats-fasterapi 0.2.93
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.