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.3.1.tar.gz (2.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_mailto_links-0.3.1-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

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