Skip to main content

Play MP3s 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.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.6

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.6.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

PlaySongs-2021.1.0.6-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: PlaySongs-2021.1.0.6.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.9.2 Darwin/20.3.0

File hashes

Hashes for PlaySongs-2021.1.0.6.tar.gz
Algorithm Hash digest
SHA256 be71dccf9e87ffcb8b211ef3df7d23ee04def2a65af31357412b182d6082a57e
MD5 50a72a54b41c142689c6fde59d6e9efb
BLAKE2b-256 e80fc660099355340c2f3ea637178009418ccdffc6f58c443359fc214054f202

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PlaySongs-2021.1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 2.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.9.2 Darwin/20.3.0

File hashes

Hashes for PlaySongs-2021.1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 f6be65bb3393538970d2e33de1d42e751a48e18c434f6325a321b894492a997a
MD5 53f8f45a1c4212aeae00dee89d99e0fa
BLAKE2b-256 69fffb74b9b0f21dc5130df96c758c971bf57a4986268fd569b8b93b9c706dc6

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