A wrapper for OpenCC (The Chinese convert solution)
Project description
PyOCC
A wrapper for OpenCC (The Chinese convert solution)
License: Apache-2.0
Usage
from pyocc import PyOCC
occ = PyOCC()
print(occ.configs)
# => ['hk2s', 's2hk', 's2t', 's2tw', 's2twp', 't2hk', 't2s', 't2tw', 'tw2s', 'tw2sp']
print(occ.translate('中国', 's2t'))
# => 中國
Credits
This package was created with Cookiecutter and the PyPackageTemplate project template.
History
0.0.2 (2018-06-04)
First release on PyPI.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
pyocc-0.0.3-py3-none-any.whl
(5.1 kB
view details)
File details
Details for the file pyocc-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: pyocc-0.0.3-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 030db46379fcebb4270ed586233244d5a52538b823e98d0ba6bf35e84f7daff5 |
|
MD5 | 7d5f185b2dfadf44119c9a67977bd35c |
|
BLAKE2b-256 | 9fbb80d79b64dfb9143f92fccb23c1a302319682ef530149ae563e684efe6cc8 |