A simple and fast pinyin encoder and decoder.
Project description
简介
cppinyin 是一个用 C++ 实现的中文转拼音工具,可作为pypinyin 的替代方案,之所以使用 C++ 实现,一是方便部署,二也是为了提升效率,我相信 cppinyin 的转换速度要比 pypinyin 好不少。
安装
python
pip install cppinyin
C++
可从源码编译:
mkdir build
cd build
cmake ..
make -j
集成可用 cmake
使用
python
import cppinyin
encoder = cppinyin.Encoder()
encoder.encode("我是中国人民的儿子")
命令行
cppinyin encode 我是中国人民的儿子
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
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cppinyin-0.11.tar.gz.
File metadata
- Download URL: cppinyin-0.11.tar.gz
- Upload date:
- Size: 19.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e81e7b4eb86fbaed042fff979d8a97254031d090fb6a6bfaf231c2ca8346f702
|
|
| MD5 |
b6e81a141bb5b1e6382bcf1ef1c83ecf
|
|
| BLAKE2b-256 |
0cb6d983f555a9c8cfb812d48e2425217a12416b46adabd90bc2a697529f12cf
|
File details
Details for the file cppinyin-0.11-cp313-cp313-win_amd64.whl.
File metadata
- Download URL: cppinyin-0.11-cp313-cp313-win_amd64.whl
- Upload date:
- Size: 20.9 MB
- Tags: CPython 3.13, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2c257556fde834d7baacf48befb7725b78664467f88337f01e34778766ee7136
|
|
| MD5 |
04fc271b3090e61cea63469d3608338c
|
|
| BLAKE2b-256 |
bb0a79911676c0e281f176920818101cd4f482a22631fd7f34dc5fe6a412c037
|
File details
Details for the file cppinyin-0.11-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: cppinyin-0.11-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 20.4 MB
- Tags: CPython 3.13, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e429f953ee5a669ca56b201ce474411e301cb69e1d49302c6894b0b24ac015d7
|
|
| MD5 |
5e1b6325e661679bf2494e0c4f6306d2
|
|
| BLAKE2b-256 |
5a287be3d2a413e48e6f8ece9c404bb798f17cb0bd6f45a2c492044fae7427ab
|
File details
Details for the file cppinyin-0.11-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: cppinyin-0.11-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 20.9 MB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1831c9a1dac4b11148c971af210ba60043f0b933ae3e272a76a0f4f4a7663254
|
|
| MD5 |
5b5675b7870c8b73d08b5581428eefe5
|
|
| BLAKE2b-256 |
f8ffb6f2435045b7b8bbe9b68d665f16353cc632916c2180906dc82e93246356
|
File details
Details for the file cppinyin-0.11-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: cppinyin-0.11-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 20.4 MB
- Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c73ec1fab1eaaff823e07e3941488743057ad324fb7a0065dbf286ceb2fd807b
|
|
| MD5 |
71cd595981c8250b8a4eeb438db0a60d
|
|
| BLAKE2b-256 |
7c02fbc240d143b1277b98310159be6d717a0dc30241f66dffafcfadbe62bc10
|
File details
Details for the file cppinyin-0.11-cp311-cp311-win_amd64.whl.
File metadata
- Download URL: cppinyin-0.11-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 20.9 MB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b5514ea20bf0b83bfba1873bb56b040fa9fbfe09286acb662cf24922ef8e6152
|
|
| MD5 |
61b6de20ccffb4d251569e7b1809ea94
|
|
| BLAKE2b-256 |
6499bab3474561c990ba9a88c2606ada398179eb24d5c94ed50f39ae1ea3a51a
|
File details
Details for the file cppinyin-0.11-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: cppinyin-0.11-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 20.4 MB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
33387ccab709e7252e1f290a81e7e51156ce6f6685ad60fc137e47db39774498
|
|
| MD5 |
72d32a097c87590aa179ea3df984a245
|
|
| BLAKE2b-256 |
f7a1760da085893b0090a4f9082021db399f78a6be5a7e5f8a5994f4718fb746
|
File details
Details for the file cppinyin-0.11-cp310-cp310-win_amd64.whl.
File metadata
- Download URL: cppinyin-0.11-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 20.9 MB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
626c663704634e9c957775a51df32e36999f5d9766cfbd8e8cdc3f0f77b392a5
|
|
| MD5 |
abdb8017aa5244b4ceb3c3686e5bef92
|
|
| BLAKE2b-256 |
7c373ec7e4dcb32693f084d0b33173b3dda00f4e4b46546b222c2bcab1b7fb23
|
File details
Details for the file cppinyin-0.11-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: cppinyin-0.11-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 20.4 MB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
88aa204f302b30371ef890a8b89af8866bca25d7bfbc15f505c120d83e5335a6
|
|
| MD5 |
2a4020005e0c7eeaef8359ec845760b8
|
|
| BLAKE2b-256 |
fcfd91f5be211318280fe8c74bc92bb42daf61468f80f117a3d36c4ed9356df0
|
File details
Details for the file cppinyin-0.11-cp39-cp39-win_amd64.whl.
File metadata
- Download URL: cppinyin-0.11-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 20.9 MB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1940da13f11e5fadc8ec1589ff9464d6f85a90e44d4da7a355b9d5f8c7b0dc13
|
|
| MD5 |
11891d03087e123670628a553e27aecb
|
|
| BLAKE2b-256 |
af8816a635f3742cf2680be70c8a865978d85bb6506cb885f6189bab80f98689
|
File details
Details for the file cppinyin-0.11-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: cppinyin-0.11-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 20.4 MB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b70b157755a7d28a9ab603baa3d60407e2ce86b97400046962f0f60f4b0a7441
|
|
| MD5 |
57770cba3a73bb381c546f60d535c33f
|
|
| BLAKE2b-256 |
4f6da6738ab5116effdf5b12f28330451778232b7336544f6db84ea2042259de
|
File details
Details for the file cppinyin-0.11-cp38-cp38-win_amd64.whl.
File metadata
- Download URL: cppinyin-0.11-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 20.9 MB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
153f9d45dac5b89e852313470e802b02f90ad6282dcacfbbc25be76644401c46
|
|
| MD5 |
02a67772152927e6d7f4660c36d1c175
|
|
| BLAKE2b-256 |
a82fca2d0d95d81c7896079945e77a768781ffbfdfd4f8501396cccc0099af4f
|
File details
Details for the file cppinyin-0.11-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: cppinyin-0.11-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 20.4 MB
- Tags: CPython 3.8, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cdb59d688aa715d2e7c8b9ab0b110250cfeeb3c05a8f829699330077689baf2f
|
|
| MD5 |
0d856d4735d419fbc5ade08ea8e9b755
|
|
| BLAKE2b-256 |
3d72db6a0dd4a868d90b96c276db9f434d7bfb02bb31c8d63851d0a4209515ca
|
File details
Details for the file cppinyin-0.11-cp37-cp37m-win_amd64.whl.
File metadata
- Download URL: cppinyin-0.11-cp37-cp37m-win_amd64.whl
- Upload date:
- Size: 20.8 MB
- Tags: CPython 3.7m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c4f2313b7ff7c1268e03ac4d8a710820ecc08f946c469dc200d55ff8a57bd2e
|
|
| MD5 |
a04355e5568630dfae101bbff22fcad3
|
|
| BLAKE2b-256 |
a33dc27f69e710db47583122c6268c9a4d2ee2419d3db5397f14b8a09d1ebae3
|
File details
Details for the file cppinyin-0.11-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: cppinyin-0.11-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 20.4 MB
- Tags: CPython 3.7m, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ebf89030d764c0da0909d95c37b53e49a16dcc6be66113c98f81e0e874297e4d
|
|
| MD5 |
2728c08820257b954298af9083898422
|
|
| BLAKE2b-256 |
c6824bceb65d1a86abb6355a5ee02ceca2e5eb940528394d331fd3e8029ec0f2
|