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

Uploaded Source

Built Distribution

yourls-1.2.3-py2.py3-none-any.whl (11.5 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for yourls-1.2.3.tar.gz
Algorithm Hash digest
SHA256 ec46cd2873f54c2e20976485adc2c5a61f8539eb03627acfbc9d154a6e9803c3
MD5 d8f62b3a674814c5b0cc10d3d31a3fd1
BLAKE2b-256 a4c68f8a43d7bedaf7e247dd1a32e6a6297c795cf58dd028654d2d54194be4e5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yourls-1.2.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 628dbd622f6a8d7acd1c447db77b46675e0c2b088d9d39088a1b28d66d45eab3
MD5 5e3806d79097496add0e5d45dab5d11c
BLAKE2b-256 d59ac1950161760c31753d5cf797dfc2053efc3460494a9b1b87cc16f073f51f

See more details on using hashes here.

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