Skip to main content

Play MP3 files from a directory.

Project description

Overview

Play MP3 from a specified directory.

Prerequisites

  • playsound module (installed as a dependency)

  • CAVEAT: Due to playsound limitations, directory and filenames with spaces are not allowed.

Required (Positional) Arguments

  • Position 1: /path/to/mp3/files

Optional (Keyword) Arguments

  • repeat
    • Description: Number of times to repeat the whole collection.

    • Type: Integer

    • Default: 0

  • shuffle
    • Description: Select whether to shuffle the list of songs being played.

    • Type: Boolean

    • Default: False

Usage

Installation:

pip3 install playsongs
# or
python3 -m pip install playsongs

In Python3:

from playsongs.playsongs import PlaySongs
PlaySongs('/home/username/Music', repeat = 10000000, shuffle = True)

In BASH:

python3 -c "from playsongs.playsongs import PlaySongs; PlaySongs('/home/username/Music', repeat = 10000000, shuffle = True)"

Changelog

2021.1.0.7

  • Moved build and publish process to GitHub Actions.

2021.1.0.6

  • Updated README.

2021.1.0.5

  • Updated code to return instead of exit in case of exceptions.

2021.1.0.4

  • Updated typo in README (this file).

  • No code change.

2021.1.0.3

  • Removed system exit at the end of the playlist so it won’t kill Python runtime.

  • CTRL+C will still kill Python runtime.

2021.1.0.1

  • Initial release.

Current version: 2021.1.0.7

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

PlaySongs-2021.1.0.7.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

PlaySongs-2021.1.0.7-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

Details for the file PlaySongs-2021.1.0.7.tar.gz.

File metadata

  • Download URL: PlaySongs-2021.1.0.7.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.5 CPython/3.9.2 Linux/5.4.0-1040-azure

File hashes

Hashes for PlaySongs-2021.1.0.7.tar.gz
Algorithm Hash digest
SHA256 5ed88b7c125d6d3c7bd6150e5445ce42022e311ea4ca9abfdaab9d216b90d2c3
MD5 1e9aa01f14d5deaf58501b388eedcf9e
BLAKE2b-256 0ff55b61e776480aa0c963f435a9415abc1dcc2e04b42aff62aa869f776db125

See more details on using hashes here.

File details

Details for the file PlaySongs-2021.1.0.7-py3-none-any.whl.

File metadata

  • Download URL: PlaySongs-2021.1.0.7-py3-none-any.whl
  • Upload date:
  • Size: 2.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.5 CPython/3.9.2 Linux/5.4.0-1040-azure

File hashes

Hashes for PlaySongs-2021.1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 b2fb6cade346c9013cae875a830c7a659e308fc7efc145768f3f90cb1be599e2
MD5 b2918de59423ba80604741178cc9ff95
BLAKE2b-256 310c9b8ee52215e469d076616d310bdd24144ba7ebadc287c891ea0a3e41b941

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