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 "playsongs.playsongs import PlaySongs; PlaySongs('/home/username/Music', repeat = 10000000, shuffle = True)"

Changelog

2021.1,0,2

  • Removed system exit at the end so it won’t kill Python runtime.

2021.1,0,1

  • Initial release.

Current version: 2021.1.0.2

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

Uploaded Source

Built Distribution

PlaySongs-2021.1.0.2-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: PlaySongs-2021.1.0.2.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.9.1 Darwin/20.3.0

File hashes

Hashes for PlaySongs-2021.1.0.2.tar.gz
Algorithm Hash digest
SHA256 a0d067be7512f6df4e69bc1e78c2598a464064e1389a7d61841d490a33f2e40b
MD5 f98384d9419243ca9667b3b6cfca2f18
BLAKE2b-256 a387230785180840d4873bb408db26a77d8a116f9a63662a071bb93b6ea637fb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PlaySongs-2021.1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 2.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.9.1 Darwin/20.3.0

File hashes

Hashes for PlaySongs-2021.1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 25d9ade6168d3e56a1105618595e703e6fcfdcb91c24fabaccf8998e0773dc92
MD5 2903cef2e6f02803976409b1d3f370c3
BLAKE2b-256 d76526b8e36ac0926783a393c5d4f70102d8f49face465d4576e5311945f224b

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