Skip to content

Plugin & Configuration Reference

API reference for VitePlugin, ViteConfig, and all configuration dataclasses in litestar_vite.config.


Core Plugin & Root Config

VitePlugin

Bases: InitPlugin, CLIPlugin

Vite plugin for Litestar.

This plugin integrates Vite with Litestar, providing:

  • Static file serving configuration
  • Jinja2 template callables for asset tags
  • Vite dev server process management
  • Async asset loader initialization
Example
from litestar import Litestar
from litestar_vite import VitePlugin, ViteConfig

app = Litestar(
    plugins=[
        VitePlugin(config=ViteConfig(dev_mode=True))
    ],
)

Attributes:

Name Type Description
proxy_clienthttpx2.AsyncClient | None

Return the pooled development HTTP proxy client, if initialized.

configViteConfig

Get the Vite configuration.

asset_loaderViteAssetLoader

Get the asset loader instance.

fragment_engineFragmentEngine

Return the active FragmentEngine instance, initializing if needed.

spa_handlerAppHandler | None

Return the configured SPA handler when SPA mode is enabled.

get_ipc_transport

get_ipc_transport(ssr_config=None)

Resolve the IPC transport for the active runtime mode.

In development mode, returns an HTTP/1.1 TCP transport targeting the active Vite dev server's /__litestar_ssr__ endpoint. In production mode, returns a cached StdioIPCTransport targeting the built SSR worker.

Parameters:

Name Type Description Default
ssr_config InertiaSSRConfig | None

Configuration supplied by a separately registered InertiaPlugin.

None

Returns:

Type Description
Any

Configured BaseIPCTransport instance.

render_fragment

render_fragment(component, props=None, mode='static')

Render a UI component fragment to HTML asynchronously.

Parameters:

Name Type Description Default
component str

Component path or name.

required
props dict[str, Any] | None

Optional properties dictionary passed to the component.

None
mode Literal['static', 'island']

Render mode, either 'static' (pure HTML) or 'island' (with client hydration).

'static'

Returns:

Type Description
str

Rendered HTML string with prepended scoped CSS.

render_fragment_sync

render_fragment_sync(component, props=None, mode='static')

Render a UI component fragment to HTML synchronously.

Useful for synchronous Jinja2 template rendering.

Parameters:

Name Type Description Default
component str

Component path or name.

required
props dict[str, Any] | None

Optional properties dictionary passed to the component.

None
mode Literal['static', 'island']

Render mode, either 'static' (pure HTML) or 'island' (with client hydration).

'static'

Returns:

Type Description
str

Rendered HTML string with prepended scoped CSS.

get_static_server_config

get_static_server_config()

Describe where the production static bundle should be served from.

Returns:

Type Description
StaticServerConfig

A StaticServerConfig whose placement is NATIVE with one mount when

StaticServerConfig

the production bundle is eligible for direct web-server serving, or ASGI with

StaticServerConfig

a diagnostic reason when Litestar's static router must serve.

on_cli_init

on_cli_init(cli)

Register CLI commands.

Parameters:

Name Type Description Default
cli Group

The Click command group to add commands to.

required

on_app_init

on_app_init(app_config)

Configure the Litestar application for Vite.

This method wires up supporting configuration for dev/prod operation:

  • Adds types used by generated handlers to the signature namespace.
  • Ensures a consistent NotFound handler for asset/proxy lookups.
  • Registers optional Inertia and Jinja integrations.
  • Configures static file routing when enabled.
  • Configures dev proxy middleware based on proxy_mode.
  • Creates/initializes the SPA handler where applicable and registers lifespans.

Parameters:

Name Type Description Default
app_config AppConfig

The Litestar application configuration.

required

Returns:

Type Description
AppConfig

The modified application configuration.

get_route_prefixes

get_route_prefixes(app)

Return the immutable route-prefix cache owned by this plugin.

server_lifespan

server_lifespan(app)

Server-level lifespan context manager (runs ONCE per server, before workers).

This is called by Litestar CLI before workers start. It handles: - Environment variable setup (with logging) - Vite dev server process start/stop (ONE instance for all workers) - Type export on startup

Note: SPA handler and asset loader initialization happens in the per-worker lifespan method, which is auto-registered in on_app_init.

Hotfile behavior: the JS plugin's listening callback writes the authoritative target once the Vite socket is ready. Python pre-writes only user-asserted external targets whose dev servers do not run the JS plugin.

