Skip to main content

Asset management for Quart apps

Project description

Quart-Assets

Build Status License

Quart-Assets is an extension for Quart that supports merging, minifying and compiling CSS and Javascript files via the webassets library.

Usage

To use Quart-Assets with a Quart app, you have to create a QuartAssets instance and initialise it with the application:

from quart import Quart
from quart_assets import Bundle, QuartAssets

app = Quart(__name__)
assets = QuartAssets(app)

js_bundle = Bundle('alpine.js', 'main.js', 'utils.js',
                   filters='jsmin', output='dist/all.min.js')
assets.register('js_all', js_bundle)

A bundle consists of any number of source files (it may also contain other nested bundles), an output target, and a list of filters to apply.

All paths are relative to your app’s static directory, or the static directory of a Quart blueprint.

Project details


Download files

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

Source Distribution

quart_assets-0.1.0.dev9.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

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

quart_assets-0.1.0.dev9-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file quart_assets-0.1.0.dev9.tar.gz.

File metadata

  • Download URL: quart_assets-0.1.0.dev9.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for quart_assets-0.1.0.dev9.tar.gz
Algorithm Hash digest
SHA256 748708e700711e40914dd41f80cf5841a7b67f4bf1855831117a6a1ff0aa718a
MD5 e8ef73fc35808d4e8c3a4432eaa3fb49
BLAKE2b-256 5f7c1db4ea192b6f728f9a2aa2386da5048f3033e635557f4e6681f0ac67a9de

See more details on using hashes here.

Provenance

The following attestation bundles were made for quart_assets-0.1.0.dev9.tar.gz:

Publisher: publish.yml on sgerrand/quart-assets

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file quart_assets-0.1.0.dev9-py3-none-any.whl.

File metadata

File hashes

Hashes for quart_assets-0.1.0.dev9-py3-none-any.whl
Algorithm Hash digest
SHA256 b054568441095d1f325403a13bf613267b4ec3a57945f3b2cdb8a777b7b48475
MD5 7d7602af7bfb4afcd50515c6aab48ba9
BLAKE2b-256 5b5b50e76b33269c9fe2702d249142917b4be1b7f7d022d870d5d257efd450df

See more details on using hashes here.

Provenance

The following attestation bundles were made for quart_assets-0.1.0.dev9-py3-none-any.whl:

Publisher: publish.yml on sgerrand/quart-assets

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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