Datasette plugin to render email addresses as mailto: links
Project description
datasette-mailto-links
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
Built Distribution
File details
Details for the file datasette_mailto_links-0.2.4.tar.gz
.
File metadata
- Download URL: datasette_mailto_links-0.2.4.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76b7565c8ca806d64b43b08fd4f139f856fd8dcfd6c6c1ff62ae439c9979b5b9 |
|
MD5 | 8ba2fc12f3f268869f29b644c5146685 |
|
BLAKE2b-256 | 6daa2ca5fe04955681b690cb27ff224e49cba5d359b57bc36fb61b7d761ad342 |
File details
Details for the file datasette_mailto_links-0.2.4-py3-none-any.whl
.
File metadata
- Download URL: datasette_mailto_links-0.2.4-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a66ff93ff29b12f4cf6b171c62ec02c769fc679cefba299717f66d376f3e0480 |
|
MD5 | e7ddc2a19445bf7ee8b20ae34d831f5a |
|
BLAKE2b-256 | 4b1dcebd0642b6760a36a9e355f86a4696c5bf1a812772c3329f3f8fd94a5c06 |