Skip to main content

Vite plugin for Litestar

Project description

Litestar Vite

[!IMPORTANT] This plugin currently contains minimal features and is a work-in-progress

Installation

pip install litestar-vite

Usage

Here is a basic application that demonstrates how to use the plugin.

from __future__ import annotations

from litestar import Litestar
from litestar_vite import ViteConfig, VitePlugin

vite = VitePlugin(
    config=ViteConfig(
        static_dir="./local_static_dir",
        templates_dir="./path_to_jinja_templates",
        # Should be False when in production
        hot_reload=True, # Websocket HMR asset reloading is enabled when true.
        port=3005,
    ),
)
app = Litestar(plugins=[vite])

Project details


Release history Release notifications | RSS feed

This version

0.1.0

Download files

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

Source Distribution

litestar_vite-0.1.0.tar.gz (72.9 kB view details)

Uploaded Source

Built Distribution

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

litestar_vite-0.1.0-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file litestar_vite-0.1.0.tar.gz.

File metadata

  • Download URL: litestar_vite-0.1.0.tar.gz
  • Upload date:
  • Size: 72.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for litestar_vite-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ae2d20303e4d15347047cd2260d5167790850b9fa0559238c6b0c563315b24c3
MD5 85d018a7c944f3ab6ff1663ade2867c2
BLAKE2b-256 1979787911dc73b9f89d3d1146bd06a01e85cb7d461e68c25f77435c75091763

See more details on using hashes here.

File details

Details for the file litestar_vite-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: litestar_vite-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for litestar_vite-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b95d3c2431adabf7c852a2d409b4a54cea29c3a1f4dcf438e40b5174e6931484
MD5 ecd2ff2e225c743a1ec5cd5c6dde4076
BLAKE2b-256 7319895205f038bbc0ea7bfbf006daa560489f594f380c00cf80e2de2bfbb02e

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