too-short-url
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.
Metadata
Release files for too-short-url 0.1.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 | |
|---|---|---|---|
| too-short-url-0.1.0.tar.gz | 5.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| too_short_url-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.8 kB
Release files / too-short-url-0.1.0.tar.gz
| Download URL | too-short-url-0.1.0.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ebeea3fc5ea8acd91daa06834fc2350074e90e9a13d0470dd6147d27099856e5
|
|
BLAKE2b-256 checksum How to use checksums |
7d1045749476da522c0e55bcbf675e7e649463792a81f0d359df52a58376fc36
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.8.5 Windows/10
|
Release files / too_short_url-0.1.0-py3-none-any.whl
| Download URL | too_short_url-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d367c3e4f96545bb8183d0085323edc182361cf1f06289a305bfc457be79b176
|
|
BLAKE2b-256 checksum How to use checksums |
e499f4ff04dd9054fa1f8a18cac6b110a6bcbff0dae251423c4762e964868ddc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.8.5 Windows/10
|