jisho_api.kanji.request.Kanji.request

Here are the examples of the python api jisho_api.kanji.request.Kanji.request taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

3 Source : cli.py
with Apache License 2.0
from pedroallenrevez

def request_kanji(kanji: str, cache: bool, no_cache: bool):
    """Uses #kanji filter on jisho.org search engine.
    """
    from jisho_api.kanji.request import Kanji
    flag = (cache or _cache_enabled()) and not no_cache
    k = Kanji.request(kanji, cache=flag)
    if k:
        k.rich_print()


@click.command(name="sentence")