opus_api package¶
Submodules¶
opus_api.cache module¶
-
opus_api.cache.clearCache()¶ Delete all items from the cache.
-
opus_api.cache.hcache(function)¶ Decorator for caching crawler html
-
opus_api.cache.jcache(function)¶ Decorator for caching API json results
opus_api.cli module¶
opus_api.crawler module¶
opus_api.exceptions module¶
-
exception
opus_api.exceptions.InvalidFormException(form)¶ Bases:
exceptions.ExceptionRaised when form is invalid
-
exception
opus_api.exceptions.InvalidLangException(lang)¶ Bases:
exceptions.ExceptionBase invalid language exception
-
exception
opus_api.exceptions.InvalidSrcException(lang)¶ Bases:
opus_api.exceptions.InvalidLangExceptionRaised when src is not in available langs
-
exception
opus_api.exceptions.InvalidTrgException(lang)¶ Bases:
opus_api.exceptions.InvalidLangExceptionRaised when trg is not in available langs
opus_api.opus_api module¶
opus_api.settings module¶
opus_api.util module¶
-
opus_api.util.jsonify(to_jsonify)¶ Internal function to dump dicts into json format.
-
opus_api.util.maxint()¶
-
opus_api.util.minint()¶
-
opus_api.util.parse_num_tokens(num_tokens)¶ Internal function to parse number of tokens from human readable format to a number.
Module contents¶
Top-level package for Opus API.