Skip to main content

简介

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 我是中国人民的儿子

Metadata

Release files for cppinyin 0.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cppinyin 0.11
File Size Uploaded Provenance
cppinyin-0.11.tar.gz 19.9 MB Without provenance Details

Built distributions (wheels)

Table of built distributions (wheels) for cppinyin 0.11
File
cppinyin-0.11-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details
cppinyin-0.11-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.17+ x86-64 Details
cppinyin-0.11-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details
cppinyin-0.11-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ x86-64 Details
cppinyin-0.11-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details
cppinyin-0.11-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ x86-64 Details
cppinyin-0.11-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details
cppinyin-0.11-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ x86-64 Details
cppinyin-0.11-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details
cppinyin-0.11-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.17+ x86-64 Details
cppinyin-0.11-cp38-cp38-win_amd64.whl CPython 3.8 CPython 3.8 Windows x86-64 Details
cppinyin-0.11-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.17+ x86-64 Details
cppinyin-0.11-cp37-cp37m-win_amd64.whl CPython 3.7 CPython 3.7 pymalloc Windows x86-64 Details
cppinyin-0.11-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.17+ x86-64 Details

Total release size: 308.8 MB

Release files / cppinyin-0.11.tar.gz

Download URL cppinyin-0.11.tar.gz
Size 19.9 MB
Tags Source
SHA-256 checksum
How to use checksums
e81e7b4eb86fbaed042fff979d8a97254031d090fb6a6bfaf231c2ca8346f702
BLAKE2b-256 checksum
How to use checksums
0cb6d983f555a9c8cfb812d48e2425217a12416b46adabd90bc2a697529f12cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.10.19

Release files / cppinyin-0.11-cp313-cp313-win_amd64.whl

Download URL cppinyin-0.11-cp313-cp313-win_amd64.whl
Size 20.9 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
2c257556fde834d7baacf48befb7725b78664467f88337f01e34778766ee7136
BLAKE2b-256 checksum
How to use checksums
bb0a79911676c0e281f176920818101cd4f482a22631fd7f34dc5fe6a412c037
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.10.11

Release files / cppinyin-0.11-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL cppinyin-0.11-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 20.4 MB
Tags CPython 3.13 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
e429f953ee5a669ca56b201ce474411e301cb69e1d49302c6894b0b24ac015d7
BLAKE2b-256 checksum
How to use checksums
5a287be3d2a413e48e6f8ece9c404bb798f17cb0bd6f45a2c492044fae7427ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.10.19

Release files / cppinyin-0.11-cp312-cp312-win_amd64.whl

Download URL cppinyin-0.11-cp312-cp312-win_amd64.whl
Size 20.9 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
1831c9a1dac4b11148c971af210ba60043f0b933ae3e272a76a0f4f4a7663254
BLAKE2b-256 checksum
How to use checksums
f8ffb6f2435045b7b8bbe9b68d665f16353cc632916c2180906dc82e93246356
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.10.11

Release files / cppinyin-0.11-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL cppinyin-0.11-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 20.4 MB
Tags CPython 3.12 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
c73ec1fab1eaaff823e07e3941488743057ad324fb7a0065dbf286ceb2fd807b
BLAKE2b-256 checksum
How to use checksums
7c02fbc240d143b1277b98310159be6d717a0dc30241f66dffafcfadbe62bc10
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.10.19

Release files / cppinyin-0.11-cp311-cp311-win_amd64.whl

Download URL cppinyin-0.11-cp311-cp311-win_amd64.whl
Size 20.9 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
b5514ea20bf0b83bfba1873bb56b040fa9fbfe09286acb662cf24922ef8e6152
BLAKE2b-256 checksum
How to use checksums
6499bab3474561c990ba9a88c2606ada398179eb24d5c94ed50f39ae1ea3a51a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.10.11

Release files / cppinyin-0.11-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL cppinyin-0.11-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 20.4 MB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
33387ccab709e7252e1f290a81e7e51156ce6f6685ad60fc137e47db39774498
BLAKE2b-256 checksum
How to use checksums
f7a1760da085893b0090a4f9082021db399f78a6be5a7e5f8a5994f4718fb746
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.10.19

Release files / cppinyin-0.11-cp310-cp310-win_amd64.whl

Download URL cppinyin-0.11-cp310-cp310-win_amd64.whl
Size 20.9 MB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
626c663704634e9c957775a51df32e36999f5d9766cfbd8e8cdc3f0f77b392a5
BLAKE2b-256 checksum
How to use checksums
7c373ec7e4dcb32693f084d0b33173b3dda00f4e4b46546b222c2bcab1b7fb23
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.10.11

Release files / cppinyin-0.11-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL cppinyin-0.11-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 20.4 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
88aa204f302b30371ef890a8b89af8866bca25d7bfbc15f505c120d83e5335a6
BLAKE2b-256 checksum
How to use checksums
fcfd91f5be211318280fe8c74bc92bb42daf61468f80f117a3d36c4ed9356df0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.10.19

Release files / cppinyin-0.11-cp39-cp39-win_amd64.whl

Download URL cppinyin-0.11-cp39-cp39-win_amd64.whl
Size 20.9 MB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
1940da13f11e5fadc8ec1589ff9464d6f85a90e44d4da7a355b9d5f8c7b0dc13
BLAKE2b-256 checksum
How to use checksums
af8816a635f3742cf2680be70c8a865978d85bb6506cb885f6189bab80f98689
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.10.11

Release files / cppinyin-0.11-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL cppinyin-0.11-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 20.4 MB
Tags CPython 3.9 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
b70b157755a7d28a9ab603baa3d60407e2ce86b97400046962f0f60f4b0a7441
BLAKE2b-256 checksum
How to use checksums
4f6da6738ab5116effdf5b12f28330451778232b7336544f6db84ea2042259de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.10.19

Release files / cppinyin-0.11-cp38-cp38-win_amd64.whl

Download URL cppinyin-0.11-cp38-cp38-win_amd64.whl
Size 20.9 MB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
153f9d45dac5b89e852313470e802b02f90ad6282dcacfbbc25be76644401c46
BLAKE2b-256 checksum
How to use checksums
a82fca2d0d95d81c7896079945e77a768781ffbfdfd4f8501396cccc0099af4f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.10.11

Release files / cppinyin-0.11-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL cppinyin-0.11-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 20.4 MB
Tags CPython 3.8 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
cdb59d688aa715d2e7c8b9ab0b110250cfeeb3c05a8f829699330077689baf2f
BLAKE2b-256 checksum
How to use checksums
3d72db6a0dd4a868d90b96c276db9f434d7bfb02bb31c8d63851d0a4209515ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.10.19

Release files / cppinyin-0.11-cp37-cp37m-win_amd64.whl

Download URL cppinyin-0.11-cp37-cp37m-win_amd64.whl
Size 20.8 MB
Tags CPython 3.7 CPython 3.7 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
4c4f2313b7ff7c1268e03ac4d8a710820ecc08f946c469dc200d55ff8a57bd2e
BLAKE2b-256 checksum
How to use checksums
a33dc27f69e710db47583122c6268c9a4d2ee2419d3db5397f14b8a09d1ebae3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.10.11

Release files / cppinyin-0.11-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL cppinyin-0.11-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 20.4 MB
Tags CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
ebf89030d764c0da0909d95c37b53e49a16dcc6be66113c98f81e0e874297e4d
BLAKE2b-256 checksum
How to use checksums
c6824bceb65d1a86abb6355a5ee02ceca2e5eb940528394d331fd3e8029ec0f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.10.19

Security for cppinyin 0.11

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page