winandrodumpi


Namewinandrodumpi JSON
Version 0.10 PyPI version JSON
download
home_pagehttps://github.com/hansalemaos/winandrodumpi
SummaryAndroid Window dumper
upload_time2024-12-31 22:39:06
maintainerNone
docs_urlNone
authorJohannes Fischer
requires_pythonNone
licenseMIT
keywords automation android botting
VCS
bugtrack_url
requirements Cython numpy setuptools
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# Android Window dumper

Android window dumper ```cmd window dump-visible-window-views``` to pandas DataFrame

```pip install winandrodumpi```

Cython and a C compiler must be installed! The module will be compiled the first time you import it!

```py
import pandas as pd
from cythondfprint import add_printer
from winandrodumpi import parse_window_elements
import numpy as np

add_printer(1)
allparsed = parse_window_elements(
    dump_cmd=[
        "adb",
        "-s",
        "127.0.0.1:5556",
        "shell",
        "cmd window dump-visible-window-views",
    ],
)
alldfs = []
itemindex = 0
for parsed in allparsed:
    try:
        df = pd.DataFrame.from_dict(parsed, orient="index", dtype=object)
        df2 = np.array_split(df, df.loc[~df["id"].isna()].index)
        for item in df2:
            alldfs.append(item.ffill().bfill().assign(aa_itemindex=itemindex))
            itemindex += 1
    except Exception as e:
        print(e)
df = pd.concat(alldfs, ignore_index=True)
print(df)
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/hansalemaos/winandrodumpi",
    "name": "winandrodumpi",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "Automation, Android, botting",
    "author": "Johannes Fischer",
    "author_email": "aulasparticularesdealemaosp@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/e3/f4/ad30f37db6bfc9efcc010088468c3e3474b1eb31728ba766178d3de3ba84/winandrodumpi-0.10.tar.gz",
    "platform": null,
    "description": "\r\n# Android Window dumper\r\n\r\nAndroid window dumper ```cmd window dump-visible-window-views``` to pandas DataFrame\r\n\r\n```pip install winandrodumpi```\r\n\r\nCython and a C compiler must be installed! The module will be compiled the first time you import it!\r\n\r\n```py\r\nimport pandas as pd\r\nfrom cythondfprint import add_printer\r\nfrom winandrodumpi import parse_window_elements\r\nimport numpy as np\r\n\r\nadd_printer(1)\r\nallparsed = parse_window_elements(\r\n    dump_cmd=[\r\n        \"adb\",\r\n        \"-s\",\r\n        \"127.0.0.1:5556\",\r\n        \"shell\",\r\n        \"cmd window dump-visible-window-views\",\r\n    ],\r\n)\r\nalldfs = []\r\nitemindex = 0\r\nfor parsed in allparsed:\r\n    try:\r\n        df = pd.DataFrame.from_dict(parsed, orient=\"index\", dtype=object)\r\n        df2 = np.array_split(df, df.loc[~df[\"id\"].isna()].index)\r\n        for item in df2:\r\n            alldfs.append(item.ffill().bfill().assign(aa_itemindex=itemindex))\r\n            itemindex += 1\r\n    except Exception as e:\r\n        print(e)\r\ndf = pd.concat(alldfs, ignore_index=True)\r\nprint(df)\r\n```\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Android Window dumper",
    "version": "0.10",
    "project_urls": {
        "Homepage": "https://github.com/hansalemaos/winandrodumpi"
    },
    "split_keywords": [
        "automation",
        " android",
        " botting"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9e912b77cf19d5bf07160226fc19c05145e8685a215c4b665130a8b113551f8a",
                "md5": "bbd9899ad1bf8a243b571a8c65acae57",
                "sha256": "b654dedcea9521c26394849dae1f65be7fe531ff608117d7c8b7febe825d0334"
            },
            "downloads": -1,
            "filename": "winandrodumpi-0.10-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "bbd9899ad1bf8a243b571a8c65acae57",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 24060,
            "upload_time": "2024-12-31T22:39:03",
            "upload_time_iso_8601": "2024-12-31T22:39:03.609437Z",
            "url": "https://files.pythonhosted.org/packages/9e/91/2b77cf19d5bf07160226fc19c05145e8685a215c4b665130a8b113551f8a/winandrodumpi-0.10-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e3f4ad30f37db6bfc9efcc010088468c3e3474b1eb31728ba766178d3de3ba84",
                "md5": "0c3ffab6d5cdcec8910cc6bbdab66b3d",
                "sha256": "6a42cd27a51aae0daa7b87dc3c3919e8e4df6c94ce4cf0c209159717ba7bcfb9"
            },
            "downloads": -1,
            "filename": "winandrodumpi-0.10.tar.gz",
            "has_sig": false,
            "md5_digest": "0c3ffab6d5cdcec8910cc6bbdab66b3d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 23520,
            "upload_time": "2024-12-31T22:39:06",
            "upload_time_iso_8601": "2024-12-31T22:39:06.044256Z",
            "url": "https://files.pythonhosted.org/packages/e3/f4/ad30f37db6bfc9efcc010088468c3e3474b1eb31728ba766178d3de3ba84/winandrodumpi-0.10.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-31 22:39:06",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "hansalemaos",
    "github_project": "winandrodumpi",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [
        {
            "name": "Cython",
            "specs": []
        },
        {
            "name": "numpy",
            "specs": []
        },
        {
            "name": "setuptools",
            "specs": []
        }
    ],
    "lcname": "winandrodumpi"
}
        
Elapsed time: 0.93898s