Skip to main content

Create a new FastApp project in one command

Project description

fastapp-new

Create a new FastApp project in one command.

How to use

Install uv following their guide for your system.

Run:

uvx fastapp-new awesomeapp

This will create a new project awesomeapp with a full-stack FastAPI app, configured with uv.

Enter the directory:

cd awesomeapp

Run the development server:

uv run fastapi dev

Open your browser and go to http://localhost:8000 to see your new FastApp project running.

Existing directory

If you want to create a new FastApp project in an existing directory, run the command without a project name:

uvx fastapp-new

Generated Stack

  • app/main.py - FastAPI app assembly and app.frontend()
  • app/routes.py - HTMX partial routes and JSON API routes
  • app/components.py - htpy server-side HTML components
  • frontend/ - static HTML/CSS frontend served by FastAPI
  • modal_app.py - Modal ASGI entrypoint for deploying the FastAPI app
  • pyproject.toml - managed by uv

Deploy

The generated project has two first-class deployment paths.

Deploy to FastAPI Cloud:

uv run fastapi deploy

Deploy to Modal:

uv run modal serve modal_app.py
uv run modal deploy modal_app.py

Positioning

fastapi-new creates a minimal general-purpose FastAPI project. fastapp-new is positioned for app development where FastAPI owns both sides of the product: static frontend serving, HTMX interactions, and JSON endpoints live in one Python project without a Node build step. Server-rendered HTML fragments are generated with htpy instead of raw string concatenation.

License

This project is licensed under the terms of the MIT license.

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

fastapp_new-0.0.2.tar.gz (63.4 kB view details)

Uploaded Source

Built Distribution

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

fastapp_new-0.0.2-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file fastapp_new-0.0.2.tar.gz.

File metadata

  • Download URL: fastapp_new-0.0.2.tar.gz
  • Upload date:
  • Size: 63.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.4 {"installer":{"name":"uv","version":"0.11.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for fastapp_new-0.0.2.tar.gz
Algorithm Hash digest
SHA256 23abdbc85cc7c53e8545fded421b5f0c230811eb1bb5b1a8e5a6ca9f6405e727
MD5 91782db7ba5184bfe8d52db83a6f1c6d
BLAKE2b-256 1cf5d04a4968c0022806551d4ef284ad0bced8b716e3373175c3a65468a63684

See more details on using hashes here.

File details

Details for the file fastapp_new-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: fastapp_new-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 9.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.4 {"installer":{"name":"uv","version":"0.11.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for fastapp_new-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a59cd2f8f2f9101ee897f231ce9b096c62b757d1928ff093d2446b038c28c9ad
MD5 ba86f0661d59dab8a7a83868e0182cb2
BLAKE2b-256 d600b06a112c2669548f5eec7038ff667d8f89aa75f075a4c87b024aad9f5aa4

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