Skip to main content

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


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.

spanum-0.0.2-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

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

Hashes for spanum-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 44e215dc5d20d1b62e24b8d6505ad7669316d111eeff2aadd5306f701babe50e
MD5 e783b46f01d30c1c8e8328b577348da9
BLAKE2b-256 5c464f3f655b2e4715341063cd90c95c9c477e079620125cce2eb5ffe31650d7

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