Pinyin
Smart Chinese-to-Pinyin converter.
fork from https://github.com/mapix/Pinyin
Getting Started
pip install smart_pinyin
Usage
>>> from pinyin import Pinyin
>>> pinyin = Pinyin()
>>> ' '.join(pinyin.get_pinyin('银行行长潘玮柏长了一头乌黑的白发, 睡觉睡的很晚, 道行很深', failure=''))
>>> u'yin hang hang zhang pan wei bo zhang le yi tou wu hei de bai fa shui jiao shui de hen wan dao heng hen shen'
>>> for i in pinyin.get_pinyin_all('自行车'): print list(i)
[u'zi', u'hang', u'che']
[u'zi', u'hang', u'ju']
[u'zi', u'heng', u'che']
[u'zi', u'heng', u'ju']
[u'zi', u'xing', u'che']
[u'zi', u'xing', u'ju']
Release files for smart-pinyin 0.5.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| smart_pinyin-0.5.2.tar.gz | 148.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| smart_pinyin-0.5.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 292.2 kB
Release files / smart_pinyin-0.5.2.tar.gz
| Download URL | smart_pinyin-0.5.2.tar.gz |
|---|---|
| Size | 148.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
01b8a7b2877e65179c395d15a76063a8288f78195aa348f69bbf8076ae6dc8f6
|
|
BLAKE2b-256 checksum How to use checksums |
4709c5f55076c7d377a03465c7b6b8f3e811917761d18be64d1a28531c50ba57
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / smart_pinyin-0.5.2-py3-none-any.whl
| Download URL | smart_pinyin-0.5.2-py3-none-any.whl |
|---|---|
| Size | 144.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5e7c0881ea5f2ccba4c3af8bf26b2a8779e8c623da4690d2ec69872d08c6be56
|
|
BLAKE2b-256 checksum How to use checksums |
b90e48cbb076fd7ba95c47e1af0a9db14de9474c27c310d47a8bc5c791dea13b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|