Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chris48s/datasette-mailto-links
✉️ Datasette plugin to render email addresses as mailto: links
https://github.com/chris48s/datasette-mailto-links
datasette datasette-plugin
Last synced: about 2 months ago
JSON representation
✉️ Datasette plugin to render email addresses as mailto: links
- Host: GitHub
- URL: https://github.com/chris48s/datasette-mailto-links
- Owner: chris48s
- License: mit
- Created: 2021-01-31T20:16:55.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-10-23T18:28:06.000Z (2 months ago)
- Last Synced: 2024-11-02T14:23:02.551Z (2 months ago)
- Topics: datasette, datasette-plugin
- Language: Python
- Homepage: https://pypi.org/project/datasette-mailto-links/
- Size: 394 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# datasette-mailto-links
[![Run tests](https://github.com/chris48s/datasette-mailto-links/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/chris48s/datasette-mailto-links/actions/workflows/test.yml)
[![codecov](https://codecov.io/gh/chris48s/datasette-mailto-links/branch/main/graph/badge.svg?token=JEUG9Y0ZT3)](https://codecov.io/gh/chris48s/datasette-mailto-links)
[![PyPI Version](https://img.shields.io/pypi/v/datasette-mailto-links.svg)](https://pypi.org/project/datasette-mailto-links/)
![License](https://img.shields.io/pypi/l/datasette-mailto-links.svg)
![Python Compatibility](https://img.shields.io/badge/dynamic/json?query=info.requires_python&label=python&url=https%3A%2F%2Fpypi.org%2Fpypi%2Fdatasette-mailto-links%2Fjson)
![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)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:
```json
{
"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