Parameters:

Name Type Description Default
app Litestar

The Litestar application instance.

required

Yields:

Type Description
None

None

lifespan

lifespan(app)

Worker-level lifespan context manager (runs per worker process).

This is auto-registered in on_app_init and handles per-worker initialization: - Environment variable setup (silently - each worker needs process-local env vars) - Asset loader initialization - SPA handler initialization - Route metadata injection

Note: The Vite dev server process is started in server_lifespan, which runs ONCE per server before workers start.

Parameters:

Name Type Description Default
app Litestar

The Litestar application instance.

required

Yields:

Type Description
AsyncGenerator[None, None]

None

ViteConfig

Root configuration combining operating mode, paths, runtime, Inertia, SPA, typegen, and deployment settings.

Attributes:

Name Type Description
modeLiteral['spa', 'template', 'htmx', 'hybrid', 'inertia', 'framework', 'ssr', 'ssg', 'external'] | None

Serving mode ('spa', 'template', 'hybrid', or 'framework'; aliases 'inertia', 'htmx', 'ssr', 'ssg', 'external' normalize at init).

pathsPathConfig

Filesystem and URL path configuration (root, bundle_dir, resource_dir, static_dir, asset_url).

runtimeRuntimeConfig

Runtime execution, single-port proxy, and JS executor configuration.

typesTypeGenConfig | bool | None

Type generation configuration (True for default TypeGenConfig(), False/None to disable).

inertiaInertiaConfig | bool | None

Inertia.js v2 configuration (True for default InertiaConfig(), False/None to disable).

spaSPAConfig | bool | None

SPA HTML transformation settings (True for default SPAConfig(), False to disable).

loggingLoggingConfig | bool | None

Console output and banner logging settings (True/None for default LoggingConfig()).

dev_modebool

Shortcut flag that sets runtime.dev_mode = True when enabled.

base_urlstr | None

Base URL prefix for the application entrypoint (VITE_BASE_URL).

deployDeployConfig | bool

CDN deployment configuration (True for default DeployConfig(), False to disable).

enabledbool | None

Whether VitePlugin actively wires serving routes and lifespans (None auto-detects and skips non-serving CLI runs).

static_propsdict[str, Any]

Public build-time dictionary written to .litestar.json and exposed via virtual:litestar-static-props.

guardsSequence[Guard] | None

Litestar route guards applied to the AppHandler catch-all SPA route.

exclude_static_from_authbool

Set opt={'exclude_from_auth': True} on static asset routes so auth middleware skips static files.

spa_pathstr | None

Route path where AppHandler registers its catch-all SPA handler ('/' by default).

include_root_spa_pathsbool

Also register root '/' and '/{path:path}' SPA routes when spa_path is set to a non-root prefix.

executorJSExecutor

Get the JavaScript executor instance.

bundle_dirPath

Get bundle directory path.

resource_dirPath

Get resource directory path.

static_dirPath

Get static directory path.

root_dirPath

Get root directory path.

manifest_namestr

Get manifest file name.

hot_filestr

Get hot file name.

asset_urlstr

Get asset URL.

hoststr

Get dev server host.

portint

Get dev server port.

protocolstr

Get dev server protocol.

hot_reloadbool

Check if hot reload is enabled (derived from dev_mode and proxy_mode).

is_dev_modebool

Check if dev mode is enabled.

is_reactbool

Check if React mode is enabled.

run_commandlist[str]

Get the run command.

build_commandlist[str]

Get the build command.

build_watch_commandlist[str]

Get the watch command for building frontend in watch mode.

serve_commandlist[str] | None

Get the serve command for running production server.

install_commandlist[str]

Get the install command.

health_checkbool

Check if health check is enabled.

set_environmentbool

Check if environment should be set.

set_static_foldersbool

Check if static folders should be configured.

detect_nodeenvbool

Check if nodeenv detection is enabled.

proxy_modeLiteral['vite', 'proxy'] | None

Get proxy mode.

external_dev_serverExternalDevServer | None

Get external dev server config.

spa_handlerbool

Check if SPA handler auto-registration is enabled.

serves_own_htmlbool

True when Litestar (not an external dev server) serves HTML for this app.

registers_html_catchallbool

True when the SPA handler should register a /{path:path} catch-all route.

