Skip to main content

Datasette plugin to expose selected environment variables at /-/env for debugging

Project description

datasette-expose-env

PyPI Changelog Tests License

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:
    - 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": [
            "ENV_VAR_1",
            "ENV_VAR_2",
            "ENV_VAR_3"
        ]
    }
}

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

datasette-expose-env-0.1.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

datasette_expose_env-0.1-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file datasette-expose-env-0.1.tar.gz.

File metadata

  • Download URL: datasette-expose-env-0.1.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for datasette-expose-env-0.1.tar.gz
Algorithm Hash digest
SHA256 1a1d1c54ee82bbfd54d77a9551db09a54285346c54012de36094843923cfab72
MD5 24d47d00de3817cb75cd506476df2f09
BLAKE2b-256 a0190c54cc539de508b8ac38319b1158c062182d30d6b0e0ac9b5c06a3e7962b

See more details on using hashes here.

File details

Details for the file datasette_expose_env-0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for datasette_expose_env-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5146572133c6bcfc120f5d8f5181ce463f37a5a214a257447e3d97e25197df8d
MD5 dc4bed8a3a1e66a5086e1c2d5b11bce5
BLAKE2b-256 657c486fd6eac1c944c4f560dfeb4fbbdec6b5934cce01ced5a0195baea653c0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page