Skip to main content

A library to convert numbers to words and vice versa

Project description

NumRender Library

A simple Python library to convert numbers to their word representations and vice versa.

Installation

# Installation instructions will be added here once published
# For now, you can install it locally:
pip install NumRender

Usage

import NumRender

# Convert words to number
number = NumRender.words_to_number("three hundred and twenty five")
print(number)  # Output: 325

number = NumRender.words_to_number("five thousand")
print(number)  # Output: 5000

# Convert number to words
words = NumRender.number_to_words(1234)
print(words) # Output: one thousand two hundred and thirty-four (example, actual output might vary slightly based on implementation)

words = NumRender.number_to_words(5000)
print(words) # Output: five thousand

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details (if added).

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

numrender-0.1.1.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

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

numrender-0.1.1-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file numrender-0.1.1.tar.gz.

File metadata

  • Download URL: numrender-0.1.1.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for numrender-0.1.1.tar.gz
Algorithm Hash digest
SHA256 fc2e910ea259bcdcf00ec3ba0740f81dd665e092b584157d9907b451945ee533
MD5 39d9eddea426cc9d88feb18bb624c5b9
BLAKE2b-256 80dd8ad89d064704de35ad1aa462e4f40baa40f40920eca0f44abc2c1a861559

See more details on using hashes here.

File details

Details for the file numrender-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: numrender-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for numrender-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1f24c751c8aeeda91b11ab7be63c1e3a1c2285fdb1a86764662966e5b376159b
MD5 2e355f7c7793afdc1c72dbac2241d986
BLAKE2b-256 d7a720d94768a8a643c9f215eeecff86860a39e241481456ea22a9c4a4083056

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