Skip to main content

mpg321 wrapper for python - command line music player

Project description


mpyg321 is a simple python wrapper for mpg321. It allows you to easily play mp3 sounds in python, do basic operations on the music and implement callbacks for events like the end of a sound.


mpyg321 requires the installation of mpg321 software for reading mp3. This section describes the installation of the library on MacOS, Linux and Windows. For now, the library has only been tested on mac, but it should work on any platform.


$ brew install mpg321
$ pip3 install mpyg321


$ sudo apt-get install mpg321
$ pip3 install mpyg321


For windows installation, download mpg321 on the website: [Link] ( Make sure to rename the command to mpg321, and then run:

$ pip install mpyg321


Usage is pretty straight forward, and all the functionnalities are easily shown in the examples folder.

from mpyg321.mpyg321 import MPyg321Player()
player = MPyg321Player()

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for mpyg321, version 0.0.4
Filename, size File type Python version Upload date Hashes
Filename, size mpyg321-0.0.4-py3-none-any.whl (3.7 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size mpyg321-0.0.4.tar.gz (2.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page