Skip to main content

id-extract

Find structured identifiers in text. This package returns character offsets. It does not replace values or open files.

pip install id-extract
from id_extract import extract

for hit in extract("ABN 51 824 753 556 and ada@example.com"):
    print(hit["type"], hit["text"], hit["start"], hit["end"])

The default is every bundled country. Narrow the set with countries=["AU", "GB"]. UK is accepted as GB. State, provincial, and industry patterns stay off until you pass opt_in="all" or a list of keys.

Full guide, including one page per country with official sources:

A hit means the text looked like that identifier. It is not a legal determination.

Metadata

Release files for id-extract 0.3.0

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

Source distribution (sdist)

Source distribution for id-extract 0.3.0
File Size Uploaded
id_extract-0.3.0.tar.gz 18.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for id-extract 0.3.0
File Interpreter ABI Platform
id_extract-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 46.8 kB

Release files / id_extract-0.3.0.tar.gz

Download URL id_extract-0.3.0.tar.gz
Size 18.5 kB
Tags Source
SHA-256 checksum
How to use checksums
1238d25d283ffc330030285fca742a0e6df118494589e513c029d93ef461ebd6
BLAKE2b-256 checksum
How to use checksums
f69c2f89a1946b4ccad4a23ebcc5c721d7b5aa2bf7ad8f357f825f71510bd5ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 22, 2026.

Transparency log

Release files / id_extract-0.3.0-py3-none-any.whl

Download URL id_extract-0.3.0-py3-none-any.whl
Size 28.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2ae578cad740d2eafbfb463c3e3562c7bc98f1d329d5a3c3c1feace6e02d1f0c
BLAKE2b-256 checksum
How to use checksums
08b893bfe93e24fb862f9f1e1b8fc9f9f6875e93430c5f0f31cc3037cc4848bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 22, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.0

2 release files

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