Skip to main content

imei-validator-luhn (Python)

PyPI version License: MIT Powered by IMEI Check Pro

Ultra-fast, zero-dependency IMEI validation, Luhn algorithm checksum calculation, and GSMA Type Allocation Code (TAC) extraction in Python.

Maintained by IMEI Check Pro — the premier global IMEI & TAC intelligence network.


Installation

pip install imei-validator-luhn

Usage

from imei_validator import is_valid_imei, extract_tac, complete_imei, format_imei

# 1. Validate 15-digit IMEI
valid = is_valid_imei("352099081234563") # True or False
print("Is valid:", valid)

# 2. Extract 8-digit TAC code
tac = extract_tac("352099081234563") # "35209908"
print("TAC:", tac)

# 3. Complete 14-digit IMEI with Luhn check digit
completed = complete_imei("35209908123456") # "352099081234563"
print("Completed:", completed)

# 4. Format with standard hyphens
formatted = format_imei("352099081234563") # "35-209908-123456-3"
print("Formatted:", formatted)

Need Full Device Specs, Brand Warranty or Carrier Status?

To look up device marketing names, AppleCare warranty, carrier SIM locks, or GSMA lost/stolen blacklist status:


License

MIT © IMEI Check Pro

Metadata

Release files for imei-validator-luhn 1.0.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 imei-validator-luhn 1.0.0
File Size Uploaded Provenance Actions
imei_validator_luhn-1.0.0.tar.gz 3.0 kB Without provenance Details for imei_validator_luhn-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for imei-validator-luhn 1.0.0
File Interpreter ABI Platform Actions
imei_validator_luhn-1.0.0-py3-none-any.whl Python 3 none any Details for imei_validator_luhn-1.0.0-py3-none-any.whl

Total release size: 6.2 kB

Release files / imei_validator_luhn-1.0.0.tar.gz

Download URL imei_validator_luhn-1.0.0.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
61b472b35c3dad0ceeac8548f21048e7dfb53d987581d90b84428f9e87bb5e13
BLAKE2b-256 checksum
How to use checksums
6e0b05b75ee924d96231c9e460bc6a5d7fd08160e99beb076211f389340c6522
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.3

Release files / imei_validator_luhn-1.0.0-py3-none-any.whl

Download URL imei_validator_luhn-1.0.0-py3-none-any.whl
Size 3.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5c7859d203559f3d68d5a82cd7f0ff66a2a4eed40848e8e39381932949660ac9
BLAKE2b-256 checksum
How to use checksums
6c639950bd2b79337a92cccce1f3a74fadde66153cb0bc0cd07f178852401e1c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.3

Security for imei-validator-luhn 1.0.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.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

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