flexmeasures.ui.utils.fetch_vendor_assets

Fetch the UI’s third-party libraries, so FlexMeasures serves them itself rather than browsers loading them from CDNs.

Run it as python -m flexmeasures.ui.utils.fetch_vendor_assets; see flexmeasures/ui/utils/vendor_assets.py. It fetches the versions that the FLEXMEASURES_JS_VERSIONS setting sets, read from the config file that FlexMeasures reads. It lives apart from vendor_assets.py, which flexmeasures.ui imports, so running it does not import itself twice.

Functions

flexmeasures.ui.utils.fetch_vendor_assets.main(argv: list[str] | None = None) → int
flexmeasures.ui.utils.fetch_vendor_assets.read_js_versions_setting(path: str | None = None) → dict | None

The FLEXMEASURES_JS_VERSIONS setting from a config file, by default the one that FlexMeasures reads.