Fetch and deploy external resource files
Sorry, this file is outdated – will be updated soon. Don’t read on. Thank you.
Installation
Install this package (as editable or from the repository) into your virtual environment.
Install invoke, create a tasks.py file in the root directory of your project and insert these lines:
from external_resources.tasks import ( get_resources, check_resource, deploy_resources, )Create a file external_resources.yaml containing information about the external resources that you will be needing. An example is supplied with this package.
Create (or edit) the file invoke.yaml (in the same directory as tasks.py); it should specify the path of your external_resources.yaml registry and a list of resource names and optional version specifiers (like in a requirements file).
Example:
external_resources: required: - bootstrap5 - bootstrap5_js - htmx ~= 1.7 - lineawesome13 ~= 1.3 config_file: external_resources.yaml dir_name: static_externalThe path to the config_file can either be an absolute path or relative to the directory of invoke.yaml.
The dir_name option should point to a directory where the external resources will be installed (on your local host); depending on the kind of the resource they will go into subdirectories css, js, or fonts.
The invoke command
inv get-resources
will try to download the resources specified as required into the dir_name target directory.
If the integrity check code for a resource is not known, the command
inv check-resource NAME
will calculate and display this code which then can be pasted into the registry to make sure the correct file was retrieved on a later download.
With
inv deploy-resources
the resources from the local dir_name directory (and its subdirectories) will be rsync’ed to the target host specified by the target option in invoke.yaml.
Metadata
Release files for external-resources 0.5.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 |
|---|---|---|---|---|
| external_resources-0.5.1.tar.gz | 26.4 kB | Without provenance | Details for external_resources-0.5.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| external_resources-0.5.1-py3-none-any.whl | Python 3 | none | any | Details for external_resources-0.5.1-py3-none-any.whl |
Total release size: 58.5 kB
Release files / external_resources-0.5.1.tar.gz
| Download URL | external_resources-0.5.1.tar.gz |
|---|---|
| Size | 26.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c1cacb7a90c12831afedd4b06f4756e1044cf868976bc061a22b0f82c84d65e6
|
|
BLAKE2b-256 checksum How to use checksums |
d368eac6e9e87eb2edfbcbec99310ec87371322d6ffd893d7ff4471b22cccf8c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":null,"id":"forky","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / external_resources-0.5.1-py3-none-any.whl
| Download URL | external_resources-0.5.1-py3-none-any.whl |
|---|---|
| Size | 32.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0c81edca01cbab6fb88989965e274569ead4f6482f03ff7a765300e6517b079b
|
|
BLAKE2b-256 checksum How to use checksums |
9612ed9f512261842dbfcb31994ce7550c1c5dbbcf9831bd634fcb87b32827d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":null,"id":"forky","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for external-resources 0.5.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.