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
Release history Release notifications | RSS feed
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 details)
Built Distribution
File details
Details for the file playsongs-2024.1.0.0.tar.gz
.
File metadata
- Download URL: playsongs-2024.1.0.0.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.12 Linux/5.4.109+
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e0f812b14e13d23a1dd0211437bfddb43acaa64b75d42f2b6280ed9a7720d69 |
|
MD5 | e2955270e9521b233207f173cb43c81e |
|
BLAKE2b-256 | 283c19c6490c9625f74ed5e594913d12eb56b2836a430f5c085e02152471cc8a |
File details
Details for the file playsongs-2024.1.0.0-py3-none-any.whl
.
File metadata
- Download URL: playsongs-2024.1.0.0-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.12 Linux/5.4.109+
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d259cfc6914328977168a38791a4c7b6ce8a24533a70f1707d60756f33f765e1 |
|
MD5 | 832fb6648fac2a8a0e939b202a9ca2b1 |
|
BLAKE2b-256 | d72cb07c2fcdad5f40e78a7ce9a230d1fd06f55d56e75b6bcbfe7484ead0f08b |