This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description
===============
Python-ShortUrl 0.0.4
===============

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

Supports the following services:

-tinyurl.com

-bit.ly, j.mp, bitly.com (must use login and apikey)

-is.gd


Installation
============

To install Python-ShortUrl:

pip install python-shorturl


Alternatively:

wget https://github.com/appscluster/python-shorturl/archive/master.zip

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

cd python-shorturl-master/

python setup.py install


Usage
=====

Command line:

Usage: shorturlpy.py [-u] [-d] [-l] [-a]

Options:

-u --url Full URL http://www.google.co.uk
-d --default Any, tinyurl, is.gd, bitly
-l --login bitly Login
-a --apikey bitly apikey

Examples:

default:
python -m shorturlpy.shorturlpy -u http://www.appscluster.com

tinyurl:
python -m shorturlpy.shorturlpy -u http://www.appscluster.com -d tinyurl

is.gd:
python -m shorturlpy.shorturlpy -u http://www.appscluster.com -d is.gd

bitly:
python -m shorturlpy.shorturlpy -u http://www.domain.co -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('http://www.appscluster.com')

print loadurl.ShortenUrl('http://www.appscluster.com', 'tinyurl')

print loadurl.ShortenUrl('http://www.appscluster.com', 'is.gd')

print loadurl.ShortenUrl('http://www.appscluster.com', '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 https://twitter.com/AbdulHamidCEO
Release History

Release History

0.0.4

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.0.3

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
python-shorturl-0.0.4.tar.gz (3.7 kB) Copy SHA256 Checksum SHA256 Source Jan 30, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting