flask-topassets
a package on top of flask-assets for plugin
installation
pip install flask_topassets
usage
# e.g. in flask-tomselect
from flask_topassets import TopAssets
# used in flask-tabler import
CLASS_NAME = "TomSelect"
class TomSelect(TopAssets):
def __init__(self, app=None) -> None:
if app:
self.init_app(app)
def init_app(self, app) -> None:
self.prepare(app, "tomselect")
self.bundle_js("tom-select.complete.min.js")
self.bundle_css("tom-select.tabler.min.css")
# in templates head
{{ tomselect.get_path("css") }}
# output is:
# <link rel="stylesheet" href="/tomselect/select/tom-select.tabler.min.css" />
# for javascript
{{ tomselect.get_path("js") }}
# output is:
# <script type="text/javascript" src="/tomselect/select/tom-select.complete.min.js"></script>
{% from "tomselect/helpers.html" import js_tomselect %}
<div class="mb-3">
<div class="form-label">Select</div>
<select class="form-select" id="demo" name="demo">
<option value="1">One</option>
<option value="2">Two</option>
<option value="3">Three</option>
</select>
</div>
{{ js_tomselect("demo", plugins=["remove_button", "clear_button"]) }}
Metadata
Release files for flask-topassets 0.1.0.20250915
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| flask_topassets-0.1.0.20250915.tar.gz | 3.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| flask_topassets-0.1.0.20250915-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.1 kB
Release files / flask_topassets-0.1.0.20250915.tar.gz
| Download URL | flask_topassets-0.1.0.20250915.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5d1fa45967825f62c5dd98fff598e9829eb8b0e29bc7f3091619864ff3dba32b
|
|
BLAKE2b-256 checksum How to use checksums |
c0618071ee53ec4c9e8b64a1c15f5a64171611cd08dcbd53d46358742bbc7b5c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.10
|
Release files / flask_topassets-0.1.0.20250915-py3-none-any.whl
| Download URL | flask_topassets-0.1.0.20250915-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e1781ac9278d32cbdff4af4656113fc7dbe26272502c90ff941b17e16738557e
|
|
BLAKE2b-256 checksum How to use checksums |
9c7a223adcfb024a133a5aa00e570c6f76f2d442ea8a2dd383562ce4d904ccf3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.10
|
Security for flask-topassets 0.1.0.20250915
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.