Skip to main content

Datasette plugin that masks specified database columns

Project description

datasette-mask-columns

PyPI CircleCI License

Datasette plugin that masks specified database columns

Installation

pip install datasette-mask-columns

This depends on plugin hook changes in a not-yet released branch of Datasette. See issue #678 for details.

Usage

In your metadata.json file add a section like this descripibing the database and table in which you wish to mask columns:

{
    "databases": {
        "my-database": {
            "plugins": {
                "datasette-mask-columns": {
                    "users": ["password"]
                }
            }
        }
    }
}

All database queries against the users table in my-database.db will now return null for the password column, no matter what value that column actually holds.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

datasette_mask_columns-0.1-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: datasette_mask_columns-0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.10

File hashes

Hashes for datasette_mask_columns-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1db60dae549d708effa5f429e2a68f4a5603c284a40f47244328d9c8c602c50e
MD5 353ca6aecd6e60b5ed61ed77c5e25d8c
BLAKE2b-256 d215efde287321e74c1eb68fcc772ab790146421904f7f55a82fcd02d739ef13

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