wants_inertia_html_shellbool

True when Inertia uses AppHandler to render the HTML shell on each request.

wants_html_proxybool

True when an external dev server owns HTML and Litestar proxies to it.

inertia_compatiblebool

True when this mode supports Inertia.js integration.

wants_spa_configbool

True when SPAConfig defaults should be applied (mode in {spa, hybrid}).

http2bool

Check if HTTP/2 is enabled for proxy connections.

csp_noncestr | None

Return the CSP nonce used for injected inline scripts.

link_preload_headersbool

Return whether RFC 8288 Link preload headers are emitted in production.

early_hintsbool

Return whether ASGI 103 Early Hints frames are emitted in production.

immutable_cache_headersbool

Return whether content-hashed static assets receive immutable Cache-Control headers.

ssr_transportLiteral['stdio', 'wasm', 'auto']

Return the configured production SSR transport mode.

ssr_enabledbool

Return whether Server-Side Rendering (Inertia SSR or custom SSR output) is enabled.

trusted_proxieslist[str] | str | None

Get trusted proxies configuration.

ssr_output_dirPath | None

Get SSR output directory.

spa_configSPAConfig | None

Get SPA configuration if enabled, or None if disabled.

deploy_configDeployConfig | None

Get deploy configuration if enabled.

logging_configLoggingConfig

Get logging configuration.

validate_mode

validate_mode()

Validate the mode configuration against the project structure.

Raises:

Type Description
ValueError

If the configuration is invalid for the selected mode.

reset_executor

reset_executor()

Reset the cached executor instance.

Call this after modifying logging config to pick up new settings.

candidate_index_html_paths

candidate_index_html_paths()

Return possible index.html locations for SPA mode detection.

Order mirrors the JS plugin auto-detection: 1. bundle_dir/index.html (for production static builds like Astro/Nuxt/SvelteKit) 2. resource_dir/index.html 3. root_dir/index.html 4. static_dir/index.html

Returns:

Type Description
list[Path]

A de-duplicated list of candidate index.html paths, ordered by preference.

candidate_manifest_paths

candidate_manifest_paths()

Return possible manifest.json locations in the bundle directory.

Some meta-frameworks emit the manifest under a .vite/ subdirectory (e.g. <bundle_dir>/.vite/manifest.json), while plain Vite builds may write it directly to <bundle_dir>/manifest.json.

Returns:

Type Description
list[Path]

A de-duplicated list of candidate manifest paths, ordered by preference.

resolve_manifest_path

resolve_manifest_path()

Resolve the most likely manifest path.

Returns:

Type Description
Path

The first existing manifest path, or the highest-priority candidate when none exist.

has_built_assets

has_built_assets()

Check if production assets exist in the bundle directory.

Returns:

Type Description
bool

True if a manifest or built index.html exists in bundle_dir.

Note

This method checks the bundle_dir (output directory) for built artifacts, NOT source directories. The presence of source index.html in resource_dir does not indicate built assets exist.

create_plugin

create_plugin()

Create a VitePlugin instance from this configuration.

Conforms to Litestar's InitPluginProtocol for config-based plugin instantiation.

Returns:

Type Description
VitePlugin

Configured VitePlugin instance.


Filesystem & Runtime Configuration

PathConfig

File system and URL path configuration for Vite source, public, and bundle directories.

Attributes:

Name Type Description
rootstr | Path

Root directory of the frontend project, defaulting to the current working directory.

bundle_dirstr | Path

Output directory for compiled production bundles and manifest.json.

resource_dirstr | Path

TypeScript/JavaScript source directory containing entrypoints and components.

static_dirstr | Path

Static public assets directory served as-is by Vite (publicDir).

manifest_namestr

Filename of the Vite build manifest inside bundle_dir.

hot_filestr

Filename inside bundle_dir storing the active Vite dev server URL.

asset_urlstr

Base URL prefix prepended to static and built asset references.

ssr_output_dirstr | Path | None

Optional output directory for compiled server-side rendering (SSR) bundles.

RuntimeConfig

Runtime process management, dev proxy, and JavaScript executor settings.

Attributes:

Name Type Description
dev_modebool

Enable development mode with Vite HMR and watch processes.

proxy_modeLiteral['vite', 'proxy'] | None

Dev proxy routing mode ('vite' allowlist, 'proxy' denylist for framework mode, or None in production).

