Internal API¶
See also
Internals¶
Warning
These APIs are purely internal not covered by versioning policies, they can and will break between versions. If you need an internal API stabilized please file an issue.
CLI functionality for cihai-cli.
- cihai_cli.cli.HUMAN_UNIHAN_FIELDS = ['char', 'ucn', 'kDefinition', 'kCantonese', 'kHangul', 'kJapaneseOn', 'kKorean', 'kMandarin', 'kVietnamese', 'kTang', 'kTotalStrokes']¶
fields which are human friendly
- class cihai_cli.cli.CLILoadNamespace(**kwargs)[source]¶
Bases:
Namespace
Typing for CLI namespace.
- __annotations__ = {'config_file': typing.Optional[str], 'log_file': typing.Optional[str], 'version': <class 'bool'>}¶
- __firstlineno__ = 74¶
- __module__ = 'cihai_cli.cli'¶
- __static_attributes__ = ()¶
- cihai_cli.cli.cli(_args=None)[source]¶
Retrieve CJK information via CLI.
For help and example usage, see documentation:
https://cihai-cli.git-pull.com and https://cihai.git-pull.com
- cihai_cli.cli.create_info_subparser(parser)[source]¶
Create
cihai info
subparser.- Return type:
- Parameters:
parser (ArgumentParser)
- cihai_cli.cli.create_reverse_subparser(parser)[source]¶
Create
cihai reverse
subparser.- Return type:
- Parameters:
parser (ArgumentParser)