Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

numtag

numtag finds every number in a text. For each number it gives the exact words, their character offsets, the value and the kind.

from numtag import tag_numbers

tag_numbers("comprou duas dúzias de ovos e um milhão de euros", "pt-PT")
# [NumberMention(char_span=(8, 19), text='duas dúzias', value='24', kind=Kind.CARDINAL, ...),
#  NumberMention(char_span=(30, 39), text='um milhão', value='1000000', kind=Kind.CARDINAL, ...)]

A value is a digit string with no limit on its length: "24", "-2.5" or "1/3". numtag never converts a value to int or float, so no rounding changes a digit. Convert it with int(), decimal.Decimal() or fractions.Fraction() when you need a number.

The language rules are data files in numtag/lexicon/, one per language, with the source of each rule in the file.

Metadata

Release files for numtag 0.0.1a2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for numtag 0.0.1a2
File Size Uploaded Provenance Actions
numtag-0.0.1a2.tar.gz 10.1 kB Without provenance Details for numtag-0.0.1a2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for numtag 0.0.1a2
File Interpreter ABI Platform Actions
numtag-0.0.1a2-py3-none-any.whl Python 3 none any Details for numtag-0.0.1a2-py3-none-any.whl

Total release size: 18.2 kB

Release files / numtag-0.0.1a2.tar.gz

Download URL numtag-0.0.1a2.tar.gz
Size 10.1 kB
Tags Source
SHA-256 checksum
How to use checksums
1a0840de644b2ae3ef4b9c2d9444dac1883b6d8e851b762e49bfc1255031a360
BLAKE2b-256 checksum
How to use checksums
0dcab86540a4be50ee656f125a9be1003f22d8106f03941b0d0a1706be62399b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / numtag-0.0.1a2-py3-none-any.whl

Download URL numtag-0.0.1a2-py3-none-any.whl
Size 8.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9a1fa099e274c74e4847ce256ca051d126de22f3fec265db1632a5806001c203
BLAKE2b-256 checksum
How to use checksums
0b3fc006459da2f0c09a93533320dfc5a8e0bf476d2ee031904e4e501023a817
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for numtag 0.0.1a2

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.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page