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

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

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for pinyin-0.2.2.tar.gz
Algorithm Hash digest
SHA256 31fc03e7fb7af6f13e7d1dd19f12533a1899f0c82ee5d25739e02dae39b6fa32
MD5 d481d0ce8ff0bc2e26c49e655c6b013a
BLAKE2b-256 b1c172b308028cf5df1a85ad8007c027b14af0793e104e4fe9cae4c0c0dc2e3c

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