Python client for go.debian.net and deb.li URL shortening service
Project description
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
--------------
>>> 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'
-------------
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
--------------
>>> 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'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file GoDebian_api-1.1.0.dev1.tar.gz.
File metadata
- Download URL: GoDebian_api-1.1.0.dev1.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4e4381c3d03b59ff49aab48f723db36c95cfc286a2b708df5e2fe76326c6d26a
|
|
| MD5 |
6fc5fa0bea7df23d8cce2d3a88302a4d
|
|
| BLAKE2b-256 |
f47808d1b89cd2cbaf62234d45c79273913de8b35de818236202996b135f7f04
|
File details
Details for the file GoDebian_api-1.1.0.dev1-py2.py3-none-any.whl.
File metadata
- Download URL: GoDebian_api-1.1.0.dev1-py2.py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a5160947a71ebd47b08c869d441ee843daef443442131705f5caeebdef115225
|
|
| MD5 |
9f1b5a7707ac534b7f3b0630ad8c5b72
|
|
| BLAKE2b-256 |
5ff7be68639e57740fd9e9bf51818acb7c03224100e029472064cb48d9da469e
|