external_dev_serverExternalDevServer | str | None

External dev server configuration or target URL string used when proxy_mode='proxy'.

hoststr

Hostname or IP address where the Vite dev server binds.

portint

TCP port where the Vite dev server listens.

protocolLiteral['http', 'https']

Protocol ('http' or 'https') used by the Vite dev server.

executorLiteral['node', 'bun', 'deno', 'yarn', 'pnpm'] | None

JavaScript runtime/package manager used to execute Vite commands ('node' when None).

run_commandlist[str] | None

Custom command argv to start the Vite dev server (auto-derived from executor when None).

build_commandlist[str] | None

Custom command argv to run a production Vite build (auto-derived from executor when None).

build_watch_commandlist[str] | None

Custom command argv to run Vite in watch-build mode (auto-derived from executor when None).

serve_commandlist[str] | None

Custom command argv to run the production SSR server (auto-derived from executor when None).

install_commandlist[str] | None

Custom command argv to install frontend dependencies (auto-derived from executor when None).

is_reactbool

Inject the @vitejs/plugin-react Fast Refresh preamble in development HTML.

health_checkbool

Poll the Vite dev server for readiness before completing startup.

detect_nodeenvbool

Detect and run nodeenv inside the active Python virtual environment.

provisioning_modeLiteral['auto', 'wheel', 'nodeenv', 'system']

How runtime binaries are located ('auto', 'wheel', 'nodeenv', or 'system').

ssr_transportLiteral['stdio', 'wasm', 'auto']

Production SSR IPC transport selection ('auto', 'stdio', or 'wasm').

set_environmentbool

Export resolved Vite settings (VITE_PORT, VITE_HOST, ASSET_URL) into process environment variables.

set_static_foldersbool

Automatically mount static asset directories on the Litestar router.

csp_noncestr | None

Content Security Policy nonce applied to injected inline <script> and <style> tags.

link_preload_headersbool

Emit RFC 8288 Link modulepreload/preload headers for the served entry graph on production HTML responses.

early_hintsbool

Emit a 103 Early Hints frame when the ASGI server advertises http.response.early_hint (opt-in).

immutable_cache_headersbool

Attach Cache-Control: public, max-age=31536000, immutable to content-hashed files under the Vite assets directory.

spa_handlerbool

Automatically register the AppHandler catch-all SPA route when mode='spa'.

http2bool

Enable HTTP/2 multiplexing for proxy HTTP requests.

start_dev_serverbool

Automatically spawn and manage the Vite dev server subprocess during Litestar lifespan.

trusted_proxieslist[str] | str | None

Trusted proxy hosts/CIDRs ('*' or IP list) for X-Forwarded-* header processing (LITESTAR_TRUSTED_PROXIES).

extra_route_prefixestuple[str, ...]

Additional backend route prefixes excluded from dev proxy forwarding and SPA catch-all routing.

has_explicit_executorbool

Return whether the runtime executor was explicitly configured via args or env.

apply_detected_executor

apply_detected_executor(executor)

Apply a lockfile-detected executor and refresh non-explicit command lists.

Parameters:

Name Type Description Default
executor ExecutorType

The detected executor identifier.

required

ExternalDevServer

Configuration for proxying to an external (non-Vite) development server.

Attributes:

Name Type Description
targetstr | None

Target URL of the external dev server (for example, 'http://localhost:4200'), or None to read the Vite hotfile.

commandlist[str] | None

Custom command argv used to start the external dev server.

build_commandlist[str] | None

Custom command argv used to build production assets for the external framework.

http2bool

Enable HTTP/2 for proxy connections to the external dev server.

enabledbool

Whether the external dev server proxy is enabled.

SPAConfig

Configuration for SPA HTML transformations and CSRF token injection.

Attributes:

Name Type Description
inject_csrfbool

Whether to inject the Litestar CSRF token into the HTML document.

csrf_var_namestr

Global window variable name used when injecting the CSRF token.

app_selectorstr

CSS selector for the application root element receiving data attributes.

cache_transformed_htmlbool

Cache transformed HTML in production when per-request inject_csrf is disabled.

cache_durationint

HTTP Cache-Control: max-age duration in seconds for SPA HTML responses.

LoggingConfig

Logging configuration for Python and TypeScript console output.

Attributes:

Name Type Description
levelLiteral['quiet', 'normal', 'verbose']

