# ls0f/phone

手机号码归属地库 、数据更新:2023年12月

Repository: https://github.com/ls0f/phone
Canonical: https://ross.abutalabs.com/products/ls0f-phone
Homepage: https://github.com/ls0f/phone
Language: Python
License Family: other
Last push: 2024-09-24T03:12:11+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 4475, "days_push": 708, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1084, forks 233 (observed 2026-08-28T04:03:31.593893+00:00)

## What it is
A Python library that looks up the Chinese province, city, zip code, area code, and carrier for a mobile phone number prefix using an offline phone.dat database (updated December 2023). The binary data file can also be parsed in other languages such as Go, Node, PHP, and Lua.

## Use cases
- look up which province and city a Chinese mobile number belongs to
- find the carrier (China Mobile, Unicom, Telecom) for a phone number
- validate and enrich user phone numbers during registration
- parse phone.dat in Go, Node, PHP, or Lua
- offline phone number geolocation without external API calls

## When to choose
- you need fast, offline Chinese mobile number location lookup in Python
- you want a lightweight library with no external API dependency
- you need the carrier type along with region info

## When to avoid
- you need international phone number lookup outside China
- you need frequently updated carrier data (last update December 2023)
- you need landline number lookup - only mobile prefixes are supported

## Facets
- artifact type: library
- maturity: maintenance
- function: search-engine, data-science, parser
- domain: developer-tools, data-science
- platform: python, cross-platform
- tags: phone-number-lookup, china-mobile, phone-location, offline-database, phone-dat, telecom

## Member repositories
- ls0f/phone (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:31.593893+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:50:03.693713+00:00, confidence not recorded.
  - readme: https://github.com/ls0f/phone (fetched 2026-08-28T04:03:31.593893+00:00, sha 1aa4eaae1dfa)
  - homepage: https://github.com/ls0f/phone (fetched 2026-08-29T12:53:06.674632+00:00, sha a10f65a42d17)
  - registry_pypi: https://pypi.org/pypi/phone/json (fetched 2026-08-29T12:53:06.684120+00:00, sha 43896ff01621)
- Data as of 2026-08-30T08:39:29.467469+00:00.
