Skip to main content

A simple library to generate short URLs from long URLs

Project description

Shortner - A Python URL Shortener Library

Shortner is a lightweight Python library that converts long URLs into short, unique URLs using hashing.

🚀 Features

  • Generate short URLs from long URLs
  • Fast and deterministic output
  • Lightweight with zero dependencies

📥 Installation

pip install shortner
 from shortner import generate_short_url

long_url = "https://example.com/very/long/url"
short_url = generate_short_url(long_url)
print("Short URL:", short_url)
#\x00 \x00s\x00h\x00o\x00r\x00t\x00n\x00e\x00r\x00
\x00
\x00

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

short_url_generator-0.1.0.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

short_url_generator-0.1.0-py3-none-any.whl (2.0 kB view details)

Uploaded Python 3

File details

Details for the file short_url_generator-0.1.0.tar.gz.

File metadata

  • Download URL: short_url_generator-0.1.0.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for short_url_generator-0.1.0.tar.gz
Algorithm Hash digest
SHA256 21ab5be1e3758b013d431c7ba42d475399cbe70ece4bd2acd04c0194f2f23c79
MD5 f5c908b7c843ed204e59eb14713ae270
BLAKE2b-256 ce7cd7631e31cde74a15534ae484b732a040a0b948eac2ade4ae87bd5b8dde58

See more details on using hashes here.

File details

Details for the file short_url_generator-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for short_url_generator-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 afe47ecbdd89eaa0bb33a706589d7f69ea2025b843387497e7a5ba64e900c742
MD5 7c0027f90cf26cdd8e76469e265b832f
BLAKE2b-256 071c4e6183b03a6e50dc1c6334757f84168b2c8f13226c8fa0aa434a93f1ebaf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page