Skip to main content

Convert Chinese (or Japanese) numbers to numeric digits (21)

Project description


Convert Chinese (or Japanese) numbers (e.g. 二十一) to numeric digits (21).

Similar in idea to

The resulting numbers can be sorted using


>>> from chinesenumber import NumberParser
>>> parser = NumberParser()
>>> parser.numberify('第二十二课')
>>> parser.simple_parse('百六十五')


pip install chinesenumber

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for chinesenumber, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size chinesenumber-0.1.0.tar.gz (2.1 kB) File type Source Python version None Upload date Hashes View
Filename, size chinesenumber-0.1.0-py3-none-any.whl (3.1 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page