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
Metadata
Release files for python-shorturl 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| python-shorturl-0.0.4.tar.gz | 3.7 kB | Without provenance | Details for python-shorturl-0.0.4.tar.gz |
Release files / python-shorturl-0.0.4.tar.gz
| Download URL | python-shorturl-0.0.4.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
92d90b45756f587b71ea00bfe82145b7a32ff73825642c598ebc71812d3d7775
|
|
BLAKE2b-256 checksum How to use checksums |
2257bb850ba3666534cc6ebb79edc096039dd271e31c3c3d331747a3c03f1471
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for python-shorturl 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.