CtrlK
CommunityDocumentationLog inGet started
Tessl Logo

tessl/pypi-qrcode

QR Code image generator with customizable image formats, error correction levels, and styling options

42%

Overall

Evaluation42%

0.86x

Agent success when using this tile

Overview
Eval results
Files

task.mdevals/scenario-2/

Product QR Code Generator

A utility for generating product QR codes that encode product information and save them as PNG images with custom colors.

Capabilities

QR Code Generation and PNG Output

Generate QR codes for product URLs and save them as PNG image files. The QR codes should be generated with appropriate size and border settings for easy scanning.

  • Generates a QR code for the URL "https://example.com/product/12345" and saves it to "product_qr.png" @test
  • Generates a QR code for the URL "https://shop.example.com/item/ABC-789" and saves it to "item_qr.png" @test

Custom Color Configuration

Generate QR codes with custom foreground and background colors to match branding requirements. The output should be in PNG format with the specified colors applied.

  • Generates a QR code with blue foreground (RGB: 0, 0, 255) and white background (RGB: 255, 255, 255) for "https://example.com/blue" and saves to "blue_qr.png" @test
  • Generates a QR code with red foreground (RGB: 255, 0, 0) and light yellow background (RGB: 255, 255, 200) for "https://example.com/red" and saves to "red_qr.png" @test

Box Size and Border Customization

Generate QR codes with configurable box sizes and border widths to control the overall dimensions and appearance of the output PNG images.

Implementation

@generates

API

def generate_product_qr(url: str, filename: str,
                       fill_color: tuple = (0, 0, 0),
                       back_color: tuple = (255, 255, 255),
                       box_size: int = 10,
                       border: int = 4) -> None:
    """
    Generate a QR code for a product URL and save it as a PNG file.

    Args:
        url: The product URL to encode in the QR code
        filename: The output PNG filename
        fill_color: RGB tuple for the QR code foreground color (default: black)
        back_color: RGB tuple for the QR code background color (default: white)
        box_size: Size of each box in pixels (default: 10)
        border: Border size in boxes (default: 4)

    Returns:
        None (saves the PNG file to disk)
    """
    pass

Dependencies { .dependencies }

qrcode { .dependency }

Provides QR code generation with PIL/Pillow PNG output support.

@satisfied-by

Install with Tessl CLI

npx tessl i tessl/pypi-qrcode@7.4.0
What are skills?

tile.json