Skip to main content

Turn .mp3 URLs into an audio player in the Datasette interface

Project description

datasette-mp3-audio

PyPI Changelog Tests License

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

datasette-mp3-audio-0.1.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

datasette_mp3_audio-0.1-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file datasette-mp3-audio-0.1.tar.gz.

File metadata

  • Download URL: datasette-mp3-audio-0.1.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for datasette-mp3-audio-0.1.tar.gz
Algorithm Hash digest
SHA256 2882a9810b05e984ce955d38094073ff09656715376701c9a431024f0d0c403f
MD5 bf9383af318658b6ac18b88fabf0bbf0
BLAKE2b-256 e4e701573c36c79c305696cf46e57fab0b38158145dc5801413af96061e51490

See more details on using hashes here.

File details

Details for the file datasette_mp3_audio-0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for datasette_mp3_audio-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3fa1d0b223cc226e3f168190ae0ddcfceed421cade4db52bf89365adf47703e2
MD5 f4f125c93f827b70f247ac403ef71cad
BLAKE2b-256 4a7122e156ca9fb4f3e255eea1ea78cd0ef55416aa8f1fd7ab7a5431524e15b3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page