OUDON / rmqrcode-python

Rectangular Micro QR Code (rMQR Code) Generator in Python
https://pypi.org/project/rmqrcode/
Other
158 stars 16 forks source link

BREAKING CHANGE: feat: Support multiple segment #23

Closed OUDON closed 2 years ago

OUDON commented 2 years ago

This PR includes BREAKING CHANGE.

Before

qr = rMQR(version, error_correction_level)
qr.make("123456", encoder_class=encoder.NumericEncoder)

After

qr = rMQR(version, error_correction_level)
qr.add_segment("123", encoder_class=encoder.NumericEncoder)
qr.add_segment("Abc", encoder_class=encoder.ByteEncoder)
qr.make()