Python client for YOURLS.
Project description
Installation
$ pip install yourls
Example
>>> from yourls import YOURLSClient
>>> yourls = YOURLSClient('http://example.com/yourls-api.php', signature='6f344c2a8p')
>>> yourls.shorten('http://google.com')
ShortenedURL(
shorturl='http://example.com/abcde',
url='http://google.com',
title='Google',
date=datetime.datetime(2015, 10, 31, 14, 31, 4),
ip='203.0.113.0',
clicks=0,
keyword='abcde')
Documentation
For in-depth information, visit the documentation!
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
yourls-1.0.1.tar.gz
(8.2 kB
view hashes)
Built Distribution
yourls-1.0.1-py2.py3-none-any.whl
(11.0 kB
view hashes)
Close
Hashes for yourls-1.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a6d4d15f734c44927ffabc33e1425948e17508d0ed4f49fd18a56d9bc0b9355 |
|
MD5 | 78b7c58d674a31a1cce868237fca212c |
|
BLAKE2b-256 | 12a1f208d77bd7ba2d2a8d0a4b9b760c7c55f7e6a88d67d43714a9e11425ef70 |