Skip to main content

Python client for YOURLS.

Project description

PyPI Version Documentation Travis Coverage Python Version MIT License

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


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.0.tar.gz (11.7 kB view details)

Uploaded Source

Built Distribution

yourls-1.2.0-py2.py3-none-any.whl (15.8 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file yourls-1.2.0.tar.gz.

File metadata

  • Download URL: yourls-1.2.0.tar.gz
  • Upload date:
  • Size: 11.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for yourls-1.2.0.tar.gz
Algorithm Hash digest
SHA256 62671eb608f32e931d1a513a55b92f07e651f5cc64ea866f2b77d9b508675af1
MD5 c28c697eea9004e06c8548fd9c41523e
BLAKE2b-256 2715977c8aea1b75d6c0e267c3fcafb6d56016533061fae4aa3154db0138eb68

See more details on using hashes here.

Provenance

File details

Details for the file yourls-1.2.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for yourls-1.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7b4532f86505b5a66bac7f61e9cee3c83418cbb72f6c34dbbba9c98527103a00
MD5 7121f941375e75b67648443837946dbd
BLAKE2b-256 e22e2451274231f9a2803bbe48bf8c03adea9a40cb4e44163a5b8fed97faf450

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page