Command line frontend for the cihai CJK language library
Project description
cihai-cli ·
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)
).
Python versions
- Final Python 3.7 version: 0.16.0
Quick links
- Quickstart
- Python API
- 2017 roadmap
- Python support: >= 3.8, pypy
- Source: https://github.com/cihai/cihai-cli
- Docs: https://cihai-cli.git-pull.com
- Changelog: https://cihai-cli.git-pull.com/history.html
- API: https://cihai-cli.git-pull.com/api.html
- Issues: https://github.com/cihai/cihai-cli/issues
- Test coverage https://codecov.io/gh/cihai/cihai-cli
- pypi: https://pypi-hypernode.com/pypi/cihai-cli
- OpenHub: https://www.openhub.net/p/cihai-cli
- License: MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file cihai_cli-0.23.0.tar.gz
.
File metadata
- Download URL: cihai_cli-0.23.0.tar.gz
- Upload date:
- Size: 13.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8bb7e72839cc39f44818bd8b8870d0c8b9daa0a27250a05f4a3cdf4e74684856 |
|
MD5 | 33aa85d819ae38852b2e05fdfb821a64 |
|
BLAKE2b-256 | e83da880ddc53862c8c7b92c752e961687a0bc1cf26737234b0e89dd60c37a33 |
File details
Details for the file cihai_cli-0.23.0-py3-none-any.whl
.
File metadata
- Download URL: cihai_cli-0.23.0-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 641c7b2112651c30d72a9cc56f77e93b56597e6ceb3d0d5affd08fd240674c09 |
|
MD5 | 35541ff12df72abc67a1e8349f0af9a9 |
|
BLAKE2b-256 | 7a9922cd15ab4a913f73779c0622a1f1cd53da1e7b58d1d3d8567b38f6b4df9b |