Skip to main content

A package to convert digits into Nepali and English words.

Project description

digits_to_word_nepali

A Python package to convert digits into Nepali and English words.

Features

  • Convert numerical digits into Nepali words.
  • Convert numerical digits into English words.
  • Convert Nepali Unicode numbers to English numbers.
  • Supports currency formatting in both Nepali and English.
  • Handles decimal numbers correctly.
  • Simple and easy to use.

Installation

You can install the package using:

pip install digits_to_word_nepali

Usage

from digits_to_word_nepali import digit_to_nepali_words

# Convert a number to Nepali words
result = digit_to_nepali_words(1234)
print(result)  # Output: "एक हजार दुई सय चौतीस"

# Convert a number with decimals
result = digit_to_nepali_words(1234, {'include_decimal': True})
print(result)  # Output: "एक हजार दुई सय चौतीस"

Running Tests

To run the tests, navigate to the project directory and use:

pytest tests/

Ensure you have pytest installed:

pip install pytest

License

This project is licensed under the MIT License - see the LICENSE file for details.

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

digits_to_word_nepali-0.1.0.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

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

digits_to_word_nepali-0.1.0-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file digits_to_word_nepali-0.1.0.tar.gz.

File metadata

  • Download URL: digits_to_word_nepali-0.1.0.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for digits_to_word_nepali-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6496ebdb7916d0e7edff33f09b20c75996fb18db8e3d7dc4cc3cfbf1f0a622f3
MD5 24e6355ccf15b3a163692a94e6dc767c
BLAKE2b-256 69174cb1e402218a9bf08b1cf79a4e572e55dc602b37c6914f6e5bd891af8238

See more details on using hashes here.

File details

Details for the file digits_to_word_nepali-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for digits_to_word_nepali-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b35ce81e9affc8a2c3f9dbced933d30a00c6feb30e4dff9f1f38a842e4a3ab01
MD5 8f7c9baebc0e3dcce05b74088f058b7f
BLAKE2b-256 c3cd257980662051ae0b86c9275c0f779dd1b450bc91c6672604bcd58b923729

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