Skip to main content

ChineseNumber

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

Similar in idea to https://github.com/akshaynagpal/w2n

The resulting numbers can be sorted using https://github.com/SethMMorton/natsort

Usage

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

Installation

pip install chinesenumber

Metadata

Release files for chinesenumber 0.1.0

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

Source distribution (sdist)

Source distribution for chinesenumber 0.1.0
File Size Uploaded Provenance Actions
chinesenumber-0.1.0.tar.gz 2.1 kB Without provenance Details for chinesenumber-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 5.2 kB

Release files / chinesenumber-0.1.0.tar.gz

Download URL chinesenumber-0.1.0.tar.gz
Size 2.1 kB
Tags Source
SHA-256 checksum
How to use checksums
948b3754666568e16e948f1fa8594d50fc710471c8838d2c8e7e6ddcbe3843c2
BLAKE2b-256 checksum
How to use checksums
990a1629e425d2f19ca695684b19fb7fdb98e23837abb9e72a6a11f7fa5515db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/0.11.5 CPython/2.7.15 Darwin/17.7.0

Release files / chinesenumber-0.1.0-py3-none-any.whl

Download URL chinesenumber-0.1.0-py3-none-any.whl
Size 3.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8adb540777bc001dce2ead0acb0f414109b103ac780a25503a53a32b7b0cd552
BLAKE2b-256 checksum
How to use checksums
48cae7f5979e1df4106d1127d550a0c6247f93ce4c67b9205473183f382a70ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/0.11.5 CPython/2.7.15 Darwin/17.7.0

Security for chinesenumber 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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