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']¶cihai_cli.cli.HUMAN_UNIHAN_FIELDS = ['char', 'ucn', 'kDefinition', 'kCantonese', 'kHangul', 'kJapaneseOn', 'kKorean', 'kMandarin', 'kVietnamese', 'kTang', 'kTotalStrokes']¶
fields which are human friendly
-
cihai_cli.cli.build_description(intro, example_blocks)¶cihai_cli.cli.build_description(intro, example_blocks)¶
Assemble help text with optional example sections.
- Parameters:
- Returns:
Formatted help text with examples.
- Return type:
-
cihai_cli.cli.create_parser()¶cihai_cli.cli.create_parser()¶
Create argparse for cihai-cli.
- Return type:
-
class cihai_cli.cli.CLILoadNamespace¶class cihai_cli.cli.CLILoadNamespace¶
Bases:
NamespaceTyping for CLI namespace.
-
cihai_cli.cli.cli(_args=None)¶cihai_cli.cli.cli(_args=None)¶
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)¶cihai_cli.cli.create_info_subparser(parser)¶
Create
cihai infosubparser.- Parameters:
parser (
ArgumentParser)- Return type:
-
cihai_cli.cli.command_info(c, char, show_all)¶cihai_cli.cli.command_info(c, char, show_all)¶
Look up a definition by term.
-
cihai_cli.cli.create_reverse_subparser(parser)¶cihai_cli.cli.create_reverse_subparser(parser)¶
Create
cihai reversesubparser.- Parameters:
parser (
ArgumentParser)- Return type: