randomandroidphone


Namerandomandroidphone JSON
Version 0.10 PyPI version JSON
download
home_pagehttps://github.com/hansalemaos/randomandroidphone
SummaryGenerates random data (brand, device name, imsi, imei, iccid, phone number ...) for Android cell phones
upload_time2023-08-05 10:40:08
maintainer
docs_urlNone
authorJohannes Fischer
requires_python
licenseMIT
keywords android
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# 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 


```python
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

```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/hansalemaos/randomandroidphone",
    "name": "randomandroidphone",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "android",
    "author": "Johannes Fischer",
    "author_email": "aulasparticularesdealemaosp@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/1b/1a/3021471fc7f9fef8f03822db74c131b370bab665ca22afb793587a10cb1c/randomandroidphone-0.10.tar.gz",
    "platform": null,
    "description": "\r\n# Generates random data (brand, device name, imsi, imei, iccid, phone number ...) for Android cell phones  \r\n\r\n## pip install randomandroidphone \r\n\r\n#### Tested against Windows 10 / Python 3.10 / Anaconda \r\n\r\n\r\n```python\r\nGenerate multiple sets of associated data for phone numbers.\r\n\r\nArgs:\r\n\tphonenumber (str or None, optional): A specific phone number to use. If not provided, random phone numbers\r\n\t\twill be generated based on the phone number format without the country code.\r\n\tqty (int, optional): The number of sets of associated data to generate. Defaults to 1.\r\n\r\nReturns:\r\n\tpandas.DataFrame: A DataFrame containing multiple sets of associated data for the generated phone numbers.\r\n\r\nExample:\r\n# For Brazil\r\nfrom randomandroidphone import RandomPhone\r\nstates = [\r\n\t11,\r\n\t12,\r\n\t13,\r\n\t14,\r\n\t15,\r\n\t16,\r\n\t17,\r\n\t18,\r\n\t19,\r\n\t21,\r\n\t22,\r\n\t24,\r\n\t27,\r\n\t28,\r\n\t31,\r\n\t32,\r\n\t33,\r\n\t34,\r\n\t35,\r\n\t37,\r\n\t38,\r\n\t41,\r\n\t42,\r\n\t43,\r\n\t44,\r\n\t45,\r\n\t46,\r\n\t47,\r\n\t48,\r\n\t49,\r\n\t51,\r\n\t53,\r\n\t54,\r\n\t55,\r\n\t61,\r\n\t62,\r\n\t63,\r\n\t64,\r\n\t65,\r\n\t66,\r\n\t67,\r\n\t68,\r\n\t69,\r\n\t71,\r\n\t73,\r\n\t74,\r\n\t75,\r\n\t77,\r\n\t79,\r\n\t81,\r\n\t82,\r\n\t83,\r\n\t84,\r\n\t85,\r\n\t86,\r\n\t87,\r\n\t88,\r\n\t89,\r\n\t91,\r\n\t92,\r\n\t93,\r\n\t94,\r\n\t95,\r\n\t96,\r\n\t97,\r\n\t98,\r\n\t99,\r\n]\r\ncellphone = RandomPhone(\r\n\tcountry=\"Brazil\",\r\n\tphone_format_without_country=(\r\n\t\tstates,\r\n\t\t(9,),\r\n\t\tlist(range(0, 9999)),\r\n\t\tlist(range(0, 9999)),\r\n\t),\r\n)\r\ncellphone.df = cellphone.df.loc[\r\n\t(cellphone.df.aa_android_version >= 7) & (cellphone.df.aa_android_version < 10)\r\n]\r\ncellphone.df2 = cellphone.df2.loc[\r\n\t(cellphone.df2.aa_network.isin([\"Oi\", \"Vivo\", \"TIM\"]))\r\n]\r\nda = cellphone.get_phone_data(phonenumber=None, qty=5)\r\nprint(da)\r\n\r\n#   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\r\n# 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\r\n# 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\r\n# 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\r\n# 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\r\n# 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\r\n\r\n```\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Generates random data (brand, device name, imsi, imei, iccid, phone number ...) for Android cell phones",
    "version": "0.10",
    "project_urls": {
        "Homepage": "https://github.com/hansalemaos/randomandroidphone"
    },
    "split_keywords": [
        "android"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "02ad8ff532a637f635b1765bcf68ebae9ed7325c0ba53fee875ea533248d1b2a",
                "md5": "7d9741427837fee7be4161fba55426ef",
                "sha256": "f5f2d9171de2d9a275235507c373552daa4a271b4a025b3f5d0e216cc0c35d0e"
            },
            "downloads": -1,
            "filename": "randomandroidphone-0.10-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "7d9741427837fee7be4161fba55426ef",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 183558,
            "upload_time": "2023-08-05T10:40:05",
            "upload_time_iso_8601": "2023-08-05T10:40:05.887224Z",
            "url": "https://files.pythonhosted.org/packages/02/ad/8ff532a637f635b1765bcf68ebae9ed7325c0ba53fee875ea533248d1b2a/randomandroidphone-0.10-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1b1a3021471fc7f9fef8f03822db74c131b370bab665ca22afb793587a10cb1c",
                "md5": "a1996754ce60b3e8aadcb130ef0a62d8",
                "sha256": "e767fc33389cb90ac5a499239017e8115a84f3b0ed5422aa2c7f1ac3aa5787af"
            },
            "downloads": -1,
            "filename": "randomandroidphone-0.10.tar.gz",
            "has_sig": false,
            "md5_digest": "a1996754ce60b3e8aadcb130ef0a62d8",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 181850,
            "upload_time": "2023-08-05T10:40:08",
            "upload_time_iso_8601": "2023-08-05T10:40:08.685171Z",
            "url": "https://files.pythonhosted.org/packages/1b/1a/3021471fc7f9fef8f03822db74c131b370bab665ca22afb793587a10cb1c/randomandroidphone-0.10.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-08-05 10:40:08",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "hansalemaos",
    "github_project": "randomandroidphone",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "randomandroidphone"
}
        
Elapsed time: 0.21871s