{"library":"pyshorteners","title":"PyShorteners","description":"A Python library that wraps and consumes the most popular URL shortener APIs, including TinyURL, Bitly, and others. Current version 1.0.1, released in 2021; development appears stalled but library is functional. Supports Python 3.6+.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install pyshorteners"],"cli":null},"imports":["import pyshorteners\ns = pyshorteners.Shortener()"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import pyshorteners\n\ns = pyshorteners.Shortener()\n# For services requiring API keys, set them via env or kwargs\n# short_url = s.tinyurl.short('https://www.example.com')\n# print(short_url)\n\n# Example with valid URL\nlong_url = 'https://www.example.com'\nshort_url = s.tinyurl.short(long_url)\nprint(short_url)\n","lang":"python","description":"Quickstart: import pyshorteners, create Shortener instance, call a provider's .short() method.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}