Time to listen to music!

Now, we have all the pieces we need to start building the terminal player. We have the pytify module, which provides a wrapper around the Spotify RESP API and will allow us to search for artists, albums, tracks, and even control the Spotify client running on a mobile phone or a computer.

The pytify module also provides two different types of authentication—client credentials and authorization codeand in the previous sections, we implemented all the infrastructures necessary to build an application using curses. So, let's glue all the parts together and listen to some good music.

On the musicterminal directory, create a file called app.py; this is going to be the entry point for our application. We start by adding ...

Get Python Programming Blueprints now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.