Skip to main content

Asset management for Quart apps

Project description

Quart-Assets

Build Status License PyPI version

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

Features

  • Asset bundling: Combine multiple CSS and JavaScript files into single bundles
  • Minification: Reduce file sizes with built-in minification filters
  • Compilation: Support for SCSS, Less, CoffeeScript, and other preprocessors
  • Blueprint support: Full integration with Quart blueprints
  • CLI commands: Build, clean, and watch assets from the command line
  • Development mode: Automatic rebuilding during development
  • Async support: Built for Quart's async architecture

Quick Example

from quart import Quart
from quart_assets import Bundle, QuartAssets

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

# Create CSS bundle
css_bundle = Bundle('src/main.css', 'src/utils.css',
                   filters='cssmin', output='dist/all.min.css')

# Create JavaScript bundle
js_bundle = Bundle('src/alpine.js', 'src/main.js', 'src/utils.js',
                   filters='jsmin', output='dist/all.min.js')

# Register bundles
assets.register('css_all', css_bundle)
assets.register('js_all', js_bundle)

Why Quart-Assets?

Quart-Assets is a port of the popular Flask-Assets extension, specifically designed for Quart's async architecture. It provides:

  • Seamless integration with Quart applications and blueprints
  • Async-aware template processing and CLI commands
  • Production-ready asset optimization and caching
  • Developer-friendly tools for asset management

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.4.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.4-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: quart_assets-0.1.4.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for quart_assets-0.1.4.tar.gz
Algorithm Hash digest
SHA256 c12aeb64defb9609c7c78984aab0e82f3a4d02465fc7227a63d36f0c43f5c42f
MD5 139fa0a7136beae75a25d8a22ef8a31c
BLAKE2b-256 23ab23de3b7a6c6e9889bc2d4887ef491965c95e3aa86e0e206b913d4e872e06

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for quart_assets-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c4295a2c94e9e897405f4024e9c055d215759d35560792bffc6b0524d48754b2
MD5 f3ffc7f8e924cc0ca44c9adc24506a60
BLAKE2b-256 7583d1b7e643c7f4beae41e9eae6fab1de9be48d778f631ff391fd658db93380

See more details on using hashes here.

Provenance

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