OpenCC for Python
An OpenCC converter for Python.
Installation
You should install OpenCC (1.0.x) library first.
Install the python library with pip:
$ pip install OpenCC
Features
Compatible with CPython and PyPy (c-types)
Cython implementation (TODO)
Usage
This library has only one method:
>>> import opencc
>>> opencc.convert('乾坤一擲')
>>> opencc.convert('乾坤一掷', config='s2t.json')
Config
Convert method accepts an additional config parameter. Available configs:
hk2s.json s2hk.json s2t.json s2tw.json s2twp.json t2s.json tw2s.json tw2sp.json
Metadata
Release files for OpenCC 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| OpenCC-0.2.tar.gz | 6.4 kB | Without provenance | Details for OpenCC-0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| OpenCC-0.2-py2-none-any.whl | Python 2 | none | any | Details for OpenCC-0.2-py2-none-any.whl |
Total release size: 10.1 kB
Release files / OpenCC-0.2.tar.gz
| Download URL | OpenCC-0.2.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bfca25fb46add057454075ba4c4dfed51c19c09944a960e3920ac22ba24097e2
|
|
BLAKE2b-256 checksum How to use checksums |
56fb5a7224ede65ac6271d163fcee81d4cb84f42a40667271f970faab97840df
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / OpenCC-0.2-py2-none-any.whl
| Download URL | OpenCC-0.2-py2-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
c845abfcd6936ea110ff19de0da85e5ed99953cb03836be975bd0d5b163618e1
|
|
BLAKE2b-256 checksum How to use checksums |
0818951a89e4638db357184d0acf338a89b7b8e48cf6c242243fe193d201dc5c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for OpenCC 0.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.
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.