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.

Download files

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

Source Distribution

fhvite-0.0.5.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

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

fhvite-0.0.5-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file fhvite-0.0.5.tar.gz.

File metadata

  • Download URL: fhvite-0.0.5.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for fhvite-0.0.5.tar.gz
Algorithm Hash digest
SHA256 6e19b7341d2253a02c4df11fd8361b0e3548b361058a0371f21254497ee55559
MD5 cde51949e85a2898919b781ddd4ba594
BLAKE2b-256 5e4acec063796ef5036dbb25bfcee42feb41aef768fe1abb0b303221863f5e61

See more details on using hashes here.

File details

Details for the file fhvite-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: fhvite-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 9.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for fhvite-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 91f1b7ef95b5976db4394778d2ecbf3f968dedeaef55daf25b040875f1442e3e
MD5 bb330ed25bdb819be4a1ed0aadd7c795
BLAKE2b-256 58f25bc9faeffcce76b30bbef9723814b4097f1fb8d5c3a2db525af84ba16859

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