Skip to main content

fhvite

Usage

Installation

Install the latest version from pypi:

pip install fhvite

How to use

Import into an existing FastHTML application and add the following:

from fasthtml.common import *

# Add this import
from fhvite.core import add_vite

app = FastHTML()

# Add this line
add_vite(app)

All necessary setup files will be generated if not already present. After that, subsequent server starts will simply build the assets and inject them into the app header.

The plugin function also mounts a FastHTML StaticNoCache(directory=pwd/'dist') route pointing to the output folder. This ensures the generated assets benefit from modern cacheing/ asset serving behaviour automatically.

Release files for fhvite 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fhvite 0.0.5
File Size Uploaded
fhvite-0.0.5.tar.gz 8.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fhvite 0.0.5
File Interpreter ABI Platform
fhvite-0.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 18.1 kB

Release files / fhvite-0.0.5.tar.gz

Download URL fhvite-0.0.5.tar.gz
Size 8.8 kB
Tags Source
SHA-256 checksum
How to use checksums
6e19b7341d2253a02c4df11fd8361b0e3548b361058a0371f21254497ee55559
BLAKE2b-256 checksum
How to use checksums
5e4acec063796ef5036dbb25bfcee42feb41aef768fe1abb0b303221863f5e61
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.2

Release files / fhvite-0.0.5-py3-none-any.whl

Download URL fhvite-0.0.5-py3-none-any.whl
Size 9.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
91f1b7ef95b5976db4394778d2ecbf3f968dedeaef55daf25b040875f1442e3e
BLAKE2b-256 checksum
How to use checksums
58f25bc9faeffcce76b30bbef9723814b4097f1fb8d5c3a2db525af84ba16859
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.2

Release history Release notifications | RSS feed

This release

0.0.5 This release

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page