Skip to main content

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 (see pyproject.toml for declared dependencies)

Installation (development)

  1. Open a terminal in the repository root (the folder that contains pyproject.toml).
  2. 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 fapi from the repository root, or
    • Install the package into your environment with py -m pip install -e ..

Contributing

  • Open an issue or submit a pull request with improvements.

License

  • Add a license file appropriate for your project.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fasti-0.0.0.dev0.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fasti-0.0.0.dev0-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

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

Hashes for fasti-0.0.0.dev0.tar.gz
Algorithm Hash digest
SHA256 e9a429f6d33fd7268bfbd0b17d27d51f348d9b322da9d17881eb5503f6ebf262
MD5 359a7f2e542e2b71713b6beda4244f81
BLAKE2b-256 fc9a27ee9c84ab9e3a5066b743d2ac4c72a9e8ebbc39384d6d173e384e49f324

See more details on using hashes here.

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

Hashes for fasti-0.0.0.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 6883e4520efd2586c20e9b2d5b3ccee225c9e63082068ddc028d61c5e24d017b
MD5 86136ae965b2c8e4f05987a3a3d2c3b2
BLAKE2b-256 4210195e80a1f33fb34869335ce0e181311a2282f70388cc1eca8b21c9d22abc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page