How to generate a EAN-8 barcode as a PNG in Python

It is quite a process to set up EAN-8 barcode generation from the ground up. So why waste your time when an API can just do it for you…