![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
v3.0.0
Picobel.js (pronounced peek-o-bell, as in decibel) is a lightweight dependency-free Javascript tool that converts html audio tags into styleable markup.
There are two reasons you might want to use Picobel:
You want a uniform cross-browser experience for the audio players on your site. Pick a pre-made Picobel theme, and you're all set.
You're frontender and CSS magician who loves to have control over every aspect the sites you create. You can use the markup-only version of Picobel, and write your own CSS.
The native html <audio>
tag provides fantastic functionality, but gives you no styling options at all. Picobel rebuilds the audio player with regular html elements: you get all the functionality of the native audio element, and complete control of it's appearance.
Using Picobel you can turn this:
Default browser audio players
Into this:
Picobel-styled audio players
Picobel allows you to create custom styles for your audio players: providing cross-browser consistency and a seamless integration with your existing brand styles.
Add Picobel to your project:
yarn add picobel
In your JS, initialise Picobel with your chosen class name:
import picobel from "picobel";
picobel({theme: "my-awesome-audio-player"});
Picobel will then find any <audio>
elements on the page and replace them with markup you can style with CSS.
Applying metadata to your audio file requires adding data-attributes to your <audio>
markup. Picobel gets the track name from the regular title
attribute, and looks for artist information in the data-artist
attribute. For the demo at the top of this page, the markup looks like this:
<audio src="http://audio.eatenbymonsters.com/reviews/coldWarKids/lostThatEasy.mp3" title="Lost that easy" data-artist="Cold War Kids" controls>
Your browser does not support the <code>audio</code> element.
</audio>
Picobel comes with several pre-made themes that you can use out-of-the-box. To use a theme, simply pass the theme name to the picobel()
function:
picobel({theme: "default"});
Then include the theme's CSS in your project:
<link rel="stylesheet" href="path/to/picobel.default.css">
Picobel comes with a few pre-made themes (for times when you don't want to style an entire audio player from scratch). To use a theme, make sure you've downloaded the correct stylesheet from the Picobel CSS library and then reference the chosen theme name as an option when you initialize Picobel in your JS.
<!-- Load the theme's stylesheet -->
<link rel="stylesheet" href="path/to/picobel.default.css">
<!-- Initialise Picobel with a theme -->
<script>
Picobel( { theme: "default" } );
</script>
So if you wanted to use the "iTunes" theme, your Picobel call would look like this: Picobel({theme:"itunes"});
. If you don't explicitly choose a theme, then the Default theme will be used. The current options supported by Picobel v3 are: skeleton
& default
.
You can see them all in action in the Picobel.js CodePen Collection, and see screenshots of each featured theme on this page:
Default theme. View the this theme on CodePen
Skeleton theme (use this as a jumping-off point for your own styles). View the this theme on CodePen
Note: several other themes were available with <=v2 of Picobel, but have been removed in v3. If you need access to these themes, you can still use Picobel v2.1.0. They will return to v3 soon along with a detailed migration guide for upgrading to v3.
FAQs
Convert html audio tags into styleable markup.
The npm package picobel receives a total of 5 weekly downloads. As such, picobel popularity was classified as not popular.
We found that picobel demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.