dash-change-cdn-plugin
English | 简体中文
CDN source changing plugin for Dash applications using Dash Hooks, This plugin allows you to switch between different CDN sources for your Dash app's static resources.
Installation
pip install dash-change-cdn-plugin
Usage
import dash
# Import the change cdn plugin
from dash_change_cdn_plugin import setup_change_cdn_plugin
# Enable the change cdn plugin for the current app
setup_change_cdn_plugin()
# Remember to set serve_locally=False
app = dash.Dash(__name__, serve_locally=False)
# Rest of your app code...
Example
Run the included example:
python example.py
API Reference
setup_change_cdn_plugin()
This function enables the CDN source changing feature for your Dash application.
| Parameter | Type | Default | Description |
|---|---|---|---|
cdn_source |
Literal["npmmirror", "jsdelivr", "fastly-jsdelivr"] |
"npmmirror" |
The CDN source to use for static resources. Options are: "npmmirror", "jsdelivr", "fastly-jsdelivr". |
Metadata
Release files for dash-change-cdn-plugin 0.1.1
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 | Actions |
|---|---|---|---|---|
| dash_change_cdn_plugin-0.1.1.tar.gz | 3.3 kB | Without provenance | Details for dash_change_cdn_plugin-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dash_change_cdn_plugin-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for dash_change_cdn_plugin-0.1.1-py3-none-any.whl |
Total release size: 7.0 kB
Release files / dash_change_cdn_plugin-0.1.1.tar.gz
| Download URL | dash_change_cdn_plugin-0.1.1.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
43217248cc043d1c0d7d21005896ade04f376ed9436c765bd76a2a0d318f6854
|
|
BLAKE2b-256 checksum How to use checksums |
2ceddff46c2c383240e20a809f7235d2cec3064e7dff2d0c8434a0a03b12c4ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.18
|
Release files / dash_change_cdn_plugin-0.1.1-py3-none-any.whl
| Download URL | dash_change_cdn_plugin-0.1.1-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b7f5e51813e497c52765c23793063568fc50f39c36e88be025030caf0fe57bdc
|
|
BLAKE2b-256 checksum How to use checksums |
e6da2448d083847e758e2a08bb67253f27dbe035a71b3712650f3b357c5fb7bf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.18
|
Security for dash-change-cdn-plugin 0.1.1
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.