Skip to content

Latest commit

 

History

History
30 lines (16 loc) · 601 Bytes

README.md

File metadata and controls

30 lines (16 loc) · 601 Bytes

Kural API Library

Kural is a wrapper to getthirukkural API.

Installation

Install it using pip.

pip install kural

Usage

Get an API Key from getthirukkural and you can start making API requests as below:

import kural

api = kural.Kural(api_key='API_KEY') # initialize with your key

kural = api.get_kural(2) # fetches you second kural

kurals = api.get_kurals(1,5) # fetches kurals 1 to 5

kural = api.get_random() # fetches a random kural

It is licensed under MIT.