Skip to main content

Datasette plugin that masks specified database columns

Project description


PyPI CircleCI License

Datasette plugin that masks specified database columns


pip install datasette-mask-columns

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


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.

Files for datasette-mask-columns, version 0.2
Filename, size File type Python version Upload date Hashes
Filename, size datasette_mask_columns-0.2-py3-none-any.whl (6.9 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page