This Segno plugin can change the QR code's black modules into custom shapes instead of squares.
A black image with a transparent background.
pip3 install qrcode-other-pattern
import segno qr_code = segno.make('https://ferdinandsilva.com') new_pattern = qr_code.to_other_pattern( scale=10, border=2, file_pattern='pattern.png', dark='orange', light='blue', ) new_pattern.save('example.png')