Beispiel #1
0
def qr_url_for_google_play(package_id,
                           size=DEFAULT_MODULE_SIZE,
                           border=DEFAULT_BORDER_SIZE,
                           version=DEFAULT_VERSION,
                           image_format=DEFAULT_IMAGE_FORMAT):
    return make_qr_code_url(make_google_play_text(package_id),
                            size=size,
                            border=border,
                            version=version,
                            image_format=image_format)
Beispiel #2
0
def qr_url_for_youtube(video_id,
                       size=DEFAULT_MODULE_SIZE,
                       border=DEFAULT_BORDER_SIZE,
                       version=DEFAULT_VERSION,
                       image_format=DEFAULT_IMAGE_FORMAT):
    return make_qr_code_url(make_youtube_text(video_id),
                            size=size,
                            border=border,
                            version=version,
                            image_format=image_format)
Beispiel #3
0
def qr_url_for_sms(phone_number,
                   size=DEFAULT_MODULE_SIZE,
                   border=DEFAULT_BORDER_SIZE,
                   version=DEFAULT_VERSION,
                   image_format=DEFAULT_IMAGE_FORMAT):
    return make_qr_code_url(make_sms_text(phone_number),
                            size=size,
                            border=border,
                            version=version,
                            image_format=image_format)
Beispiel #4
0
def qr_url_for_email(email,
                     size=DEFAULT_MODULE_SIZE,
                     border=DEFAULT_BORDER_SIZE,
                     version=DEFAULT_VERSION,
                     image_format=DEFAULT_IMAGE_FORMAT):
    return make_qr_code_url(make_email_text(email),
                            size=size,
                            border=border,
                            version=version,
                            image_format=image_format)
Beispiel #5
0
def qr_url_for_wifi(wifi_dict,
                    size=DEFAULT_MODULE_SIZE,
                    border=DEFAULT_BORDER_SIZE,
                    version=DEFAULT_VERSION,
                    image_format=DEFAULT_IMAGE_FORMAT):
    wifi_config = make_wifi_text(wifi_dict=wifi_dict)
    return make_qr_code_url(wifi_config,
                            size=size,
                            border=border,
                            version=version,
                            image_format=image_format)
Beispiel #6
0
def qr_url_for_contact(contact_dict,
                       size=DEFAULT_MODULE_SIZE,
                       border=DEFAULT_BORDER_SIZE,
                       version=DEFAULT_VERSION,
                       image_format=DEFAULT_IMAGE_FORMAT):
    contact_as_mecard = make_contact_text(contact_dict=contact_dict)
    return make_qr_code_url(contact_as_mecard,
                            size=size,
                            border=border,
                            version=version,
                            image_format=image_format)
Beispiel #7
0
def qr_url_for_google_maps(latitude,
                           longitude,
                           size=DEFAULT_MODULE_SIZE,
                           border=DEFAULT_BORDER_SIZE,
                           version=DEFAULT_VERSION,
                           image_format=DEFAULT_IMAGE_FORMAT):
    return make_qr_code_url(make_google_maps_text(latitude=latitude,
                                                  longitude=longitude),
                            size=size,
                            border=border,
                            version=version,
                            image_format=image_format)
Beispiel #8
0
def qr_url_from_text(text,
                     size=DEFAULT_MODULE_SIZE,
                     border=DEFAULT_BORDER_SIZE,
                     version=DEFAULT_VERSION,
                     image_format=DEFAULT_IMAGE_FORMAT,
                     cache_enabled=DEFAULT_CACHE_ENABLED):
    """Wrapper for function :func:`~qr_code.qr_code.make_qr_code_url`"""
    return make_qr_code_url(text,
                            size=size,
                            border=border,
                            version=version,
                            image_format=image_format,
                            cache_enabled=cache_enabled)