Skip to main content

Easy conversion from number to text (Spanish).

Project description

Examples

# Python 2
from random import randint
from num2es import TextNumber

while True:
n = TextNumber(randint(0, 999999999999))
print (n.number)
print (n.nice_repr())
print unicode(n)
raw_input()

# Python 3
from random import randint
from num2es import TextNumber

while True:
n = TextNumber(randint(0, 999999999999))
print (n.number)
print (n.nice_repr())
print (n)
input()

Output:

464315924
464.315.924
cuatrocientos sesenta y cuatro millones trescientos quince mil novecientos
veinticuatro

411738837
411.738.837
cuatrocientos once millones setecientos treinta y ocho mil ochocientos treinta
y siete

244850467
244.850.467
doscientos cuarenta y cuatro millones ochocientos cincuenta mil cuatrocientos
sesenta y siete

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

num2es-1.0.0a1-py3.zip (5.3 kB view details)

Uploaded Source

num2es-1.0.0a1-py2.zip (5.5 kB view details)

Uploaded Source

Built Distributions

num2es-1.0.0a1-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

num2es-1.0.0a1-py2-none-any.whl (4.8 kB view details)

Uploaded Python 2

File details

Details for the file num2es-1.0.0a1-py3.zip.

File metadata

  • Download URL: num2es-1.0.0a1-py3.zip
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for num2es-1.0.0a1-py3.zip
Algorithm Hash digest
SHA256 6e7197fb669b6c75a7825537e489c394ed8492fdd16458be4ab27431ccb25556
MD5 ac52fb04e26905c2093f8a24b6eb3ee2
BLAKE2b-256 131ff1a4d8d27da65f20ac931cb464c110aeb0dbc9d6595b07a6a0b90e560018

See more details on using hashes here.

File details

Details for the file num2es-1.0.0a1-py2.zip.

File metadata

  • Download URL: num2es-1.0.0a1-py2.zip
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for num2es-1.0.0a1-py2.zip
Algorithm Hash digest
SHA256 af4b86a48f32d6507a0fb43c48a07e060406ef356e6f76d0fdf5d27f9c737b7e
MD5 0ef33a0d58171633c95b4c7b2e97d9ea
BLAKE2b-256 ab5d329b35b9695240c5e835ee74b16f74d00e9920b6df4d04081b16b2ee8282

See more details on using hashes here.

File details

Details for the file num2es-1.0.0a1-py3-none-any.whl.

File metadata

File hashes

Hashes for num2es-1.0.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 7986655a23f9e00086dfb538d1659c79ebf02235c3eb122dd1da742d975c6b65
MD5 a5f94a799d29e503f80a5537da0cfd33
BLAKE2b-256 dbdde7f8f72c3df616f73898a039349bf5df1756aa5e00aad04a48b2bc65f831

See more details on using hashes here.

File details

Details for the file num2es-1.0.0a1-py2-none-any.whl.

File metadata

File hashes

Hashes for num2es-1.0.0a1-py2-none-any.whl
Algorithm Hash digest
SHA256 f4c3e9c2d2738a2999642f50ae27d9d508478fe0f88ce7e30a82ed542b1e02e7
MD5 f0a5e4eb41ee4834098f06ec46c74dab
BLAKE2b-256 0fb93c0c43e71e69844ce62659384f6520186a7f485929c319e79fed37525304

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page