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

Uploaded Source

Built Distribution

yourls-1.1.1-py2.py3-none-any.whl (15.2 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for yourls-1.1.1.tar.gz
Algorithm Hash digest
SHA256 a180a3eb3c84490eb1a3e269754aa31de48a98c843257c69100a8d72e685eab7
MD5 78c0e416260e1bb4195d8f19bf5fd808
BLAKE2b-256 408deb76c9971ce7b748dc860781ba6d6a84e222016d95cc6db877d396d7864d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yourls-1.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a1e3c24680fa250c0146ca7176bcd0dda061dec8309da98772338ba7eb04ce96
MD5 ee281f9b843fd8f22ea2c13c66de5fd9
BLAKE2b-256 498308a9d2e0c1fbca4871a29eb507699033c3db6120c02c4e95830204e0c2e5

See more details on using hashes here.

Supported by

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