Fapi: FastAPI Project Manager
Project description
Fapi — FastAPI Project Manager
Fapi is a small command-line tool to scaffold FastAPI projects.
Description
fapi provides commands to create a minimal FastAPI project structure from the command line.
Requirements
- Python 3.8 or newer
typer(seepyproject.tomlfor declared dependencies)
Installation (development)
- Open a terminal in the repository root (the folder that contains
pyproject.toml). - Install the package in editable mode for development:
py -m pip install -e .
This makes the fapi package available in your active Python environment so you can run it from any directory.
Running the CLI
- Recommended (run as a package):
py -m fapi
- Alternative (run the module file directly from the project root):
py fapi\__main__.py
Note: Do not run py fapi without -m. The py launcher treats that as a file/argument and Python may not add the project parent directory to sys.path, which results in ModuleNotFoundError: No module named 'fapi'.
Basic usage
After running py -m fapi you will see the CLI help and available commands. Example to scaffold a new project:
py -m fapi init my_project
If you installed the package in editable mode you can run the command directly:
fapi init my_project
Troubleshooting
- If you see
ModuleNotFoundError: No module named 'fapi', either:- Run the CLI with
py -m fapifrom the repository root, or - Install the package into your environment with
py -m pip install -e ..
- Run the CLI with
Contributing
- Open an issue or submit a pull request with improvements.
License
- Add a license file appropriate for your project.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fasti-0.0.0.dev0.tar.gz.
File metadata
- Download URL: fasti-0.0.0.dev0.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.12 {"installer":{"name":"uv","version":"0.9.12"},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9a429f6d33fd7268bfbd0b17d27d51f348d9b322da9d17881eb5503f6ebf262
|
|
| MD5 |
359a7f2e542e2b71713b6beda4244f81
|
|
| BLAKE2b-256 |
fc9a27ee9c84ab9e3a5066b743d2ac4c72a9e8ebbc39384d6d173e384e49f324
|
File details
Details for the file fasti-0.0.0.dev0-py3-none-any.whl.
File metadata
- Download URL: fasti-0.0.0.dev0-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.12 {"installer":{"name":"uv","version":"0.9.12"},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6883e4520efd2586c20e9b2d5b3ccee225c9e63082068ddc028d61c5e24d017b
|
|
| MD5 |
86136ae965b2c8e4f05987a3a3d2c3b2
|
|
| BLAKE2b-256 |
4210195e80a1f33fb34869335ce0e181311a2282f70388cc1eca8b21c9d22abc
|