Skip to content

Installation

fastkit is a command-line tool written in Python. You install it once, and the fastkit command then creates, runs and checks FastAPI projects anywhere on your machine.

Requirements

  • Python 3.12 or later. Check with python3 --version (on Windows, py -3.12 --version).
  • uv (optional). When uv is installed, fastkit uses it to create each project's virtual environment and install its packages; otherwise it uses pip. You can also choose pdm or Poetry (version 2 or later) with fastkit init --package-manager.

Install with pip

A virtual environment is a folder with its own Python and packages, so the tools you install there do not mix with the rest of your system. Create one, activate it, and install fastkit into it:

$ python3 -m venv .venv
$ source .venv/bin/activate  # Windows: .venv\Scripts\activate
$ pip install fastapi-fastkit

The fastkit command is available while this environment is active. To upgrade later, run pip install -U fastapi-fastkit in the same environment.

Install with uv

uv tool install puts fastkit in an environment of its own and the fastkit command on your PATH, so you do not need to activate anything:

$ uv tool install fastapi-fastkit

If uv prints a warning that its tool directory is not on your PATH, run uv tool update-shell and open a new terminal. To upgrade later, run uv tool upgrade fastapi-fastkit.

Check the installation

$ fastkit --version
fastapi-fastkit, version 2.0.0

fastkit --help lists every command and ends with the commands you use first:

$ fastkit --help
Usage: fastkit [OPTIONS] COMMAND [ARGS]...

  Create FastAPI projects from templates, then run, extend and check them.
...
  Start here:
    fastkit init                 create a project (guided)
    cd <project>
    fastkit runserver            run it at http://127.0.0.1:8000
    fastkit addroute users       add a route
    fastkit doctor               check it for known problems

CLI reference describes each command and option.

Without installing

The web generator runs the same project generator in your browser and gives you the project as a zip file. You still need Python on your machine to run the project.

Next

Generate your first FastAPI app creates a project and runs it.