Skip to main content

Play MP# 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.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.5

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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: PlaySongs-2021.1.0.5.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.5.tar.gz
Algorithm Hash digest
SHA256 221e9848d8cfafa58d3c5ad09a33d63923d9528d6d696ab5bd7f681816ce70af
MD5 2ac40fc7b901cf35b0a7c48b282f389f
BLAKE2b-256 b5fd1dd7748ad483bd3c0fed5531b65581873c6f78cd6c3470b4fcae2870ed21

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PlaySongs-2021.1.0.5-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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 f816d8c2e260882fa36609e314d741411be9ecfb997e7426eb9625a3d1d87449
MD5 345d0cbbeb3bae3efc4a9894c1406c30
BLAKE2b-256 e783544782575b6061d245bfe19e4f705584d68f559cdefc418e76e18fb50c9a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page