RPi_7SegDisplay is a python package for displaying messages on an eight-digit seven-segment display connected to a Raspberry Pi.
pip install RPi_7SegDisplay
RPi_7SegDisplay depends upon the RPi.GPIO library, which should already be installed if you are using Raspbian.
Note: RPi_7SegDisplay accepts BCM numbers when initializing the GPIO pins. See: https://sourceforge.net/p/raspberry-gpio-python/wiki/BasicUsage/#pin-numbering
from RPi_7SegDisplay import Display
data_pin=2
clock_pin=3
latch_pin=4
display = Display(data_pin, clock_pin, latch_pin)
display.show('12345678')