text2numde
This python package converts numbers written as text into float or integer values.
It can furthermore:
- Validate a text to see if it represents a numbers
- Replace numbers in sentences without modifying the sentence around the numbers.
Example usage
>>> from text2numde import text2num, is_number, sentence2num
>>> text2numde('Eins')
1
>>> text2num('Einhundertunddrei')
103
>>> text2numd'Vierzehnkommaachtneundrei')
14.893
>>> is_number('Einhundertunddrei')
True
>>> is_number('Zehnzehnhundert')
False
>>> sentence2num('Ich habe zwei Hunde und vierzig Vögel.')
Ich habe 2 Hunde und 40 Vögel.
Metadata
Release files for text2numde 1.0
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 |
|---|---|---|---|---|
| text2numde-1.0.tar.gz | 3.7 kB | Without provenance | Details for text2numde-1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| text2numde-1.0-py3-none-any.whl | Python 3 | none | any | Details for text2numde-1.0-py3-none-any.whl |
Total release size: 9.0 kB
Release files / text2numde-1.0.tar.gz
| Download URL | text2numde-1.0.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0ff319cbc266548e24b02ffe0fde91e30c3b9b0280a850d947ed94f04bcac3a3
|
|
BLAKE2b-256 checksum How to use checksums |
3657845c6e55803d262df413d7421997da9898db1a236506790516652a9cf3f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
|
Release files / text2numde-1.0-py3-none-any.whl
| Download URL | text2numde-1.0-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
da2eceacedbd1435d543257c5671a0ac666d69b2df9d919e4f86d9b3a6bd6b1c
|
|
BLAKE2b-256 checksum How to use checksums |
1d2c3e56b8d9f7adb31636236726c1e7820fe669709da3e7fc6b32930e651531
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
|
Security for text2numde 1.0
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.