Turn .mp3 URLs into an audio player in the Datasette interface
Project description
datasette-mp3-audio
Turn .mp3 URLs into an audio player in the Datasette interface
Installation
Install this plugin in the same environment as Datasette.
datasette install datasette-mp3-audio
Usage
Once installed, any cells with a value that ends in .mp3
and starts with either http://
or /
or https://
will be turned into an embedded HTML audio element like this:
<audio controls src="... value ...">Audio not supported</audio>
Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd datasette-mp3-audio
python3 -m venv venv
source venv/bin/activate
Now install the dependencies and test dependencies:
pip install -e '.[test]'
To run the tests:
pytest
Project details
Release history Release notifications | RSS feed
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
Close
Hashes for datasette_mp3_audio-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3fa1d0b223cc226e3f168190ae0ddcfceed421cade4db52bf89365adf47703e2 |
|
MD5 | f4f125c93f827b70f247ac403ef71cad |
|
BLAKE2b-256 | 4a7122e156ca9fb4f3e255eea1ea78cd0ef55416aa8f1fd7ab7a5431524e15b3 |