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:
NamespaceTyping for CLI namespace.
- __annotations__ = {'config_file': 'str | None', 'log_file': 'str | None', 'version': 'bool'}¶
- __firstlineno__ = 75¶
- __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 infosubparser.- Return type:
- Parameters:
parser (ArgumentParser)
- cihai_cli.cli.create_reverse_subparser(parser)[source]¶
Create
cihai reversesubparser.- Return type:
- Parameters:
parser (ArgumentParser)