Skip to main content

Khmer Number to Text

A Python library for normalizing and converting Khmer numbers to text, with built-in support for translation.

Features

  • Number Normalization: Clean and standardize Khmer digit strings (១០ -> ដប់).

Installation

Install the package via pip:

pip install km-num2text

Quick Start

The num_normalize function cleans up input strings to ensure they are in a standard format (all numbers are converted to text-based).

from km_num2text import num_normalize

input = "ឆ្នាំ២០២៦ គឺជាឆ្នាំមួយនៅក្នុងសតវត្សទី២១។"

normalized = num_normalize(input)

# ឆ្នាំពីរពាន់ម្ភៃប្រាំមួយ គឺជាឆ្នាំមួយនៅក្នុងសតវត្សទីម្ភៃមួយ។

Metadata

Release files for km-num2text 1.0.1

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

Source distribution (sdist)

Source distribution for km-num2text 1.0.1
File Size Uploaded Provenance Actions
km_num2text-1.0.1.tar.gz 5.4 kB Without provenance Details for km_num2text-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for km-num2text 1.0.1
File Interpreter ABI Platform Actions
km_num2text-1.0.1-py3-none-any.whl Python 3 none any Details for km_num2text-1.0.1-py3-none-any.whl

Total release size: 11.0 kB

Release files / km_num2text-1.0.1.tar.gz

Download URL km_num2text-1.0.1.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
19fd4c85102d3f318eff8bacd02c0ef39194cca326a7a6b1d1ee4d52a555bef4
BLAKE2b-256 checksum
How to use checksums
8ac820a4fe5def594a7338b225328c295ab8c94f9aa7b281e14da4d02e96f002
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.13

Release files / km_num2text-1.0.1-py3-none-any.whl

Download URL km_num2text-1.0.1-py3-none-any.whl
Size 5.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c4352be91490f7d795166023356572103e91ef3f86e8b6d4c967005edf693daf
BLAKE2b-256 checksum
How to use checksums
096372cb2a867781da8430e3a03495a8d3057b939ae3cc04279ffbdfe012ff25
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.13

Security for km-num2text 1.0.1

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.

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