Skip to main content

Quickly scaffold FastHTML apps!

Project description

FastHTML CLI

PyPI License Sponsor

Fastest way to scaffold FastHTML apps!

Usage

To create a new FastHTML application, use the fh-init command. Make sure uv is installed before running uvx:

uvx fh-init [OPTIONS] NAME

Arguments

  • NAME: The name of your FastHTML application (required).

Options

  • --template, -p TEXT: The name of the FastHTML template to use (default: base).
  • --reload, -r: Enable live reload.
  • --pico, -p: Enable Pico CSS (default: True).
  • --uv / --no-uv: Use uv to manage project dependencies (default: uv).
  • --tailwind, -t: Enable Tailwind CSS.
  • --install-completion: Install completion for the current shell.
  • --show-completion: Show completion for the current shell.
  • --help: Show the help message and exit.

Example

uvx fh-init my_awesome_app --reload --tailwind

This command will create a new FastHTML application named my_awesome_app with live reload and Tailwind CSS enabled.

Then to run the FastHTML app:

cd my_awesome_app
uv run main.py

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

fh_init-0.1.4.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

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

fh_init-0.1.4-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file fh_init-0.1.4.tar.gz.

File metadata

  • Download URL: fh_init-0.1.4.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.14

File hashes

Hashes for fh_init-0.1.4.tar.gz
Algorithm Hash digest
SHA256 217c404ad7d019745b3aa93e9517e2df5e351376b1eb4b976c88487583c57fa4
MD5 7e7fd6c8618fffdda76d4751ee9c0962
BLAKE2b-256 7ed5f8071dc6b8b5dd43b72d8f6f4bdfe47c455e0fa3bd563d0b59356bdd9c57

See more details on using hashes here.

File details

Details for the file fh_init-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: fh_init-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.14

File hashes

Hashes for fh_init-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 30e09cfbce1e7730a29e13463595bc1a7bf9872e11023aef1fd2d0e96d47fcbf
MD5 ac4f20d5360a8d905bb31fa748e64058
BLAKE2b-256 538381b26394123e039c6073cd6e139e844408c3e78b931108315d75c5d3d98b

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