API

See also

cihai’s API

cihai_cli.cli.HUMAN_UNIHAN_FIELDS = ['char', 'ucn', 'kDefinition', 'kCantonese', 'kHangul', 'kJapaneseOn', 'kKorean', 'kMandarin', 'kTang', 'kTotalStrokes']

fields which are human friendly

cihai_cli.cli.setup_logger(logger=None, level='INFO')

Setup logging for CLI use.

Parameters:logger (Logger) – instance of logger