datasette-expose-env
Datasette plugin to expose selected environment variables at /-/env for debugging
Installation
Install this plugin in the same environment as Datasette.
datasette install datasette-expose-env
Configuration
Decide on a list of environment variables you would like to expose, then add the following to your metadata.yml configuration:
plugins:
datasette-expose-env:
variables:
- ENV_VAR_1
- ENV_VAR_2
- ENV_VAR_3
If you are using JSON in a metadata.json file use the following:
{
"plugins": {
"datasette-expose-env": {
"variables": [
"ENV_VAR_1",
"ENV_VAR_2",
"ENV_VAR_3"
]
}
}
}
To show a full list of redacted environment variables use "show_all_redacted": true:
plugins:
datasette-expose-env:
show_all_redacted: true
variables:
- ENV_VAR_1
- ENV_VAR_2
This will show the values for ENV_VAR_1 and ENV_VAR_2 and then a full list of other variables with their value shown as ....
Visit /-/env on your Datasette instance to see the values of the environment variables.
Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd datasette-expose-env
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-expose-env 0.2
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-expose-env-0.2.tar.gz | 7.3 kB | Without provenance | Details for datasette-expose-env-0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| datasette_expose_env-0.2-py3-none-any.whl | Python 3 | none | any | Details for datasette_expose_env-0.2-py3-none-any.whl |
Total release size: 14.5 kB
Release files / datasette-expose-env-0.2.tar.gz
| Download URL | datasette-expose-env-0.2.tar.gz |
|---|---|
| Size | 7.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3d17c93daadd8f3a3a3996622de4bb6e9b3035135139a5a27502b73b98769d8c
|
|
BLAKE2b-256 checksum How to use checksums |
dcb5c58a01d57fdefa168c8a704175d5ce253049e5a918431227a38491598795
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.8
|
Release files / datasette_expose_env-0.2-py3-none-any.whl
| Download URL | datasette_expose_env-0.2-py3-none-any.whl |
|---|---|
| Size | 7.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
04c4b42c16ca1e66640fb9bb896792cb9beb6d566219a8f7d85758af89f7c1e8
|
|
BLAKE2b-256 checksum How to use checksums |
0acb553cc0a3d4040e3e1d792df6c86126b5299da1f9809d0cf25ea2e26653c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.8
|
Security for datasette-expose-env 0.2
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.