Skip to main content

Generates random data (brand, device name, imsi, imei, iccid, phone number ...) for Android cell phones

Project description

Generates random data (brand, device name, imsi, imei, iccid, phone number ...) for Android cell phones

pip install randomandroidphone

Tested against Windows 10 / Python 3.10 / Anaconda

Generate multiple sets of associated data for phone numbers.

Args:
	phonenumber (str or None, optional): A specific phone number to use. If not provided, random phone numbers
		will be generated based on the phone number format without the country code.
	qty (int, optional): The number of sets of associated data to generate. Defaults to 1.

Returns:
	pandas.DataFrame: A DataFrame containing multiple sets of associated data for the generated phone numbers.

Example:
# For Brazil
from randomandroidphone import RandomPhone
states = [
	11,
	12,
	13,
	14,
	15,
	16,
	17,
	18,
	19,
	21,
	22,
	24,
	27,
	28,
	31,
	32,
	33,
	34,
	35,
	37,
	38,
	41,
	42,
	43,
	44,
	45,
	46,
	47,
	48,
	49,
	51,
	53,
	54,
	55,
	61,
	62,
	63,
	64,
	65,
	66,
	67,
	68,
	69,
	71,
	73,
	74,
	75,
	77,
	79,
	81,
	82,
	83,
	84,
	85,
	86,
	87,
	88,
	89,
	91,
	92,
	93,
	94,
	95,
	96,
	97,
	98,
	99,
]
cellphone = RandomPhone(
	country="Brazil",
	phone_format_without_country=(
		states,
		(9,),
		list(range(0, 9999)),
		list(range(0, 9999)),
	),
)
cellphone.df = cellphone.df.loc[
	(cellphone.df.aa_android_version >= 7) & (cellphone.df.aa_android_version < 10)
]
cellphone.df2 = cellphone.df2.loc[
	(cellphone.df2.aa_network.isin(["Oi", "Vivo", "TIM"]))
]
da = cellphone.get_phone_data(phonenumber=None, qty=5)
print(da)

#   aa_brand      aa_device aa_manufacturer        aa_model_name  aa_ram_totalmem aa_form_factor   aa_system_on_chip                   aa_gpu  aa_screen_densities              aa_abis  aa_android_sdk_versions  aa_opengl_es_versions  aa_width  aa_height   bb_tac1                                        bb_model1_1        bb_model2_1  bb_total_rating  aa_android_version bb_mac_prefix          cc_imsi          cc_imei              cc_iccid      cc_macaddress cc_phone_number aa_country aa_network  aa_mcc  aa_mnc aa_line    aa_iso
# 0   QSmart         MARK_2          Qsmart               Mark 2             1003          Phone    Mediatek MT6580M                      NaN                  240  armeabi;armeabi-v7a                       28                 131072       480        960  35440811          Digicom Trading PVT Limited QSmart Mark 2       QSmart Mark2            360.0                 9.0      00:0A:00  724112497036871  354408118779849  89550000112497036872  00:0A:00:29:F4:CA   5524970368714     Brazil       Vivo     724      11      55  BR / BRA
# 1    iBall  Slide_Skye_03           iBall  iBall_Slide_Skye_03              948         Tablet  Spreadtrum SC7731E  ARM Mali T820 (600 MHz)                  160  armeabi;armeabi-v7a                       27                 196610       600       1024  91164695  Best IT World (India) Pvt Ltd iBall Slide Skye 03  Iball SlideSkye03            380.0                 8.1      40:45:DA  724638979578075  911646952997003  89550000638979578072  40:45:DA:8E:11:80   5538979578075     Brazil       Vivo     724       6      55  BR / BRA
# 2     DEXP           P410            DEXP                 P410              948         Tablet  Spreadtrum SC7731E  ARM Mali T820 (600 MHz)                  213  armeabi;armeabi-v7a                       27                 196610       800       1280  35495910                              Factor LLC Ursus P410     DEXP UrsusP410            360.0                 8.1      40:45:DA  724169799721846  354959103507751  89550000169799721841  40:45:DA:42:11:26   5597997218460     Brazil         Oi     724      16      55  BR / BRA
# 3  Maximus         Noir_X         Maximus               Noir X              927          Phone  Spreadtrum SC9832E  ARM Mali T820 (680 MHz)                  240  armeabi;armeabi-v7a                       27                 196610       480        854  35917109                Quartel Infotech Ltd Maximus Noir X      Maximus NoirX            360.0                 8.1      40:45:DA  724482984743677  359171090807716  89550000482984743672  40:45:DA:D6:AB:7E   5582984743677     Brazil        TIM     724       4      55  BR / BRA
# 4    AMGOO          AM509           Amgoo                AM509              953          Phone     Mediatek MT6737  ARM Mali T720 (550 MHz)                  240  armeabi;armeabi-v7a                       24                 196609       480        854  35263909       Dragon-Inn Communications Co Ltd AMGOO AM509        Amgoo AM509            360.0                 7.0      00:0A:00  724263935091242  352639091601251  89550000263935091241  00:0A:00:EF:74:67   5563935091242     Brazil        TIM     724       2      55  BR / BRA

Project details


Release history Release notifications | RSS feed

This version

0.10

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

randomandroidphone-0.10.tar.gz (181.8 kB view details)

Uploaded Source

Built Distribution

randomandroidphone-0.10-py3-none-any.whl (183.6 kB view details)

Uploaded Python 3

File details

Details for the file randomandroidphone-0.10.tar.gz.

File metadata

  • Download URL: randomandroidphone-0.10.tar.gz
  • Upload date:
  • Size: 181.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for randomandroidphone-0.10.tar.gz
Algorithm Hash digest
SHA256 e767fc33389cb90ac5a499239017e8115a84f3b0ed5422aa2c7f1ac3aa5787af
MD5 a1996754ce60b3e8aadcb130ef0a62d8
BLAKE2b-256 1b1a3021471fc7f9fef8f03822db74c131b370bab665ca22afb793587a10cb1c

See more details on using hashes here.

File details

Details for the file randomandroidphone-0.10-py3-none-any.whl.

File metadata

File hashes

Hashes for randomandroidphone-0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 f5f2d9171de2d9a275235507c373552daa4a271b4a025b3f5d0e216cc0c35d0e
MD5 7d9741427837fee7be4161fba55426ef
BLAKE2b-256 02ad8ff532a637f635b1765bcf68ebae9ed7325c0ba53fee875ea533248d1b2a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page