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

Uploaded Python 3

File details

Details for the file quart_assets-0.1.1.tar.gz.

File metadata

  • Download URL: quart_assets-0.1.1.tar.gz
  • Upload date:
  • Size: 8.6 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.1.tar.gz
Algorithm Hash digest
SHA256 79789afb436c6963ebd30aac25f99b73cc22a20772b84db923ada96b54fce844
MD5 b8172fe53f160e4be14a6e7cf91b35b5
BLAKE2b-256 97a7f8f9dfb50ec68286f9e8f5ea31a97f385f1c0ba77cc564ba786dc0c9cb6a

See more details on using hashes here.

Provenance

The following attestation bundles were made for quart_assets-0.1.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: quart_assets-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for quart_assets-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d457eeb34c9997673351f74c0e6a49a6a79609c5cf4961fab692663ac2a6fe1a
MD5 52c3f1d6aa4ab2e26e2b3e8db7500376
BLAKE2b-256 58e7f0a658ec271f49a98196c33b2ff21d263ec09a314043a253d93659a4abef

See more details on using hashes here.

Provenance

The following attestation bundles were made for quart_assets-0.1.1-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