Skip to main content

urllink

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

Installation

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.

Metadata

Release files for urllink 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for urllink 1.2.0
File Size Uploaded Provenance
urllink-1.2.0.tar.gz 3.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for urllink 1.2.0
File Interpreter ABI Platform
urllink-1.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 6.9 kB

Security for urllink 1.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page