phone-iso3166
Phonenumber to Country (ISO 3166-1) mapping
Decision gist · record as of 2026-08-14
No. The package is abandoned (no maintenance for 1457 days) with outdated Python classifiers and an unverified claim of Python 3.6+ support. While it has no dependencies and a permissive license, the stale reference data and lack of maintenance make it risky for production use. For active alternatives or a maintained fork, check the repository or consider phonenumbers + pycountry.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- The package declares support for Python 3.6+ in its description, but classifiers only list up to 3.5; actual compatibility with modern Python versions is unverified.
- Low install friction with no runtime dependencies.
- However, the package is abandoned—last release was 1457 days ago with no maintenance activity.
License · maintenance · safety
MIT (permissive) — MIT license (permissive) means you can use, modify, and distribute this package freely with minimal restrictions, provided you retain the license notice.
last release 2022-08-18 (1457 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 126,879 downloads/mo, #11,759 on PyPI
Alternatives
Verify before relying
pip install phone-iso3166
from phone_iso3166.country import phone_country
phone_country('+1 202-456-1111') # Returns 'US'
from phone_iso3166.network import network
network(238, 1) # Returns ('DK', 'TDC Mobil')- Whether the package actually works on Python 3.6+ and PyPy 3.6+ as claimed in the description, given the outdated classifiers.
- Whether the phone number and network code databases are current or stale after 1457 days without maintenance.
- Whether there are known issues or breaking changes in the latest release that the abandoned status might mask.
What it is and what it does
Phone-ISO3166 is a lightweight, dependency-free library that converts international phone numbers (E.164 format) and mobile network codes (E.212 format) into ISO 3166-1 alpha-2 country codes. It also provides reverse lookups to find network operators by country. The package is designed for simple, direct mapping—it does not attempt to parse or validate phone numbers in various formats; it assumes input is already in a standardized form.
The library is useful when you need to determine a phone number's country of origin or find which mobile operator serves a given network code. It works by looking up the phone number prefix or network code pair against built-in reference tables. For fuzzy or locale-specific phone number parsing, the description suggests pairing it with external packages like phonenumbers or pycountry.
Use it for
- Determine the country of origin for an international phone number in E.164 format.
- Look up the mobile network operator name and country for a given MCC (mobile country code) and MNC (mobile network code) pair.
- Reverse-lookup all mobile operators in a specific country by ISO country code.
- Enrich phone number data with country information for analytics or routing workflows.
- Validate or categorize incoming calls by their country of origin.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No.
The package is abandoned (no maintenance for 1457 days) with outdated Python classifiers and an unverified claim of Python 3.6+ support. While it has no dependencies and a permissive license, the stale reference data and lack of maintenance make it risky for production use. For active alternatives or a maintained fork, check the repository or consider phonenumbers + pycountry.
Install
phone-iso3166 on PyPI
Before you install
Low install friction with no runtime dependencies. However, the package is abandoned—last release was 1457 days ago with no maintenance activity. The classifiers list Python 2.7 and 3.3–3.5, which are all end-of-life; current Python support is unspecified.
The package declares support for Python 3.6+ in its description, but classifiers only list up to 3.5; actual compatibility with modern Python versions is unverified.
License in practice
MIT license (permissive) means you can use, modify, and distribute this package freely with minimal restrictions, provided you retain the license notice.
Quickstart
pip install phone-iso3166
from phone_iso3166.country import phone_country
phone_country('+1 202-456-1111') # Returns 'US'
from phone_iso3166.network import network
network(238, 1) # Returns ('DK', 'TDC Mobil')
Verify before relying
- Whether the package actually works on Python 3.6+ and PyPy 3.6+ as claimed in the description, given the outdated classifiers.
- Whether the phone number and network code databases are current or stale after 1457 days without maintenance.
- Whether there are known issues or breaking changes in the latest release that the abandoned status might mask.
Package facts
| License | MIT permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Abandoned 1,457 days since the last release |
| First released | |
| Downloads | 126,879 / month, #11,759 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseNatural Language :: EnglishProgramming Language :: PythonProgramming Language :: Python :: 2.7Programming Language :: Python :: 3.3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5 |
Evidence: phone_iso3166-0.4.1-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “phone number to country code”
- phone-iso3166Maps international phone numbers and mobile network codes to ISO…
- django-phonenumbersProvides a Django model field and form field for storing, validating,…
- phonenumbersliteParses, validates, formats, and analyzes international phone numbers…
Give your agent the search over MCP, or paste the wish link into any chat.
More Utilities packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.
Install it if you need to display or transform source code.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
See also iso18245 · phonenumbers · phonenumberslite · country_list · pycountry-convert · iso3166 · pycountry · django-phonenumber-field · django-phonenumbers · IP2Location