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.2.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.2.0
File Size Uploaded
id_extract-0.2.0.tar.gz 15.6 kB Details

Built distribution (wheel)

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

Total release size: 40.8 kB

Release files / id_extract-0.2.0.tar.gz

Download URL id_extract-0.2.0.tar.gz
Size 15.6 kB
Tags Source
SHA-256 checksum
How to use checksums
0bf2d9bc646fd53f577b67610fd212f971878f6ef29cb5841eb13ecfebef44ca
BLAKE2b-256 checksum
How to use checksums
a7ff448db727749929dca48bf9a7b1af004b061f940e1c8d35cd3592337d0ee1
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.2.0-py3-none-any.whl

Download URL id_extract-0.2.0-py3-none-any.whl
Size 25.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2f0936d9e3682ef5a3f5be5507ce33efaab688da5b86d12d714765b5682aef8c
BLAKE2b-256 checksum
How to use checksums
c141328665eb883c3efbdc2b9d3c903a3a02386f29580079f8eea6d6d41f6480
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

0.3.0

2 release files

This release

0.2.0 This release

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