ADB logcat to Pandas DataFrame for better debugging
Project description
ADB logcat to Pandas DataFrame
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]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file a_pandas_ex_logcat2df-0.10.tar.gz
.
File metadata
- Download URL: a_pandas_ex_logcat2df-0.10.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1096107eb63fb9e25f52074750bf9978af511628a60d3036da490846af50480 |
|
MD5 | 545acb9ab7bae3bfb4c8fbde9a7a373c |
|
BLAKE2b-256 | 1e053b5859574df316dd43f24fe80f4aa0882da2d83a475d396b7382cb59491f |
File details
Details for the file a_pandas_ex_logcat2df-0.10-py3-none-any.whl
.
File metadata
- Download URL: a_pandas_ex_logcat2df-0.10-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2fa805c1f516f9f03b094e2a56dc9a66c2f45ab1d6014480ecc888a70f1e0fa5 |
|
MD5 | d92b0f7c6c65d8b5ccdd5433213958c2 |
|
BLAKE2b-256 | 877b3c2dea6b0504289f6b027f03db0c103a3c119430d39966c8b4f2050099e4 |