Console verbosity level ('quiet', 'normal', or 'verbose'), overridable via LITESTAR_VITE_LOG_LEVEL.

show_paths_absolutebool

Display absolute filesystem paths instead of workspace-relative paths in log output.

suppress_npm_outputbool

Suppress package-manager script echo lines (> dev / > vite) from console output.

suppress_vite_bannerbool

Suppress the Vite startup banner so only the Litestar startup banner is shown.

timestampsbool

Include timestamps in console log messages.

detect_runtime

detect_runtime(root_dir)

Detect the JavaScript runtime/package manager from project lockfiles and manifests.

Delegates to detect_runtime_marker and falls back to "node".

Parameters:

Name Type Description Default
root_dir Path

Project root directory to inspect.

required

Returns:

Type Description
ExecutorType

The detected executor identifier.

detect_runtime_marker

detect_runtime_marker(root_dir)

Return the executor implied by project lockfiles or manifests together with its source.

Precedence
  1. bun.lockb or bun.lock -> "bun"
  2. deno.lock, deno.json, or deno.jsonc -> "deno"
  3. pnpm-lock.yaml -> "pnpm"
  4. yarn.lock -> "yarn"
  5. package-lock.json -> "node"
  6. package.json "packageManager" field (pnpm@..., yarn@..., bun@..., deno@...)

Parameters:

Name Type Description Default
root_dir Path

Project root directory to inspect.

required

Returns:

Type Description
tuple[ExecutorType, str] | None

(executor, marker) where marker is the file name (or

tuple[ExecutorType, str] | None

"package.json#packageManager") that produced the match, or None

tuple[ExecutorType, str] | None

when no marker is present.


Inertia, TypeGen & Deploy Configuration

InertiaConfig

Configuration for Inertia.js v2 protocol handling, shared props, SSR, and Precognition.

Attributes:

Name Type Description
root_templatestr

Root HTML or Jinja template filename used for initial Inertia page responses.

component_opt_keystuple[str, ...]

Route handler opt keys inspected to resolve the Inertia component name.

redirect_unauthorized_tostr | None

Optional URL path to redirect unauthenticated (401/403) Inertia requests.

redirect_404str | None

Optional URL path to redirect 404 Not Found Inertia requests.

extra_static_page_propsdict[str, Any]

Static key-value props automatically merged into every Inertia page response.

extra_session_page_propsset[str] | dict[str, type]

Session key names (or mapping of session keys to Python types) copied into page props when a session exists.

shared_page_prop_typesdict[str, Any] | None

Type-only mapping of share() prop keys to Python type annotations for OpenAPI/TypeScript generation.

encrypt_historybool

Set encryptHistory: true globally on Inertia page responses so the client encrypts browser history state.

type_genInertiaTypeGenConfig | None

Type generation options controlling default User, AuthData, and FlashMessages interfaces in page-props.ts.

ssrInertiaSSRConfig | bool | None

Enable Inertia SSR (True for default InertiaSSRConfig(), False/None to disable, or a custom InertiaSSRConfig).

use_script_elementbool

Embed initial page JSON in <script type="application/json" data-page="app"> instead of an HTML-escaped data-page attribute.

precognitionbool

Register the Laravel Precognition validation exception handler for Precognition: true requests.

ssr_configInertiaSSRConfig | None

Return the SSR config when enabled, otherwise None.

InertiaSSRConfig

Server-side rendering (SSR) and circuit breaker settings for Inertia.js.

Attributes:

Name Type Description
enabledbool

Whether server-side rendering is active for Inertia full-page HTML responses.

timeoutfloat

Maximum time in seconds to wait for an SSR render call before timing out.

target_selectorstr

CSS selector of the element replaced by SSR HTML in mode='template' (SPAConfig.app_selector is used in mode='hybrid').

commandlist[str] | None

Command argv to launch the production stdio SSR worker (node <ssr_output_dir>/ssr.js when None).

cwdPath | None

Working directory for the production SSR subprocess (ViteConfig.root_dir when None).

fallback_to_clientbool

Fall back gracefully to client-side rendering when SSR fails or times out.

circuit_breaker_enabledbool

Enable the in-memory SSRCircuitBreaker protecting the SSR IPC pipeline.

circuit_breaker_failure_thresholdint

Consecutive SSR failures required before the circuit breaker trips to OPEN.

