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
cppinyin-0.5.tar.gz
(10.0 MB
view hashes)
Built Distributions
Close
Hashes for cppinyin-0.5-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 53cb45d0973b1b790470499b547e029e74a7637ae62f5ddb31affca86b3c2abb |
|
MD5 | 065214243ee92e86d5a1a344c238ea51 |
|
BLAKE2b-256 | c6f307c1cb2d1f244555e1298b781255b73ad834c87f20eeafe056956c5d3fed |
Close
Hashes for cppinyin-0.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3c0ed1eacc7d446b280985273cf43402e9469b7e0468c6e0015a6dbfaaae071 |
|
MD5 | 0e82a85e942ec2232ead540ef8c029f2 |
|
BLAKE2b-256 | f332a61767be2e70817187aaa2870f55b28e180f1081a70aa2bcecbcbb96d0c5 |
Close
Hashes for cppinyin-0.5-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d55d7ebe0d71429e900530303921b7f99098bc3f65624adcde2e94db4197ea4 |
|
MD5 | 086eed07cd481084e5fc8a4299414d40 |
|
BLAKE2b-256 | a4510bc1811097fe74ac000bfcd01cba8511fbbb32dd5616872547bec855082e |
Close
Hashes for cppinyin-0.5-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7dadb6a5ce588f1207e966fad0137cc5daa133dca3c5f698e849d27b8fbcdc6a |
|
MD5 | 38728fd3818df5a8b937e32c0034ea88 |
|
BLAKE2b-256 | 2ec9bd2132eef7447e1a05715fbc1e8032f082bf444d7fb406515dce8de1d169 |
Close
Hashes for cppinyin-0.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 449a0dc30e677898a0d7e0e10a85524e80a4e30ea5c128cb7f987ef7a2c79909 |
|
MD5 | 6be1bbf9dface7ac1eeb53d99026ff24 |
|
BLAKE2b-256 | f5314eee31db1af24b4c68623ba6d80a54820915eb8e6b0e84eb893a10ae43d4 |
Close
Hashes for cppinyin-0.5-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba625594ecd5476e1a22944df9a6cb0df63e9b3869a335b68f6fd8d2e6f6e36b |
|
MD5 | 3a1d45bb59c70a06c0fedb402f148c89 |
|
BLAKE2b-256 | 49c4a1cb27da92bd1edafab586edd3efffec8f3e9965b8db03f4d6c61f958db2 |
Close
Hashes for cppinyin-0.5-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94004c0692796dcc5436b310d6c692e286c5ab2d91dfbcd5295932d90d9de6f2 |
|
MD5 | 1baf82fe1ce23c017e547e466163fbdf |
|
BLAKE2b-256 | 9eb14963605e87fa567f66b440419257ae4adc3afde8d7321557926f2805b86d |
Close
Hashes for cppinyin-0.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca6fd1a4e3a1fc7957e563d620615909e7bd35108e9d5d8c101062b3e8edaa04 |
|
MD5 | a13b1d62df1cffc26e1ea8084b746e76 |
|
BLAKE2b-256 | 48c9ff80f3df4ea7a255ef41bb9171280046e0cadaa23cf264ce6a2389ca9156 |
Close
Hashes for cppinyin-0.5-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3f8352fc749a0b3506aa1bd9bb7d71c390e74059bc77a481af453f4e0c1bf23 |
|
MD5 | b8b2df28e31e66c08628eac918a96191 |
|
BLAKE2b-256 | 40dfff85cc66084c057447230376ee09173e6af5b306e091a1ca456db6e36423 |
Close
Hashes for cppinyin-0.5-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41eb7311d8f665f30c76625d361f13de155ee106109b2ae54c60aad4b01b100e |
|
MD5 | 1c4a8d9468deb67c85c2e11ba2725ccc |
|
BLAKE2b-256 | a37a248101b4fc9eb90972bdee5d7cb2fec0fa5ac2eea6feba73776a1b7a882d |
Close
Hashes for cppinyin-0.5-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc72bf52c1f5618c03ea036f01b288682a378d9652fefc76e6a091ecebb860c3 |
|
MD5 | 2fb22e928c621dd6ef0f25096c5445fc |
|
BLAKE2b-256 | e3bf641b1ba55506e46f9d3953da12347dae5b6fc3eef6588cca196d84b088e0 |
Close
Hashes for cppinyin-0.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf95ae7ee2694ad5f9176043d9bb6881538634c77135b27d23908a5b49a6d0ae |
|
MD5 | e67b67d1215c4a332270b3d76a77967d |
|
BLAKE2b-256 | 3125623ba79b18452afdbb7bb39f8691487ce1c0cb02968fa57aaa19f04eda83 |
Close
Hashes for cppinyin-0.5-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3c31641246442fca5c3d1f49fce24f50a062011c017070c964d004a26e4da8c |
|
MD5 | 90431517d464b4166b710a23fa5cfcd4 |
|
BLAKE2b-256 | 1bc301f574ca19ce129563cbc04cd75ce2263baf475a134eb3ae0d97a5ff2597 |
Close
Hashes for cppinyin-0.5-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 395596bd174f44451285c9dcd79bef8ac0034972ad29d61fb0717432d9ac1820 |
|
MD5 | 068510bf203003244e08cb3cdd109716 |
|
BLAKE2b-256 | 8d59b72ce8d23ec710931c63900358949c6034ba65ad40a585e058e69a3a327f |
Close
Hashes for cppinyin-0.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b90e7c011393f1e363ed0bd928fd35763af434ff2abaa15ceafa5f4573e861af |
|
MD5 | d249fc29362ab3df1297aed8c7b3d563 |
|
BLAKE2b-256 | 5a972f4a851149c892b8f3bf558839c7726af14e0b4f612858287f932216e6cb |
Close
Hashes for cppinyin-0.5-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe19d3853c759a81b310383857d72059385db38ad09de730f2a8c401f6b7e823 |
|
MD5 | 788bbe63087d5cdd81890a9f1559d014 |
|
BLAKE2b-256 | 3dcdc9239cc3f3502133c512888d0959980c4e445b72f81ed2db8dd7d4fa7c80 |
Close
Hashes for cppinyin-0.5-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6b15755aebee7c0419fe291577914559b7659c0c5217366f51c0f7e84a0784c |
|
MD5 | f9ffb3ae95642e0952b56ec5dc21f99c |
|
BLAKE2b-256 | 1c5716124dc916d586e9e3166c79db033daeaa9771962293a45c2e62c16aa7c9 |
Close
Hashes for cppinyin-0.5-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71cb53b17cafc5d46d7a6e08e186ff92d7161ebf8d7b69f326d4f78ef205c1ad |
|
MD5 | 71a3bcc1511dec3e9720464fa8fc9250 |
|
BLAKE2b-256 | 76927071281baed28eb556cbf5d3b25d05e6d32669dc37e1d953afdd5e749d1c |
Close
Hashes for cppinyin-0.5-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ba6412a03e30c3f69241a93f865b0edb717dd9a057ca1b323a3043a9c3c2bee |
|
MD5 | 867216b991650156418273aa8acc8b83 |
|
BLAKE2b-256 | db334587a2a4397fad861c2c4abd2ac9b2aadd0f066644bcb6bda8ff5c701648 |