qr_code/qrcode/maker.py
def make_qr_code_image(text, image_factory, qr_code_options=QRCodeOptions()):
    """
    Generates an image object (from the qrcode library) representing the QR code for the given text.

    Any invalid argument is silently converted into the default value for that argument.
    """

    valid_version = _get_valid_version_or_none(qr_code_options.version)
    valid_size = _get_valid_size_or_default(qr_code_options.size)
    valid_error_correction = _get_valid_error_correction_or_default(qr_code_options.error_correction)
    import qrcode
    qr = qrcode.QRCode(
        version=valid_version,
        error_correction=valid_error_correction,
        box_size=valid_size,
        border=qr_code_options.border
    )
    qr.add_data(force_text(text))
    if valid_version is None:
        qr.make(fit=True)
    return qr.make_image(image_factory=image_factory)

    Generates an image object (from the qrcode library) representing the QR code for the given text.

    Any invalid argument is silently converted into the default value for that argument.
    
Generates an image object (from the qrcode library) representing the QR code for the given text.
Any invalid argument is silently converted into the default value for that argument.
Generates an image object ( from the qrcode library ) representing the QR code for the given text . Any invalid argument is silently converted into the default value for that argument .
def make_qr_code_image(text, image_factory, qr_code_options=QRCodeOptions()):
    valid_version = _get_valid_version_or_none(qr_code_options.version)
    valid_size = _get_valid_size_or_default(qr_code_options.size)
    valid_error_correction = _get_valid_error_correction_or_default(qr_code_options.error_correction)
    import qrcode
    qr = qrcode.QRCode(
        version=valid_version,
        error_correction=valid_error_correction,
        box_size=valid_size,
        border=qr_code_options.border
    )
    qr.add_data(force_text(text))
    if valid_version is None:
        qr.make(fit=True)
    return qr.make_image(image_factory=image_factory)
def make_qr_code_image ( text , image_factory , qr_code_options = QRCodeOptions ( ) ) : valid_version = _get_valid_version_or_none ( qr_code_options . version ) valid_size = _get_valid_size_or_default ( qr_code_options . size ) valid_error_correction = _get_valid_error_correction_or_default ( qr_code_options . error_correction ) import qrcode qr = qrcode . QRCode ( version = valid_version , error_correction = valid_error_correction , box_size = valid_size , border = qr_code_options . border ) qr . add_data ( force_text ( text ) ) if valid_version is None : qr . make ( fit = True ) return qr . make_image ( image_factory = image_factory )
Generates an image object (from the qrcode library) representing the QR code for the given text.
Generates an image object ( from the qrcode library ) representing the QR code for the given text .
"""
    Generates an image object (from the qrcode library) representing the QR code for the given text.

    Any invalid argument is silently converted into the default value for that argument.
    """
text
image_factory
qr_code_options