Metadata-Version: 2.4
Name: urllink
Version: 1.1.0
Summary: A Python library for URL shortening and QR code generation.
Home-page: https://urllink.site
Author: Muhammad Hamza Shahzad
Author-email: myhamza.204@gmail.com
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests
Dynamic: author
Dynamic: author-email
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license-file
Dynamic: requires-dist
Dynamic: summary

# urllink

`urllink` is a simple Python library that allows you to shorten URLs and generate QR codes using online APIs.

## Features

- 🔗 URL Shortener via `shrtco.de` API
- 📷 QR Code Generator via `goqr.me` API
- 🌐 Internet connectivity check before making API calls

## Installation

```bash
pip install urllink

Example Usage

from urllink import shorten_url, generate_qrcode

# Shorten a URL
short_url = shorten_url("https://example.com")
print("Shortened URL:", short_url)

# Generate a QR code
qr_path = generate_qrcode("https://example.com", save_path="output/qrcode.png", size=300)
print("QR Code saved to:", qr_path)

Generates a QR code from the provided text or URL.
Function Reference
Parameters:

data (str, required): The content to encode into the QR code.

save_path (str, optional): Full path (including filename) to save the image.
Default: "qrcode.png" saved in the current directory.

size (int, optional): The size of the QR code image in pixels.
Default: 500

Returns:

The file path where the QR code image was saved.

An error message string if generation fails.

