WordToDigits Package
Author: Abhishek Rawat
This package is used to convert the numbers present in word form in an input passage to the traditional numeric (digits) form. The word representation of numbers could be anywhere in the passage. It works from zero to nine hundred and ninety nine million nine hundred and ninety nine thousand and nine hundred and ninety nine. It also takes care of the decimal part, if present.
An example on how to use the package is shown below:-
import wordtodigits
text1 = 'A car accelerates for five point two one seconds for a distance of one hundred and ten meters.'
print(wordtodigits.convert(text1))
#A car accelerates for 5.21 seconds for a distance of 110 meters.
text2 = 'three thousand and fifty three point five is the final score'
print(wordtodigits.convert(text2))
#3053.5 is the final score
If you find any bugs, or have any suggestions for improvement, contact me at abhishek18.official@gmail.com
Metadata
Release files for wordtodigits 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| wordtodigits-1.0.2.tar.gz | 3.5 kB | Without provenance | Details for wordtodigits-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| wordtodigits-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for wordtodigits-1.0.2-py3-none-any.whl |
Total release size: 7.4 kB
Release files / wordtodigits-1.0.2.tar.gz
| Download URL | wordtodigits-1.0.2.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
42d502a36d6634e5e5c1a502619ef322d02264a3185310955d6fdcfdddb242ef
|
|
BLAKE2b-256 checksum How to use checksums |
9e789a2cc321fe2dd4013cbce85b99da50ddb21db200a9c51c70a14aea3de1b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.4.2 requests/2.21.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.1
|
Release files / wordtodigits-1.0.2-py3-none-any.whl
| Download URL | wordtodigits-1.0.2-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
810cf406b1731d22c39ae0879c547072d122ad46a0068d8a9191b76c4d9d0b09
|
|
BLAKE2b-256 checksum How to use checksums |
124bc8b2018a6cd15f0a5a9113ba34f8fc25519c220c5f3e7a3dad88def62cc3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.4.2 requests/2.21.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.1
|
Security for wordtodigits 1.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.