stdnum.imsi

IMSI (International Mobile Subscriber Identity).

The IMSI (International Mobile Subscriber Identity) is used to identify mobile phone users (the SIM).

>>> is_valid('429011234567890')
True
>>> is_valid('439011234567890')  # unknown MCC
False
>>> split('429011234567890')
('429', '01', '1234567890')
>>> split('310150123456789')
('310', '150', '123456789')
>>> info('460001234567890')['mcc']
'460'
>>> str(info('460001234567890')['country'])
'China'
stdnum.imsi.compact(number)

Convert the IMSI number to the minimal representation. This strips the number of any valid separators and removes surrounding whitespace.

stdnum.imsi.info(number)

Return a dictionary of data about the supplied number.

stdnum.imsi.is_valid(number)

Checks to see if the number provided is a valid IMSI.

stdnum.imsi.split(number)

Split the specified IMSI into a Mobile Country Code (MCC), a Mobile Network Code (MNC), a Mobile Station Identification Number (MSIN).

Previous topic

stdnum.imei

Next topic

stdnum.isan