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.4.tar.gz (8.7 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.4-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fhvite-0.0.4.tar.gz
  • Upload date:
  • Size: 8.7 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.4.tar.gz
Algorithm Hash digest
SHA256 12a2eda8086b5868c7b67189069666db4adccfdd7e3ca276d95df29b77307b52
MD5 9e7f4a922731ba488093863f188e4c7e
BLAKE2b-256 52b54ab3b5d0a41cabab104fae45ad66b51973646bd046746dc22c75ab5f11ff

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fhvite-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 9.2 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 95f0c7471a39af83d1449fb516edb614605a61c214fac37a5b680f4ea07126d0
MD5 515017ce2ad2975c21d3970f1d42616f
BLAKE2b-256 b4892821b27465deebfd344c3bf8967dc13d070f7c1f1334d24e344499d43426

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