This repository contains two examples of controlling a seven-segment display using Python and a Raspberry Pi.
Drive the display directly using 7 GPIO pins. It is accompanied by a blog post.
Control the display through a shift register. This example reduces the required GPIO pins from 7 to 3.