Skip to main content

PyOCC

https://img.shields.io/pypi/v/pyocc.svg https://img.shields.io/travis/starofrainnight/pyocc.svg https://ci.appveyor.com/api/projects/status/75t9t6j0xdel9pdx?svg=true

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.

Metadata

Release files for pyocc 0.0.3

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

Built distribution (wheel)

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

Release files / pyocc-0.0.3-py3-none-any.whl

Download URL pyocc-0.0.3-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
030db46379fcebb4270ed586233244d5a52538b823e98d0ba6bf35e84f7daff5
BLAKE2b-256 checksum
How to use checksums
9fbb80d79b64dfb9143f92fccb23c1a302319682ef530149ae563e684efe6cc8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.0.3 This release

1 release file

0.0.2

1 release file

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