datasette-enrichments-jinja
Datasette enrichment for evaluating templates in a Jinja sandbox
Installation
Install this plugin in the same environment as Datasette.
datasette install datasette-enrichments-jinja
Usage
This enrichment allows you to select rows from a table and specify a Jinja template to use to generate new text for each of those rows.
The text can then be saved to a new or existing column on the table.
Code runs in a Jinja sandbox. This should protect against innocent mistakes, but may not be robust against malicious attackers - so only make this enrichment available to users who you trust not to abuse it.
Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd datasette-enrichments-jinja
python3 -m venv venv
source venv/bin/activate
Now install the dependencies and test dependencies:
pip install -e '.[test]'
To run the tests:
pytest
Metadata
Release files for datasette-enrichments-jinja 0.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 |
|---|---|---|---|---|
| datasette-enrichments-jinja-0.1.tar.gz | 7.8 kB | Without provenance | Details for datasette-enrichments-jinja-0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| datasette_enrichments_jinja-0.1-py3-none-any.whl | Python 3 | none | any | Details for datasette_enrichments_jinja-0.1-py3-none-any.whl |
Total release size: 15.6 kB
Release files / datasette-enrichments-jinja-0.1.tar.gz
| Download URL | datasette-enrichments-jinja-0.1.tar.gz |
|---|---|
| Size | 7.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f383d6d487615abf9ad84d27bae7ccdfb4a92d38f482a017790a9859cd02dd4b
|
|
BLAKE2b-256 checksum How to use checksums |
6a428b1cb747a2f97f6b1c98c7feb1fcc26f81b1577bc5f76bc7c88fd3d6a2a6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Release files / datasette_enrichments_jinja-0.1-py3-none-any.whl
| Download URL | datasette_enrichments_jinja-0.1-py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0f424eb7c19bd7dfcbe11ec1d7c223123eb2bfbb5ba0a19db678fb2fce17f30a
|
|
BLAKE2b-256 checksum How to use checksums |
727f8f0755a646cb461e622b58a9bef3895be9fabe39df8d18a95745e5c4f5bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Security for datasette-enrichments-jinja 0.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.