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.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.4

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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: PlaySongs-2021.1.0.4.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.4.tar.gz
Algorithm Hash digest
SHA256 7aedc78e1d3daf744d363821006ed9dcb635edea3c65b0520e7fd5abf5b0aec8
MD5 ad496050b420a8ebe5f4747535a03a56
BLAKE2b-256 6abc0e23efc86eec0132ad62594c0977247bce60a209dd43d809e4f4c6a7d58e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PlaySongs-2021.1.0.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d8cf2d971141bf0f651d9734777a2e7eb632abf758b1f10ec4bf20461e6115f3
MD5 82e3e5463d393e01b21b643ce2d66553
BLAKE2b-256 175a01ed0ecad0d0ef8cde144ad3eb24aebdcf2a2ce161d92b337092ac5e44fb

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