skillfed

opencc-python-reimplemented

OpenCC made with Python

opencc-python-reimplemented v0.1.7 1.9M downloads/30d#3,466 on PyPI571
Permissive license Apache License DORMANT released

What it is and what it does

This package provides pure Python implementation of OpenCC (Open Chinese Convert), enabling conversion between Simplified Chinese and Traditional Chinese text, including regional variants for Hong Kong and Taiwan standards. It wraps OpenCC's dictionary files without requiring compiled C extensions, making it portable across platforms.

The package offers both a Python API (instantiate an OpenCC converter with a conversion mode like 's2t', then call convert() on text) and a command-line interface for batch file processing. It supports nine conversion modes covering bidirectional conversion between Simplified, Traditional, Hong Kong, and Taiwan standards. The main known limitation is that when multiple conversion options exist for a character or phrase, only the first is used.

Use it for:

  • Convert user-generated content or documents from Simplified to Traditional Chinese for Taiwan or Hong Kong audiences
  • Normalize Chinese text in a data pipeline where regional variants need standardization
  • Build a text processing tool that handles Chinese language variants without external C dependencies
  • Process batch files of Chinese text with the command-line interface for format conversion workflows

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Converts text between Simplified Chinese, Traditional Chinese, and regional variants (Hong Kong, Taiwan standards) using pure Python with no compiled dependencies.

Yes, if you need Chinese character conversion and want a pure-Python solution with no compiled dependencies. The low install friction and permissive license make it straightforward to adopt. However, the dormant maintenance status (last release February 2023) means you should verify it works with your current Python version and test edge cases before relying on it in production, as bug fixes or updates are unlikely.

Install

opencc-python-reimplemented on PyPI

pip

pip install opencc-python-reimplemented

uv

uv add opencc-python-reimplemented

poetry

poetry add opencc-python-reimplemented

Installing opencc-python-reimplemented

Before you install

Low friction installation with no runtime dependencies. Maintenance is dormant—last release was in February 2023, over a year ago, though the repository remains active with 571 stars and no archived status.

License in practice

Licensed under Apache License (permissive), allowing commercial and private use with minimal restrictions.

Quickstart

pip install opencc-python-reimplemented

from opencc import OpenCC
cc = OpenCC('s2t')
converted = cc.convert('开放中文转换')

Verify before relying

  • Whether the package handles ambiguous conversions correctly beyond the documented limitation of using only the first option
  • Performance characteristics when processing large volumes of text
  • Compatibility with Python versions beyond 3.5 (classifiers list 3.2–3.5 but current Python is much newer)

Package facts

License Apache License (permissive)
Python support not specified
Install friction low — pure-Python wheel
Runtime dependencies none
Maintenance dormant — 1,280 days since the last release
Last repo commit
First released
Downloads 1,883,756/month — #3,466 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: opencc_python_reimplemented-0.1.7-py2.py3-none-any.whl

Keywords: chinese, conversion

Development Status :: 3 - AlphaIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.2Programming Language :: Python :: 3.3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Topic :: Software Development :: Libraries

Tags

chinese character conversionsimplified to traditional chineseopencc pythonchinese text normalizationregional chinese variants
chinese-nlptext-conversion

More Libraries packages