Skip to main content

Datasette plugin to render email addresses as mailto: links

Project description

datasette-mailto-links

Run tests codecov PyPI Version License Python Compatibility Code style: black

Datasette plugin to render email addresses as mailto: links

Installation

pip install datasette-mailto-links

Configuration

By default, when installed datasette-mailto-links will search for values in any column that look like an email address and replace them with a mailto: link. To restrict this behaviour to only certain columns, the plugin behaviour can be configured in metadata.json. e.g:

{
  "databases": {
    "my_db": {
      "tables": {
        "email": {
          "plugins": {
            "datasette-mailto-links": {
              "columns": ["sender", "recipient"]
            }
          }
        }
      }
    }
  }
}

The plugin can be disabled entirely for certain tables using "columns": []

For more detail on Datasette plugin configuration see https://docs.datasette.io/en/latest/plugins.html#plugin-configuration

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_mailto_links-0.2.4.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

datasette_mailto_links-0.2.4-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

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