circuit_breaker_reset_timeoutfloat

Cooldown window in seconds before a tripped circuit breaker transitions to HALF_OPEN.

InertiaTypeGenConfig

Type generation options for default Inertia interfaces in page-props.ts.

Attributes:

Name Type Description
include_default_authbool

Emit default User and AuthData TypeScript interfaces in page-props.ts.

include_default_flashbool

Emit the default FlashMessages (Record<string, string[]>) interface in page-props.ts.

TypeGenConfig

Configuration for OpenAPI, AsyncAPI, route, and Inertia page-props TypeScript code generation.

Attributes:

Name Type Description
outputPath

Output directory for generated schemas and TypeScript files.

openapi_pathPath | None

Path to export the deterministic openapi.json schema (output / 'openapi.json' when None).

routes_pathPath | None

Path to export route metadata JSON (output / 'routes.json' when None).

routes_ts_pathPath | None

Path to export the generated routes.ts module (output / 'routes.ts' when None).

asyncapi_pathPath | None

Path to export the normalized asyncapi.json document (output / 'asyncapi.json' when None).

generate_zodbool

Generate Zod validation schemas alongside OpenAPI TypeScript types.

generate_sdkbool

Generate the @hey-api/openapi-ts client SDK and types from openapi.json.

generate_routesbool

Generate the typed Ziggy-style routes.ts helper module.

generate_page_propsbool

Generate page-props.ts mapping Inertia component names to Python handler prop types.

generate_channelsbool

Generate channels.ts and createTypedChannels() from asyncapi.json when an AsyncAPI plugin is present.

channels_ts_pathPath | None

Path to export the generated channels.ts module (output / 'channels.ts' when None).

generate_schemasbool

Generate schemas.ts with FormInput, FormResponse, and SuccessResponse type helpers.

schemas_ts_pathPath | None

Path to export the generated schemas.ts helper module (output / 'schemas.ts' when None).

global_routebool

Register the generated route() helper globally on window.route.

fail_on_errorbool | None

Fail the Vite command when type generation errors occur (None fails in build and warns in dev).

fallback_typeLiteral['unknown', 'any']

Fallback TypeScript value type ('unknown' or 'any') for untyped containers in generated props.

type_import_pathsdict[str, str]

Map of schema/type names to custom TypeScript import paths for types excluded from OpenAPI.

page_props_pathPath | None

Path to export Inertia page metadata JSON (output / 'inertia-pages.json' when None).

extra_commandsSequence[Sequence[str]]

Additional CLI commands ([binary, *args]) executed via the JS runtime during type generation.

DeployConfig

CDN deployment configuration for uploading built Vite bundles via fsspec.

Attributes:

Name Type Description
enabledbool

Enable CDN deployment features.

storage_backendstr | None

fsspec storage URL for the target location (for example, gcs://bucket/path).

storage_optionsdict[str, Any]

Provider options forwarded to fsspec (credentials, region, endpoint).

asset_urlstr | None

Public CDN URL prefix written to .litestar.json as deployAssetUrl during vite build.

delete_orphanedbool

Remove remote files not present in the local bundle during sync.

include_manifestbool

Upload manifest.json alongside built assets.

content_typesdict[str, str]

Optional content-type overrides keyed by file extension.

with_overrides

with_overrides(
    storage_backend=None,
    storage_options=None,
    asset_url=None,
    delete_orphaned=None,
)

Return a copy with overrides applied.

Parameters:

Name Type Description Default
storage_backend str | None

Override for the storage URL.

None
storage_options dict[str, Any] | None

Override for backend options.

None
asset_url str | None

Override for the public asset URL.

None
delete_orphaned bool | None

Override deletion behaviour.

None

Returns:

Type Description
DeployConfig

DeployConfig copy with updated fields.

PaginationContainer

Bases: Protocol

Protocol for pagination containers (OffsetPagination, ClassicPagination) unwrapped for Inertia scroll.

Attributes:

Name Type Description
itemsSequence[Any]

Paginated sequence of item records extracted for the response.


Environment & Capability Constants

FSSPEC_INSTALLED

FSSPEC_INSTALLED = _module_installed('fsspec')

JINJA_INSTALLED

JINJA_INSTALLED = _module_installed('jinja2')

TRUE_VALUES

TRUE_VALUES = {'True', 'true', '1', 'yes', 'Y', 'T'}