Skip to main content

Datasette plugin that masks specified database columns

Project description

datasette-mask-columns

PyPI Changelog Tests 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 describing the database and table in which you wish to mask columns:

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

All SQL 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.

The table page for users will display the text REDACTED in the masked column. This visual hint will only be available on the table page; it will not display his text for arbitrary queries against the table.

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-mask-columns-0.2.2.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

datasette_mask_columns-0.2.2-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file datasette-mask-columns-0.2.2.tar.gz.

File metadata

File hashes

Hashes for datasette-mask-columns-0.2.2.tar.gz
Algorithm Hash digest
SHA256 0386263bd751a79ebf2b1fa2d767fe4b2e68dee3153db937283fae8f91494630
MD5 2c8ae7da2a1c50f39df685bb9e637885
BLAKE2b-256 e3432df25a9584e6f68d4cf72e5963101a48c6cc8dcf7d516f8f0170ef5e511c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for datasette_mask_columns-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 053eef05ad9b8975440ecd9416dd7a766f2b056bc84490dfa54471ba6d426240
MD5 c1fadefb76b5c69cbd2ce5963288c497
BLAKE2b-256 3edd5321c418f23ddf6fb1c31345d422bd3e2acb935486eb2242efbff8452b8a

See more details on using hashes here.

Supported by

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