cnum
cnum is a Python library for changing int and float value to Chinese numeral format string.
Chinese numeral format is adopted following languages:
- Japanese
- Simplified Chinese
- Traditional Chinese
- Korean
For each languages
Installation
Use the package manager pip to install foobar.
pip install cnum
Usage
import cnum
# returns Japanese styled numeral string.
cnum.jp(123456789.123456789)
'1億2345万6789 1分2厘3毛4糸5忽'
# returns simplified Chinese styled numeral string.
cnum.scn(123456789.12345)
'1亿2345万6789 1分2厘3毫4丝5忽'
# returns traditional Chinese styled numeral string.
cnum.tcn(123456789.12345)
'1億2345萬6789 1分2厘3毫4絲5忽'
# returns Korean styled numeral string.
cnum.kr(123456789.12345)
'1억2345만6789 1分2厘3毛4糸5忽'
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
Metadata
Release files for cnum 0.0.6
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 | |
|---|---|---|---|---|
| cnum-0.0.6.tar.gz | 3.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cnum-0.0.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.6 kB
Release files / cnum-0.0.6.tar.gz
| Download URL | cnum-0.0.6.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fb433ba7c6c38ac37010111c3eebb63d74e405ba4c9c27fa718d4b047cb198d0
|
|
BLAKE2b-256 checksum How to use checksums |
12d9c39c9fada73ec607c2b9b869335e52068d29350572d3da990a76c0b4a450
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.7
|
Release files / cnum-0.0.6-py3-none-any.whl
| Download URL | cnum-0.0.6-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
65aebc435b99c1f50e697b9769da77f060b4fe2f1059c3d98fdf2713f62e2a37
|
|
BLAKE2b-256 checksum How to use checksums |
723ef9e667b72f6374033f4b5846acf4982ae2b9b14466339c44f095aae3cec3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.7
|
Security for cnum 0.0.6
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.