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.2.2.post1.tar.gz
(21.2 kB
view hashes)
Built Distribution
Close
Hashes for yourls-1.2.2.post1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e0d157178fd48d5cf37b2f530b5aa4ca32ce2e5c85be6d51796cb893f6410f3 |
|
MD5 | aa88fde0d74c53247d5a7dbf79a18d1b |
|
BLAKE2b-256 | b72ae8dfea831822c44ce6851b05ebad705ec24fe08b12f6b357eb9dac500b8a |