Skip to main content

Translate chinese chars to pinyin based on Mandarin.dat

Project description

https://badge.fury.io/py/pinyin.png https://travis-ci.org/lxyu/pinyin.png?branch=master https://pypip.in/d/pinyin/badge.png Bitdeli badge

Translate chinese chars to pinyin based on Mandarin.dat

Install

$ pip install pinyin

Usage

>>> import pinyin
>>> pinyin.get(u'你好')
'nihao'
>>> pinyin.get_initial(u'你好')
'n h'

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

pinyin-0.2.3.tar.gz (126.2 kB view details)

Uploaded Source

File details

Details for the file pinyin-0.2.3.tar.gz.

File metadata

  • Download URL: pinyin-0.2.3.tar.gz
  • Upload date:
  • Size: 126.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pinyin-0.2.3.tar.gz
Algorithm Hash digest
SHA256 ff584d5b3d3ed59085fa11e8583bbb176f2add130b6141560beae55f24a0c672
MD5 77aaae98c181ab322150cadcd8249a2c
BLAKE2b-256 a484956bbe4097ffa34b7521f00743ea981fae9f1f54912406cd6d08fa058019

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