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.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.3.1
Updated README.
2021.1.3.0
Used multiprocessing to start playsound to enable skipping and non-Python-killing keyboard interrupt.
2021.1.2.0
Added pyobcj as a dependency.
Reverted keyboard interrupt to exit as return doesn’t actually stop playbacks.
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.3.1
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
Built Distribution
File details
Details for the file PlaySongs-2021.1.3.1.tar.gz
.
File metadata
- Download URL: PlaySongs-2021.1.3.1.tar.gz
- Upload date:
- Size: 2.9 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 075cb6d0e8ffb6d0ad8db0bcd04ceaaf643371c45b13ef608d7c818b0f270645 |
|
MD5 | d037ea8d4bfde1ecae6bf38a71c8b174 |
|
BLAKE2b-256 | e9ee4805b7fb03210a7d6b526af6b29e0245fbed3387023d0e21909a1f758821 |
File details
Details for the file PlaySongs-2021.1.3.1-py3-none-any.whl
.
File metadata
- Download URL: PlaySongs-2021.1.3.1-py3-none-any.whl
- Upload date:
- Size: 2.9 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 376fe14020ec92ab2bce7dbc6f49bee313d7fa8921e5f4d996de6fd5efe71704 |
|
MD5 | 4797e070cb8b891e694de62f3a751056 |
|
BLAKE2b-256 | c0c5ec2addbce8c8f99fd192778db787f140a369c6fcceacf14ec49acac560a6 |