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
Demo
Try this plugin at https://scotrail.datasette.io/scotrail/announcements
The demo uses ScotRail train announcements from matteason/scotrail-announcements-june-2022.
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>
A "Play X MP3s on this page" button will be added to athe top of any table page listing more than one MP3.
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
Metadata
Release files for datasette-mp3-audio 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| datasette-mp3-audio-0.2.tar.gz | 7.2 kB | Without provenance | Details for datasette-mp3-audio-0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| datasette_mp3_audio-0.2-py3-none-any.whl | Python 3 | none | any | Details for datasette_mp3_audio-0.2-py3-none-any.whl |
Total release size: 15.0 kB
Release files / datasette-mp3-audio-0.2.tar.gz
| Download URL | datasette-mp3-audio-0.2.tar.gz |
|---|---|
| Size | 7.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e2bde11a81a21fbc64935d1ddb03a49e26abd48adefd5e06c945571c913af0a8
|
|
BLAKE2b-256 checksum How to use checksums |
73f0b2722cf1c6d14107e417fb69a3b5b65b10a43238a1009682b71714545166
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.6
|
Release files / datasette_mp3_audio-0.2-py3-none-any.whl
| Download URL | datasette_mp3_audio-0.2-py3-none-any.whl |
|---|---|
| Size | 7.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
81db086b632b3a0eec01c0c9bd755d27177c6c846d07e743ec3aedd179633c3c
|
|
BLAKE2b-256 checksum How to use checksums |
8341e2aec5660d5146c0dbc45cf63c546599856ddf28ba2584aa97f96bf0b2ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.6
|
Security for datasette-mp3-audio 0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.