Skip to main content

A fun and easy command-line tool for shortening URLs using TinyURL.

Project description

๐Ÿ”— short-url-cli

Make your links short and sweet! ๐Ÿฌโœจ A fun and easy command-line tool for shrinking (and unshrinking!) your URLs. Because who has time for long links? ๐Ÿ˜Ž


๐Ÿš€ Installation

Ready to get started? Just run this in your terminal (Python 3.9+ required):

pip install short-url-cli

Thatโ€™s it! Youโ€™re all set. ๐ŸŽ‰


๐Ÿ•น๏ธ Usage

After installation, you'll have a brand new superpower: the short-url-cli command! ๐Ÿฆธ

โœ‚๏ธ Shorten a single URL

short-url-cli https://example.com

Sample output:

Short URL: http://tinyurl.com/abc123

๐Ÿ”— Shorten multiple URLs at once

Want to shorten multiple URLs? Use the --multi flag with comma-separated URLs:

short-url-cli --multi https://example.com,https://google.com,https://github.com

Sample output:

                    Shortened URLs
โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”“
โ”ƒ Source URL          โ”ƒ Short URL                     โ”ƒ Warning โ”ƒ
โ”กโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ฉ
โ”‚ https://example.com โ”‚ http://tinyurl.com/abc123     โ”‚         โ”‚
โ”‚ https://google.com  โ”‚ http://tinyurl.com/def456     โ”‚         โ”‚
โ”‚ https://github.com  โ”‚ http://tinyurl.com/ghi789     โ”‚         โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐Ÿ“‹ Important notes

  • URLs must include a scheme (http:// or https://)
  • For multiple URLs, use commas only (no spaces!)
  • Uses TinyURL service for shortening
  • Invalid URLs will be marked in the output table

๐Ÿค” Why use short-url-cli?

  • Tired of copy-pasting long, ugly links? ๐Ÿ˜ฉ
  • Want to look cool in your group chat? ๐Ÿ˜Ž
  • Need to save precious characters on social media? ๐Ÿฆ

short-url-cli has you covered! ๐ŸŽฏ


๐Ÿง‘โ€๐Ÿ’ป Requirements

  • Python 3.9 or higher

๐Ÿ“œ License

MIT License. Go wild, but donโ€™t blame us if your links get too short to find! ๐Ÿ˜œ

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_cli-0.1.0.tar.gz (4.8 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_cli-0.1.0-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: short_url_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.14

File hashes

Hashes for short_url_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 26ac70dd42ec1327db3dc1852f890ac4605213faad5fb15a73d351991fb04a1f
MD5 42677513f36c1ec5846a3b6c43611a05
BLAKE2b-256 010690df6ee2fa3e000282a4d5991cca27b4f3c2cb3313f6e5458002a0c7c42f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for short_url_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2ceaaed18fc129b0c3e15a57141524def72f79efff9862527d4a15c4706bff4d
MD5 fdfc1e7ec130b7a25856a7c3bdabae3b
BLAKE2b-256 d9113277ed2b5f51cfdfcf3c7e784700d8dd9f1a860fd65cf7ff25d83594863b

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