Skip to content

Dorthu/krlio-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

krlio-python

The "official" python library for krl.io.

How To Install

pip install krlio

Installing from Source

git clone [email protected]/dorthu/krlio-python
cd krlio-python
python3 setup.py install

How to Use

import krlio

krlio.get_link(code) - returns the URL that shortcode code directs to.

krlio.make_anon_link(url) - shortens URL and returns the full krl.io shortlink

krlio.get_version() - returns the API version we're talking to

Limitations

Currently does not support any authed requests. All shortlinks are public and not associated to an account. Cannot do custom shortlinks at this time. These features are coming soon.