This is a simple Python script that interfaces with a Spotify account and the Pirate Audio line out HAT for a Pi Zero 2W. It displays the currently playing album on screen, and lets you pause, play and skip what is currently playing. I'm using Raspotify to enable the Pi to act as a Spotify Connect target.
darthmorf/pirateaudio-spotipy
Python program to interface between the pirate radio audio hat and spotify
Python