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.1.0.tar.gz
(11.1 kB
view hashes)
Built Distribution
yourls-1.1.0-py2.py3-none-any.whl
(15.2 kB
view hashes)
Close
Hashes for yourls-1.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ad4f5b23d2bd7a1b0a1c654443251b8bea7c41708a423b15b6c9a44bc25a928 |
|
MD5 | 5b65e4d67882c7e4c3fdb6fc31c99451 |
|
BLAKE2b-256 | 6e3e064c853725a7c77c94aaa63280654ffaee0dc6bfc60c3cf2c8f61c04e8ab |