Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

musicplayer

Screenshot of the script running on Alacritty

Screenshot of the script running on Alacritty. The song is from here.

A Python 3 console-based playlist music player!

How to Run

Install the needed Python 3 libraries in requirements.txt, usually done using the following commands:

Installing dependencies

Linux and Mac OSX

Non-externally managed environment
$ python3 -m pip install -r requirements.txt
Externally managed environment

If your Python 3 is managed by your operating system, then run the following commands, in order, to create a virtual environment and actually load into it:

$ python3 -m venv venv
$ source ./venv/bin/activate

And then you can run the command earlier for non-externally managed environments.

Windows

Run the same command as non-externally managed Linux environments, without the 3 at the end of python if that's causing issues.

> python -m pip install -r requirements.txt

Script-related setup

Make sure to rename playlist_.py to playlist.py so that musicplayer.py imports it, and then replace the example data in playlist_.py with the songs you'd like to put in your playlist!

Actually running musicplayer.py

Once you're in the virtual environment (if you made one, or just using your system's environment), run the following command, depending on your OS:

Linux/OSX

$ python3 musicplayer.py

Windows

> python3 musicplayer.py

Bugs

Wide character issues

Wide characters may mess up the screen. If the screen looks jumbled on your end, consider checking if your playlist has wide characters (e.g. em dash, CJK, etc.) and replace them with non-wide characters.

License

Released under the MIT License. See the file named LICENSE.

Releases

Packages

Contributors

Languages