Skip to main content

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

Python Package Documentation Status Build Status Code Coverage License

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: 
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

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-0.6.1.tar.gz (50.5 kB view details)

Uploaded Source

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

Hashes for cihai-0.6.1.tar.gz
Algorithm Hash digest
SHA256 8583294dcc212e0f118bb9db2421885dc139ce82bf034a0801db08e1f6e4e163
MD5 c3954a13bd4f0c4bddb2bdfadb26bff3
BLAKE2b-256 a76a193b13c627c577680442c629c42d00f6162e280378179c52aa7b6f907966

See more details on using hashes here.

Provenance

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