Python API for CJK datasets. Part of the cihai project.
Project description
cihai - United front to provide open, accessible, and standardized access to CJK data
This project is under active development. Follow our progress and check back for updates!
Usage
$ pip install --user cihai
Command line
Character lookup:
$ cihai info 好
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 lookup library
--------
char: 圕
kCangjie: WLGA
kCantonese: syu1
kCihaiT: '308.302'
kDefinition: library
kJapaneseOn: TOSHOKAN SHO
kMandarin: tú
kPhonetic: 1235 1364
kRSAdobe_Japan1_6: C+14418+31.3.10
kRSKangXi: '31.10'
kSemanticVariant: U+5716<kMatthews
kTotalStrokes: '13'
kXHC1983: 1163.040:tú
ucn: U+5715
--------
char: 嫏
kCangjie: VIIL
kCantonese: long4
kCihaiT: '390.506'
kDefinition: the place where the supreme stores his books; library
kHanyuPinyin: 21062.030:láng
kJapaneseOn: ROU
kMandarin: láng
kPhonetic: '832'
kRSAdobe_Japan1_6: C+21424+38.3.10
kRSKangXi: '38.9'
kTotalStrokes: '11'
kXHC1983: 0674.090:láng
ucn: U+5ACF
Works with any field:
$ cihao lookup hào
--------
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
--------
char: 妞
kCangjie: VNG
kCantonese: nau2
kCihaiT: '380.503'
kDefinition: girl
kFenn: 676H
kFourCornerCode: '4741.5'
kFrequency: '5'
kHKGlyph: 0876
kHanyuPinyin: 21033.100:hào,niū
kJapaneseOn: JUU NYU CHUU
kMandarin: niū
kPhonetic: '90'
kRSKangXi: '38.4'
kTotalStrokes: '7'
kXHC1983: 0836.060:niū
ucn: U+599E
Quick links
Python support |
Python 2.7, >= 3.5, pypy |
Source |
|
Docs |
|
Changelog |
|
API |
|
Issues |
|
Travis |
|
Test coverage |
|
pypi |
|
OpenHub |
|
License |
MIT |
git repo |
|
install stable |
|
install dev |
|
tests |
|
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
cihai-0.6.1.tar.gz
(50.5 kB
view details)
File details
Details for the file cihai-0.6.1.tar.gz
.
File metadata
- Download URL: cihai-0.6.1.tar.gz
- Upload date:
- Size: 50.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8583294dcc212e0f118bb9db2421885dc139ce82bf034a0801db08e1f6e4e163 |
|
MD5 | c3954a13bd4f0c4bddb2bdfadb26bff3 |
|
BLAKE2b-256 | a76a193b13c627c577680442c629c42d00f6162e280378179c52aa7b6f907966 |