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

This version
History Node

0.1.0

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
TinyUrl-0.1.0-py2.5.egg (3.2 kB) Copy SHA256 hash SHA256 Egg 2.5 Jan 8, 2009
TinyUrl-0.1.0.tar.bz2 (23.5 kB) Copy SHA256 hash SHA256 Source None Jan 8, 2009
TinyUrl-0.1.0.tar.gz (23.0 kB) Copy SHA256 hash SHA256 Source None Jan 8, 2009
TinyUrl-0.1.0.zip (24.9 kB) Copy SHA256 hash SHA256 Source None Jan 8, 2009

Supported by

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