Skip to main content

super tiny library and command-line interface to tinyurl.com

Project description

The TinyUrl package provides a few useful functions for use from within python code:

>>> import tinyurl
>>> tinyurl.create_one('http://google.com/')
'http://tinyurl.com/8kp'

>>> for u in tinyurl.create('http://google.com/', 'http://meatballhat.com/'):
...    print u
...
http://tinyurl.com/8kp
http://tinyurl.com/7qg8g7

Additionally, a command-line interface is provided for general use, as in shell scripts or <whatever>…

$ export GOOGLE_URL="`tinyurl http://google.com/`"
$ echo $GOOGLE_URL
http://tinyurl.com/8kp

Much love to the folks at tinyurl.com!

Project details


Release history Release notifications

Download files

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

Files for TinyUrl, version 0.1.0
Nom du fichier, taille File type Version de Python Date de publication Hashes
Nom du fichier, taille TinyUrl-0.1.0-py2.5.egg (3.2 kB) File type Egg Version de Python 2.5 Date de publication Hashes View hashes
Nom du fichier, taille TinyUrl-0.1.0.tar.bz2 (23.5 kB) File type Source Version de Python Aucune Date de publication Hashes View hashes
Nom du fichier, taille TinyUrl-0.1.0.tar.gz (23.0 kB) File type Source Version de Python Aucune Date de publication Hashes View hashes
Nom du fichier, taille TinyUrl-0.1.0.zip (24.9 kB) File type Source Version de Python Aucune Date de publication Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page