Skip to content
🔌 A Python lib to consume the most used shorteners APIs (WIP)
Python Makefile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Update pythonpackage.yml Oct 17, 2019
docs docs: Update BaseShortener docstrings (#141) Oct 20, 2019
pyshorteners Update bitly API from 3 to 4 (#131) Nov 18, 2019
tests
.gitignore
.pre-commit-config.yaml
CHANGELOG
CODE_OF_CONDUCT.md
CONTRIBUTING.md
LICENSE
MANIFEST.in fix manifest and setup Jul 23, 2015
Makefile
README.md feat: Generate docs with `make docs` (#138) Oct 20, 2019
example.py
setup.cfg
setup.py

README.md

THIS DOC IS FOR THE UPCOMING VERSION. DO NOT USE THE EXAMPLE CODE YET! For the old usage, please refer to this comment

   logo
pyshorteners


   Travis    

A simple URL shortening Python Lib, implementing the most famous shorteners.

Installing

pip install pyshorteners

Testing

make test

Documentation

Use Sphinx to compile the documentation.

make docs
# Open `docs/_build/html/index.html` in web browser

Usage

Simple example

import pyshorteners

s = pyshorteners.Shortener()
print(s.tinyurl.short('www.google.com'))
# prints 'http://tinyurl.com/HASH'

Currently Available Shorteners

  • adfly
  • bitly
  • chilpit
  • clckru
  • dagd
  • isgd
  • nullpointer
  • osdb
  • owly
  • qpsru
  • post
  • soogd
  • tinycc
  • tinyurl
  • gitio

Please checkout the docs for more info and examples on how to use them.

You can’t perform that action at this time.