nokey.language package

Submodules

nokey.language.free_dictionary module

class nokey.language.free_dictionary.FreeDictionary(use_caching=False, cache_name='free_dictionary_cache', backend='sqlite', expire_after=3600)[source]

Bases: object

A class to interact with the Free Dictionary API.

base_url

The base URL of the Free Dictionary API.

about

A short description of the API.

get_docs_url()[source]

Returns the URL for the Free Dictionary API documentation.

Parameters:

None

Returns:

The URL for thre API documentation.

Return type:

string

look_up_word(word)[source]

Returns the definition and other information of a word.

Parameters:

word (str) – The word to be looked up.

Returns:

A dictionary containing the definition of a word and other related information.

Return type:

dict

Module contents