Python module that converts numbers to Spanish numerals and vice versa.
Project description
spanum
The spanum Python module converts numbers to Spanish numerals and vice versa.
Installation
pip install spanum
Functions
spanum.numbers_to_words.number_to_words(n: int) -> str
-
Description: Converts a number to its Spanish word representation.
-
Parameters:
n(int): Any number you want to convert.
-
Returns: The Spanish word for the provided number (str).
spanum.words_to_numbers.words_to_number(text: str) -> int
-
Description: Converts a Spanish numeral to an integer.
-
Parameters:
text(str): Any Spanish numeral you want to convert.
-
Returns: The integer value corresponding to the provided Spanish numeral (int).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file spanum-0.0.2-py3-none-any.whl.
File metadata
- Download URL: spanum-0.0.2-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
44e215dc5d20d1b62e24b8d6505ad7669316d111eeff2aadd5306f701babe50e
|
|
| MD5 |
e783b46f01d30c1c8e8328b577348da9
|
|
| BLAKE2b-256 |
5c464f3f655b2e4715341063cd90c95c9c477e079620125cce2eb5ffe31650d7
|