semvec/pypi-packages huggingface dataset:
spanum 0.0.2
Python module that converts numbers to Spanish numerals and vice versa.
Requires Python: >=3.10
Keywords: numbers, numerals, spanish

# 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).