Skip to main content

too-short-url

pytestpythonCode style: blackLicense: MITPyPI version

shorturl based on too.st

Install it

pip install too-short-url

# or pip install git+https://github.com/ffreemt/too-short-url
# or clone the repo and

Use it

Command line

too-st http://baid.com
# too.st/b

With in python

from too_short_url import too_st

print(too_st("http://baidu.com"))
# too.st/b

Docs

too-st --help

Usage: too-st [OPTIONS] URL

  Generate too.st short url.

  e.g.

  * too-st baidu.com  # https://too.st/b

  * too-st baidu.com -k abc  # https://too.st/b

  * too-st baidu.com -k abc -b  # https://too.st/abc or https://too.st/b
  dependent on whether https://too.st/abc is already taken or reserved by th
  admin of too.st.

Arguments:
  URL  url to be shortened  [required]

Options:
  -k, --keyword, --kw KEYWORD     desired keyword, e.g. https://too.st/abc for
                                  KEYWORD set to abc
  -b, --best-effort, --besteffort
                                  whether to try hard to generaet the desired
                                  shorturl https://too.st/KEYWORD
  -v, -V, --version               Show version info and exit.
  --help                          Show this message and exit.

Download files

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

Source Distribution

too-short-url-0.1.0.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

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

too_short_url-0.1.0-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file too-short-url-0.1.0.tar.gz.

File metadata

  • Download URL: too-short-url-0.1.0.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.8.5 Windows/10

File hashes

Hashes for too-short-url-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ebeea3fc5ea8acd91daa06834fc2350074e90e9a13d0470dd6147d27099856e5
MD5 8b6d984b9057b4e143fc10cf1829242b
BLAKE2b-256 7d1045749476da522c0e55bcbf675e7e649463792a81f0d359df52a58376fc36

See more details on using hashes here.

File details

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

File metadata

  • Download URL: too_short_url-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.8.5 Windows/10

File hashes

Hashes for too_short_url-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d367c3e4f96545bb8183d0085323edc182361cf1f06289a305bfc457be79b176
MD5 b78fa9eb4b046d470e5abb6db6a83ef2
BLAKE2b-256 e499f4ff04dd9054fa1f8a18cac6b110a6bcbff0dae251423c4762e964868ddc

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Supported by

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