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)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| urllink-1.2.0.tar.gz | 3.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| urllink-1.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.9 kB
Release files / urllink-1.2.0.tar.gz
| Download URL | urllink-1.2.0.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6f0a3fe40435f3b9a59f7fb841e3e2b7dd44dcf341f39a290e22f81dafe4be34
|
|
BLAKE2b-256 checksum How to use checksums |
212d7c38031cb5f538bf9aede78958440a9eb623f6710aa74823fd879b5ac27b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|
Release files / urllink-1.2.0-py3-none-any.whl
| Download URL | urllink-1.2.0-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4ea8dba32d46f101e9097cc96d29302668d59df2ebabf11ba415ecc59a80a234
|
|
BLAKE2b-256 checksum How to use checksums |
0cab4a2857cfa83a7354e54cbee32bccaac9d2946a2cc8ebd9a5949846c968be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|
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.