Skip to main content

Ciku (IME-Utils)

GitHub stars GitHub release GitHub repo size GitHub license

中文输入法词库文件(细胞词库)解析工具。

Chinese IME ciku (aka word list / lexicon file) parsing tool.

支持:

  • 搜狗拼音(.scel)
  • 百度拼音(.bdict)、百度输入法手机版(.bcd)
  • QQ 拼音(.qcel)、QQ 拼音旧版(6.0 以下词库,.qpyd)
  • 华宇拼音(紫光输入法)(.uwl)

使用

  • 程序调用:
# 安装
# pip install ciku # ime-utils
# uv pip install -e . # 本地安装(Editable packages)

# 用例:
from ciku import SogouParser, BaiduParser

parser = BaiduParser()
files = [
    "医学词汇.bdict",
    "电影明星.bdict",
    "体操基本术语.bdict",
]

for file in files:
    save_file = f"out-{file}.txt"
    if parser.parse(file):
        parser.save_data(save_file, keep_error=False)
        result = parser.export_data()
  • 命令行调用
# 或者 python -m ciku -f file-names -o output

# 指定多个文件
ciku -f file-name1,file-name2 -o output
# 指定目录,-e保留解析异常词语, -r 目录递归检索文件
ciku -d file-dir -o text -e -r

开发

# 安装uv <https://docs.astral.sh/uv/>

# 开发环境
uv sync # --dev --all-extras # --locked

# 提交前检查语法等
uvx ruff check .
uvx mypy .

# 构建
uv build

相关

Metadata

Release files for ciku 0.3.2

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

Source distribution (sdist)

Source distribution for ciku 0.3.2
File Size Uploaded Provenance Actions
ciku-0.3.2.tar.gz 18.8 kB With provenance Details for ciku-0.3.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ciku 0.3.2
File Interpreter ABI Platform Actions
ciku-0.3.2-py3-none-any.whl Python 3 none any Details for ciku-0.3.2-py3-none-any.whl

Total release size: 46.6 kB

Release files / ciku-0.3.2.tar.gz

Download URL ciku-0.3.2.tar.gz
Size 18.8 kB
Tags Source
SHA-256 checksum
How to use checksums
ab89f9d12b23940db5cf18905716b3594eccf5314ef0f6c73b703871be3b1845
BLAKE2b-256 checksum
How to use checksums
aeddfe815a750373f872688b64274cf0f30cb01f6acb97758cd7d365cbc859fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 4, 2026.

Transparency log

Release files / ciku-0.3.2-py3-none-any.whl

Download URL ciku-0.3.2-py3-none-any.whl
Size 27.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
748503a2648cbed6cd3dda0a07e3f836f8adb95d30f6ac9a45dc651d35806cc2
BLAKE2b-256 checksum
How to use checksums
dbd07f06687531c28faa5a58ad37b963c70cdf442af556275027773bc61ceb03
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 4, 2026.

Transparency log

Security for ciku 0.3.2

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for ciku-0.3.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 4, 2026.

Transparency log

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