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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: numrender-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 84b1be571cd7a91ebc0fa696646e4b76f67326cb595ddc5d81ebf866018b7406
MD5 093f5e93d493846925f302ffa95f4a92
BLAKE2b-256 fd2ede783e5127ae16ec8dafafcf37bdbdccacf33649d7d3824a36f3ecd226ea

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