Skip to main content

Play MP3 files from a directory.

Project description

Overview

Play MP3s from a specified directory.

Prerequisites

  • Python >= 3.6

  • playsound >= 1.2.2 (installed as a dependency)

  • pyobjc >= 7.1 (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 import PlaySongs
PlaySongs('/home/username/Music', repeat = 10000000, shuffle = True)

In BASH:

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

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-2024.1.0.0.tar.gz (2.2 kB view hashes)

Uploaded Source

Built Distribution

playsongs-2024.1.0.0-py3-none-any.whl (2.8 kB view hashes)

Uploaded Python 3

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