Skip to main content

Utilities for converting numbers, dates, and text to/from Khmer

Project description

khutils – Khmer Language Utilities

khutils is a lightweight and versatile library designed to simplify working with the Khmer language in software development. It provides utilities for converting and formatting numbers, dates, and text between English and Khmer, making it ideal for applications targeting Cambodian users.

Key Features

  • Number Conversion

    • Convert English digits (1234) to Khmer digits (១២៣៤) and vice versa.
  • Date Formatting

    • Format Python dates into readable Khmer text, including month names.
  • Text Conversion (Planned)

    • Convert numbers into full Khmer words (e.g., 123"មួយរយម្ភៃបី").
  • Lightweight & Easy to Integrate

    • No heavy dependencies.
    • Works seamlessly in Python projects, with wrappers available for Node.js (npm) and PHP (Composer).

Use Cases

  • Localized web applications and mobile apps for Cambodian users.
  • Accounting, billing, and reporting systems requiring Khmer number formatting.
  • Date pickers, calendars, or document generation with Khmer text support.

Installation

Python (PyPI):

pip install khutils

Project details


Download files

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

Source Distribution

khutils-1.0.3.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

khutils-1.0.3-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file khutils-1.0.3.tar.gz.

File metadata

  • Download URL: khutils-1.0.3.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.6

File hashes

Hashes for khutils-1.0.3.tar.gz
Algorithm Hash digest
SHA256 e40963d18203b9a4b361819e97794507f2b05cdb02691afff65e3e7bf8c9cfa4
MD5 2ab8318d55ad66bfab2b19e08d836867
BLAKE2b-256 9329434591ba424188eaa196b48ddfe2358c15bebcd0f6b309cbb012187cee55

See more details on using hashes here.

File details

Details for the file khutils-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: khutils-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.6

File hashes

Hashes for khutils-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 45b3c76360960149fa194cc735d158afeeb1212d3d939b513a11c6a73ffc2081
MD5 eb93905cc58e909808745eb2f4fb29d2
BLAKE2b-256 e2c864380a2552cdf2214c67ba79a81cde232b5535c8670fab37b87338c8e65a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page