Skip to main content

A small playlists manager for just_playback

Project description

Just Playlists

A simple playlist manager for Just Playback

Just Playlists is a simple playlist manager for Just Playback. It allows you to create a list of songs, then play them sequentially (or randomly).

It supports every file format which just playback supports.

Installation

Preqrequisites

  • Python 3.6 or higher
  • Just Playback 0.1.7 or higher

Installing

pip install just_playlists

Usage

Creating a playlist

playlist = Playlist()
songs = [
    "C:/Users/Me/Music/My Song.mp3",
    "/test.wav",
    "/music-files/another-song.ogg",
    "great-song.mp3"
]

playlist.load_files(songs)

playlist.play()

while playlist.is_playing:
    time.sleep(1) # hold the main thread open so the songs can keep playing

You can even add and delete songs from the playlist while it's playing:

songs = [
    "C:/Users/Me/Music/My Song.mp3",
    "/test.wav",
    "/music-files/another-song.ogg",
    "great-song.mp3"
]
playlist.add_file(songs, next) # append the list of songs to play next.
playlist.del_files("great-song.mp3") # you can only delete one song at a time
playlist.del_files(1) # you can also delete by index ( if both are provided, index is used)

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

just_playlists-0.0.2.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

just_playlists-0.0.2-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file just_playlists-0.0.2.tar.gz.

File metadata

  • Download URL: just_playlists-0.0.2.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0

File hashes

Hashes for just_playlists-0.0.2.tar.gz
Algorithm Hash digest
SHA256 4789e61bbdd97daf190a1dd394f69e642e2f5dcfd1f726810fef19ee1e2965c9
MD5 00ae902cdda4cbf7cd2ecedf3970dbf8
BLAKE2b-256 4ea848c2df17cf57e2024026afdcf264937d95ea8b01c51dfca7251ee0a9602a

See more details on using hashes here.

File details

Details for the file just_playlists-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for just_playlists-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c03c8cfd8d740979eda47faa8516f2569cf4e2103e22fd779c7185d2a5b69de4
MD5 9d75244d0f1f8004c30d7d05f5d8a5cd
BLAKE2b-256 e8eaa6be373aabd278502723c7965cd6eb58e01509297495beb2e055a50b0444

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