PyMusicPlayer
An MP3 music player interface for Python with builtin playback and queue functionality built using Pygame mixer
Installation
Install via pip
$ pip install pymusicplayer
Usage
from pymusicplayer import MusicPlayer
mp = MusicPlayer()
add_song(filename, song_name)- Add song to queue by filename and sets song name (defaults to filename)remove_song(index)- Remove song at index of queueget_current_song()- Return name of currently loaded songget_queue()- Return names of songs in queueget_loop_queue()- Return if queue will loopset_loop_queue()- Set if queue should loopshuffle()- Shuffle songs in queueis_playing()- Return if music is currently playingplay()- Start playing loaded musicpause()- Pause loaded musicrestart()- Restart loaded musicget_volume()- Returns volume of musicset_volume(volume)- Sets volume of music to value in interval [0, 100]get_pos()- Get current position of loaded music in millisecondsset_pos(pos)- Set position of loaded music in millisecondschoose_song(index)- Load song at index in queuenext_song()- Load next song in queueprevious_song()- Load previous song in queueskip(amount)- Skip amount (in milliseconds) in music (positive for forward, negative for rewind)
Metadata
Release files for PyMusicPlayer 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| PyMusicPlayer-1.0.0.tar.gz | 3.0 kB | Without provenance | Details for PyMusicPlayer-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| PyMusicPlayer-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for PyMusicPlayer-1.0.0-py3-none-any.whl |
Total release size: 7.2 kB
Release files / PyMusicPlayer-1.0.0.tar.gz
| Download URL | PyMusicPlayer-1.0.0.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
abd03655d5ef36e1dff10186f70a014664cc1b7939d3fe4ae861c11059e22913
|
|
BLAKE2b-256 checksum How to use checksums |
64758685d2e29ff724a039d113882e4e62405422fb8457e4c476274f7a5c9662
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.1
|
Release files / PyMusicPlayer-1.0.0-py3-none-any.whl
| Download URL | PyMusicPlayer-1.0.0-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d9312aea896cb78e758bff481fb7d8bb823411b11081ef2bb9bb78de6c8db102
|
|
BLAKE2b-256 checksum How to use checksums |
2e72aef24caa7f1654540ab0428763f6497234fed068e8e7fd401ad5a98773d6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.1
|
Security for PyMusicPlayer 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.