Metadata-Version: 2.0
Name: GoDebian-api
Version: 1.1.0.dev1
Summary: Python client for go.debian.net and deb.li URL shortening service
Home-page: https://github.com/ninjatrench/GoDebian_api
Author: Harsh Daftary
Author-email: info@securitylabs.in
License: MIT
Download-URL: https://github.com/ninjatrench/GoDebian_api/tarball/master
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.2
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Dist: requests

.. image:: https://img.shields.io/badge/build-passing-green.svg
    :target: https://github.com/ninjatrench/GoDebian_api

.. image:: https://img.shields.io/badge/version-dev-green.svg
    :target: https://github.com/ninjatrench/GoDebian_api

.. image:: https://img.shields.io/badge/with%20love%20from-india-ff69b4.svg
    :alt: Make In India <3


Documentation and Wiki
-------------
Python client for go.debian.net and deb.li URL shortening service

Full documentation is available at https://wiki.debian.org/deb.li


Features
--------

- Consume deb.li and go.debian.net API | URL shoretening service
- Check for IP whitelist for this service
- Add new URL against randomly generated key
- Add static URL against pre-defined KEY
- Get existing URL via KEY
- Generate preview URL
- Pure Python Module
- Works with Python 2.6+ and 3.2+
- No dependencies


Usage Examples
--------------

.. code-block:: pycon

    >>> import GoDebian
    >>> a = GoDebian.GoDebianApi()

    >>> a.add_url("http://www.debian.org")
    'http://go.debian.net/3xEIl'

    >>> a.get_url("3xEIl")
    'http://www.debian.org'

    >>> a.get_preview_url("3xEIl")
    'http://go.debian.net/p/3xEIl'

    >>> a.add_static_url("http://harshdaftary.com", "harsh")
    'http://go.debian.net/harsh'

    >>>a.get_url("harsh")
    'http://harshdaftary.com'


