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.
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
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.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
79789afb436c6963ebd30aac25f99b73cc22a20772b84db923ada96b54fce844
|
|
| MD5 |
b8172fe53f160e4be14a6e7cf91b35b5
|
|
| BLAKE2b-256 |
97a7f8f9dfb50ec68286f9e8f5ea31a97f385f1c0ba77cc564ba786dc0c9cb6a
|
Provenance
The following attestation bundles were made for quart_assets-0.1.1.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.1.tar.gz -
Subject digest:
79789afb436c6963ebd30aac25f99b73cc22a20772b84db923ada96b54fce844 - Sigstore transparency entry: 239264274
- Sigstore integration time:
-
Permalink:
sgerrand/quart-assets@b37850c340d1f9400395a0dca3e3f53f89dbc7e9 -
Branch / Tag:
refs/tags/0.1.1 - Owner: https://github.com/sgerrand
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b37850c340d1f9400395a0dca3e3f53f89dbc7e9 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d457eeb34c9997673351f74c0e6a49a6a79609c5cf4961fab692663ac2a6fe1a
|
|
| MD5 |
52c3f1d6aa4ab2e26e2b3e8db7500376
|
|
| BLAKE2b-256 |
58e7f0a658ec271f49a98196c33b2ff21d263ec09a314043a253d93659a4abef
|
Provenance
The following attestation bundles were made for quart_assets-0.1.1-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.1-py3-none-any.whl -
Subject digest:
d457eeb34c9997673351f74c0e6a49a6a79609c5cf4961fab692663ac2a6fe1a - Sigstore transparency entry: 239264288
- Sigstore integration time:
-
Permalink:
sgerrand/quart-assets@b37850c340d1f9400395a0dca3e3f53f89dbc7e9 -
Branch / Tag:
refs/tags/0.1.1 - Owner: https://github.com/sgerrand
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b37850c340d1f9400395a0dca3e3f53f89dbc7e9 -
Trigger Event:
release
-
Statement type: