Skip to main content

Command line frontend for the cihai CJK language library

Project description

cihai-cli · Python Package License Code Coverage

Command line interface to the cihai CJK-language library.

This project is under active development. Follow our progress and check back for updates!

Installation

$ pip install --user 'cihai[cli]'

Developmental releases

You can test the unpublished version of cihai-cli before its released.

  • pip:

    $ pip install --user --upgrade --pre 'cihai[cli]'
    
  • pipx:

    $ pipx install --suffix=@next 'cihai[cli]' --pip-args '\--pre' --include-deps --force
    

    Then use cihai@next info 好.

For more information see developmental releases

Character lookup

See CLI in the documentation for full usage information.

$ cihai info char: 好
kCantonese: hou2 hou3
kDefinition: good, excellent, fine; well
kHangul: 호
kJapaneseOn: KOU
kKorean: HO
kMandarin: hǎo
kTang: '*xɑ̀u *xɑ̌u'
kTotalStrokes: '6'
ucn: U+597D

# retrieve all character information (including book indices)
$ cihai info  -a
char: 好
kCangjie: VND
kCantonese: hou2 hou3
kCihaiT: '378.103'
kDefinition: good, excellent, fine; well
kFenn: 552A
kFourCornerCode: '4744.7'
kFrequency: '1'
kGradeLevel: '1'
kHKGlyph: 0871
kHangul: 호
kHanyuPinlu: hǎo(6060) hāo(142) hào(115)
kHanyuPinyin: 21028.010:hǎo,hào
kJapaneseKun: KONOMU SUKU YOI
kJapaneseOn: KOU
kKorean: HO
kMandarin: hǎo
kPhonetic: '481'
kRSAdobe_Japan1_6: C+1975+38.3.3 C+1975+39.3.3
kRSKangXi: '38.3'
kTang: '*xɑ̀u *xɑ̌u'
kTotalStrokes: '6'
kVietnamese: háo
kXHC1983: 0445.030:hǎo 0448.030:hào
ucn: U+597D

Reverse lookup

$ cihai reverse library
char: 圕
kCantonese: syu1
kDefinition: library
kJapaneseOn: TOSHOKAN SHO
kMandarin: tú
kTotalStrokes: '13'
ucn: U+5715
--------
char: 嫏
kCantonese: long4
kDefinition: the place where the supreme stores his books; library
kJapaneseOn: ROU
kMandarin: láng
kTotalStrokes: '11'
ucn: U+5ACF
--------

Developing

$ git clone https://github.com/cihai/cihai-cli.git
$ cd cihai-cli

Bootstrap your environment and learn more about contributing. We use the same conventions / tools across all cihai projects: pytest, sphinx, flake8, mypy, black, isort, tmuxp, and file watcher helpers (e.g. entr(1)).

Quick links

Docs Build Status

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cihai-cli-0.10.0a0.tar.gz (13.6 kB view details)

Uploaded Source

Built Distribution

cihai_cli-0.10.0a0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file cihai-cli-0.10.0a0.tar.gz.

File metadata

  • Download URL: cihai-cli-0.10.0a0.tar.gz
  • Upload date:
  • Size: 13.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for cihai-cli-0.10.0a0.tar.gz
Algorithm Hash digest
SHA256 170b72b3686a599136df7282cf00edb09c857f4f8995c7d52df40404b72a633a
MD5 1deb418fce160319047fde39d0c75dff
BLAKE2b-256 1b088a1de6a38c9b02f1badda5fa662bc9458200bb68fcb000745ac1eb865212

See more details on using hashes here.

File details

Details for the file cihai_cli-0.10.0a0-py3-none-any.whl.

File metadata

File hashes

Hashes for cihai_cli-0.10.0a0-py3-none-any.whl
Algorithm Hash digest
SHA256 fd37b1448f9232c41f630bf288451d48d80d844796fac76fa6b99d748d679c84
MD5 5a4d66932d0ee62d311aa11c7cee13d6
BLAKE2b-256 6d30abddb18e742411d09719dd16903ee41c65edbf699a432f8fa0aefeccf102

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page