Asset management for Quart apps
Project description
Quart-Assets
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file quart_assets-0.1.3.tar.gz.
File metadata
- Download URL: quart_assets-0.1.3.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6cee6b8e061c6da202279e49cf5f9c6ae3a8dedf0dedd6ae681ef43fa38c4d90
|
|
| MD5 |
4d9ec8f2f79618847e96aad5e475ef93
|
|
| BLAKE2b-256 |
0cc581111abfe916be00ffebce347b37b1b085c70dd89af0824aefb8a1c6ed9b
|
Provenance
The following attestation bundles were made for quart_assets-0.1.3.tar.gz:
Publisher:
publish.yml on sgerrand/quart-assets
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
quart_assets-0.1.3.tar.gz -
Subject digest:
6cee6b8e061c6da202279e49cf5f9c6ae3a8dedf0dedd6ae681ef43fa38c4d90 - Sigstore transparency entry: 1280639046
- Sigstore integration time:
-
Permalink:
sgerrand/quart-assets@6a6e995bdb12e9c4598db770329b9c0c6ac6ffe7 -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/sgerrand
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@6a6e995bdb12e9c4598db770329b9c0c6ac6ffe7 -
Trigger Event:
release
-
Statement type:
File details
Details for the file quart_assets-0.1.3-py3-none-any.whl.
File metadata
- Download URL: quart_assets-0.1.3-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.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b8c5fe51844604b3999822ca0fed0b090fab128ea08e5086ca3dec9cc198230a
|
|
| MD5 |
6e28078dbb823967f8099fe1336ba684
|
|
| BLAKE2b-256 |
d1b666de1907de53cd58b5339b4dd57a2686b47243f3599e1c9f844cc5ee0aac
|
Provenance
The following attestation bundles were made for quart_assets-0.1.3-py3-none-any.whl:
Publisher:
publish.yml on sgerrand/quart-assets
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
quart_assets-0.1.3-py3-none-any.whl -
Subject digest:
b8c5fe51844604b3999822ca0fed0b090fab128ea08e5086ca3dec9cc198230a - Sigstore transparency entry: 1280639047
- Sigstore integration time:
-
Permalink:
sgerrand/quart-assets@6a6e995bdb12e9c4598db770329b9c0c6ac6ffe7 -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/sgerrand
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@6a6e995bdb12e9c4598db770329b9c0c6ac6ffe7 -
Trigger Event:
release
-
Statement type: