taolib.testing.qrcode#

Submodules#

Functions#

create_qr_image(→ PIL.Image.Image)

create_qr_svg(→ str)

hex_to_rgb(→ tuple[int, int, int])

Package Contents#

taolib.testing.qrcode.create_qr_image(data: str, fg_color: str = '#7c3aed', bg_color: str = '#0f1117', size: int = 512, error_correction: str = 'H', module_style: str = 'square', logo_data: bytes | None = None, logo_size_pct: int = 20) PIL.Image.Image#
taolib.testing.qrcode.create_qr_svg(data: str, fg_color: str = '#7c3aed', bg_color: str = '#0f1117', size: int = 512, error_correction: str = 'H') str#
taolib.testing.qrcode.hex_to_rgb(hex_color: str) tuple[int, int, int]#