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.post1.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.

quart_assets-0.1.1.post1-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: quart_assets-0.1.1.post1.tar.gz
  • Upload date:
  • Size: 8.7 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.post1.tar.gz
Algorithm Hash digest
SHA256 67d3f9bc5374b94a71cd7e5ce17132b99efdd7d51f32f5b51473a66820a292ec
MD5 9f75ec25a07787852df6c41e88e0aece
BLAKE2b-256 58a2a2debb6cc6430bd4ed4bd323c0601174d7245daa53a2e872529275a4081d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for quart_assets-0.1.1.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 1694ecdd782effe597ef3025d8c48f631e69cfa6ee2b9e289c8a7294a33c5339
MD5 c15aa72058fb345be3a1529308c50f45
BLAKE2b-256 ac3cda67506c13b64835667ab258209d7008557a00e7c7024d839e17d6931408

See more details on using hashes here.

Provenance

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