skip to navigation
skip to content

Not Logged In

TinyUrl 0.1.0

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

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!

 
File Type Py Version Uploaded on Size
TinyUrl-0.1.0-py2.5.egg (md5) Python Egg 2.5 2009-01-08 3KB
TinyUrl-0.1.0.tar.bz2 (md5) Source 2009-01-08 22KB
TinyUrl-0.1.0.tar.gz (md5) Source 2009-01-08 22KB
TinyUrl-0.1.0.zip (md5) Source 2009-01-08 24KB
  • Downloads (All Versions):
  • 8 downloads in the last day
  • 91 downloads in the last week
  • 590 downloads in the last month