a-pandas-ex-logcat2df


Namea-pandas-ex-logcat2df JSON
Version 0.10 PyPI version JSON
download
home_pagehttps://github.com/hansalemaos/a_pandas_ex_logcat2df
SummaryADB logcat to Pandas DataFrame for better debugging
upload_time2022-12-01 13:12:07
maintainer
docs_urlNone
authorJohannes Fischer
requires_python
licenseMIT
keywords adb android debugging pandas dataframe
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
### ADB logcat to Pandas DataFrame



```python

pip install a-pandas-ex-logcat2df



from a_pandas_ex_logcat2df import pd_add_adb_logcat_to_df

import pandas as pd

pd_add_adb_logcat_to_df()



adb_path = "C:\\Users\\USERNAME\\AppData\\Local\\Android\\Sdk\\platform-tools\\adb.exe"

deviceserial = "localhost:5745"

df = pd.Q_logcat2df(adb_path=adb_path, deviceserial=deviceserial,exit_keys='ctrl+x', timeout=None)





....

b'12-01 10:05:39.212 24637 24637 E System  : \tat android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1053)\r\n'

b'12-01 10:05:39.212 24637 24637 E System  : \tat android.app.ActivityThread.handleBindApplication(ActivityThread.java:5418)\r\n'

b'12-01 10:05:39.212 24637 24637 E System  : \tat android.app.ActivityThread.-wrap2(ActivityThread.java)\r\n'

b'12-01 10:05:39.212 24637 24637 E System  : \tat android.app.ActivityThread$H.handleMessage(ActivityThread.java:1548)\r\n'

b'12-01 10:05:39.212 24637 24637 E System  : \tat android.os.Handler.dispatchMessage(Handler.java:102)\r\n'

b'12-01 10:05:39.212 24637 24637 E System  : \tat android.os.Looper.loop(Looper.java:154)\r\n'

b'12-01 10:05:39.212 24637 24637 E System  : \tat android.app.ActivityThread.main(ActivityThread.ja

....





# ctrl+x



Killing the process

df

Out[3]: 

                        aa_log_1  ...                                       aa_whole_log

0               audio_hw_primary  ...            audio_hw_primary: choose pcmC0D0p for 0

1      InputMethodManagerService  ...  InputMethodManagerService: packageName=com.goo...

2      InputMethodManagerService  ...  InputMethodManagerService: ime_enabled = false...

3      InputMethodManagerService  ...  InputMethodManagerService: packageName=com.goo...

4      InputMethodManagerService  ...  InputMethodManagerService: ime_enabled = false...

..                           ...  ...                                                ...

345               BitmapDrawable  ...       BitmapDrawable: BitmapDrawable cannot decode

346    android.widget.GridLayout  ...  android.widget.GridLayout: horizontal constrai...

347                         View  ...  View    : requestLayout() improperly called by...

348  WatchWhileTimeBarController  ...  WatchWhileTimeBarController: isScrubbing: no a...

349  WatchWhileTimeBarController  ...  WatchWhileTimeBarController: getDisplayCurrent...

[350 rows x 9 columns]



```




            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/hansalemaos/a_pandas_ex_logcat2df",
    "name": "a-pandas-ex-logcat2df",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "adb,android,debugging,pandas,DataFrame",
    "author": "Johannes Fischer",
    "author_email": "<aulasparticularesdealemaosp@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/1e/05/3b5859574df316dd43f24fe80f4aa0882da2d83a475d396b7382cb59491f/a_pandas_ex_logcat2df-0.10.tar.gz",
    "platform": null,
    "description": "\n### ADB logcat to Pandas DataFrame\n\n\n\n```python\n\npip install a-pandas-ex-logcat2df\n\n\n\nfrom a_pandas_ex_logcat2df import pd_add_adb_logcat_to_df\n\nimport pandas as pd\n\npd_add_adb_logcat_to_df()\n\n\n\nadb_path = \"C:\\\\Users\\\\USERNAME\\\\AppData\\\\Local\\\\Android\\\\Sdk\\\\platform-tools\\\\adb.exe\"\n\ndeviceserial = \"localhost:5745\"\n\ndf = pd.Q_logcat2df(adb_path=adb_path, deviceserial=deviceserial,exit_keys='ctrl+x', timeout=None)\n\n\n\n\n\n....\n\nb'12-01 10:05:39.212 24637 24637 E System  : \\tat android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1053)\\r\\n'\n\nb'12-01 10:05:39.212 24637 24637 E System  : \\tat android.app.ActivityThread.handleBindApplication(ActivityThread.java:5418)\\r\\n'\n\nb'12-01 10:05:39.212 24637 24637 E System  : \\tat android.app.ActivityThread.-wrap2(ActivityThread.java)\\r\\n'\n\nb'12-01 10:05:39.212 24637 24637 E System  : \\tat android.app.ActivityThread$H.handleMessage(ActivityThread.java:1548)\\r\\n'\n\nb'12-01 10:05:39.212 24637 24637 E System  : \\tat android.os.Handler.dispatchMessage(Handler.java:102)\\r\\n'\n\nb'12-01 10:05:39.212 24637 24637 E System  : \\tat android.os.Looper.loop(Looper.java:154)\\r\\n'\n\nb'12-01 10:05:39.212 24637 24637 E System  : \\tat android.app.ActivityThread.main(ActivityThread.ja\n\n....\n\n\n\n\n\n# ctrl+x\n\n\n\nKilling the process\n\ndf\n\nOut[3]: \n\n                        aa_log_1  ...                                       aa_whole_log\n\n0               audio_hw_primary  ...            audio_hw_primary: choose pcmC0D0p for 0\n\n1      InputMethodManagerService  ...  InputMethodManagerService: packageName=com.goo...\n\n2      InputMethodManagerService  ...  InputMethodManagerService: ime_enabled = false...\n\n3      InputMethodManagerService  ...  InputMethodManagerService: packageName=com.goo...\n\n4      InputMethodManagerService  ...  InputMethodManagerService: ime_enabled = false...\n\n..                           ...  ...                                                ...\n\n345               BitmapDrawable  ...       BitmapDrawable: BitmapDrawable cannot decode\n\n346    android.widget.GridLayout  ...  android.widget.GridLayout: horizontal constrai...\n\n347                         View  ...  View    : requestLayout() improperly called by...\n\n348  WatchWhileTimeBarController  ...  WatchWhileTimeBarController: isScrubbing: no a...\n\n349  WatchWhileTimeBarController  ...  WatchWhileTimeBarController: getDisplayCurrent...\n\n[350 rows x 9 columns]\n\n\n\n```\n\n\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "ADB logcat to Pandas DataFrame for better debugging",
    "version": "0.10",
    "split_keywords": [
        "adb",
        "android",
        "debugging",
        "pandas",
        "dataframe"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "877b3c2dea6b0504289f6b027f03db0c103a3c119430d39966c8b4f2050099e4",
                "md5": "d92b0f7c6c65d8b5ccdd5433213958c2",
                "sha256": "2fa805c1f516f9f03b094e2a56dc9a66c2f45ab1d6014480ecc888a70f1e0fa5"
            },
            "downloads": -1,
            "filename": "a_pandas_ex_logcat2df-0.10-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "d92b0f7c6c65d8b5ccdd5433213958c2",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 7239,
            "upload_time": "2022-12-01T13:12:05",
            "upload_time_iso_8601": "2022-12-01T13:12:05.924217Z",
            "url": "https://files.pythonhosted.org/packages/87/7b/3c2dea6b0504289f6b027f03db0c103a3c119430d39966c8b4f2050099e4/a_pandas_ex_logcat2df-0.10-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1e053b5859574df316dd43f24fe80f4aa0882da2d83a475d396b7382cb59491f",
                "md5": "545acb9ab7bae3bfb4c8fbde9a7a373c",
                "sha256": "a1096107eb63fb9e25f52074750bf9978af511628a60d3036da490846af50480"
            },
            "downloads": -1,
            "filename": "a_pandas_ex_logcat2df-0.10.tar.gz",
            "has_sig": false,
            "md5_digest": "545acb9ab7bae3bfb4c8fbde9a7a373c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 5422,
            "upload_time": "2022-12-01T13:12:07",
            "upload_time_iso_8601": "2022-12-01T13:12:07.824315Z",
            "url": "https://files.pythonhosted.org/packages/1e/05/3b5859574df316dd43f24fe80f4aa0882da2d83a475d396b7382cb59491f/a_pandas_ex_logcat2df-0.10.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-12-01 13:12:07",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "hansalemaos",
    "github_project": "a_pandas_ex_logcat2df",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "a-pandas-ex-logcat2df"
}
        
Elapsed time: 0.13370s