Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Python url shortner library for, and

Project Description

Python-ShortUrl 0.0.4

A python library to shorten urls using one of three url shortening services

Supports the following services:,, (must use login and apikey)


To install Python-ShortUrl:

pip install python-shorturl



7z x ( if you don't have 7z : sudo apt-get install p7zip-full )

cd python-shorturl-master/

python install


Command line:

Usage: [-u] [-d] [-l] [-a]


-u --url Full URL
-d --default Any, tinyurl,, bitly
-l --login bitly Login
-a --apikey bitly apikey


python -m shorturlpy.shorturlpy -u

python -m shorturlpy.shorturlpy -u -d tinyurl
python -m shorturlpy.shorturlpy -u -d

python -m shorturlpy.shorturlpy -u -d bitly -l xyz_login -a zyx_key

Note: replace xyz_login and zyx_key with your own bitly account details

Within your application:

import shorturlpy

loadurl = shorturlpy.ShortUrlPy()

print loadurl.ShortenUrl('')

print loadurl.ShortenUrl('', 'tinyurl')

print loadurl.ShortenUrl('', '')

print loadurl.ShortenUrl('', 'bitly', 'xyz_login', 'zyx_key')

Note: replace xyz_login and zyx_key with your own bitly account details

Tested on Python 2.7

Developed by Abdul Hamid

Release History

This version
History Node


History Node


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
(3.7 kB) Copy SHA256 Hash SHA256
Source None Jan 30, 2016

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers