Skip to main content

Parses the output from 'uiautomator events' in real time and converts it to a list of lists / pandas DataFrame.

pip install adbeventparser

YT https://www.youtube.com/watch?v=KtO5h6XospU

EventRecord class for recording events from an Android device using ADB.

This class provides a way to capture events from an Android device using ADB (Android Debug Bridge).
It can parse and display event data in both standard output and Pandas DataFrame formats.

Args:
	adb_path (str): The path to the ADB executable.
	device_serial (str): The serial number of the target Android device.
	print_output (bool, optional): Whether to print event data to the console. Default is True.
	print_output_pandas (bool, optional): Whether to print event data as Pandas DataFrames. Default is False.
	convert_to_pandas (bool, optional): Whether to convert event data to Pandas DataFrames. Default is False.
	parent1replacement (str, optional): A character used to replace temporarily opening square brackets '[' in event data. Default is "\x80".
	parent2replacement (str, optional): A character used to replace temporarily closing square brackets ']' in event data. Default is "\x81".

Methods:
	start_recording(**kwargs): Starts recording events from the device.

Attributes:
	stop: Stops the event recording if True
	results (list): A list of lists containing parsed event data.
	resultsdf (list): A list of Pandas DataFrames containing parsed event data. (if installed)

Example usage
	from adbeventparser import EventRecord
	sua = EventRecord(
		adb_path=r"C:\Android\android-sdk\platform-tools\adb.exe",
		device_serial="127.0.0.1:5555",
		print_output=True,
		print_output_pandas=False,
		convert_to_pandas=False,
		parent1replacement="\x80",
		parent2replacement="\x81",
	)
	sua.start_recording()
	# to stop
	# sua.stop=True
	# the data as a list of lists
	# sua.results
	# the data as pandas (if installed)
	# sua.resultsdf

Release files for adbeventparser 0.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for adbeventparser 0.10
File Size Uploaded
adbeventparser-0.10.tar.gz 9.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for adbeventparser 0.10
File Interpreter ABI Platform
adbeventparser-0.10-py3-none-any.whl Python 3 none any Details

Total release size: 20.1 kB

Release files / adbeventparser-0.10.tar.gz

Download URL adbeventparser-0.10.tar.gz
Size 9.6 kB
Tags Source
SHA-256 checksum
How to use checksums
f64228404e55854dc20234ccc86615c8793bb6db3e8dd2c8a0760bfe59107527
BLAKE2b-256 checksum
How to use checksums
53b2a938130ad9b3f1a9148f1364c6bbfab590ad59287ae02c03460aaab22af4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / adbeventparser-0.10-py3-none-any.whl

Download URL adbeventparser-0.10-py3-none-any.whl
Size 10.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
140466733003ffe193295ce776f8c20b197483e2421c5168bb1a53ef0d63fd72
BLAKE2b-256 checksum
How to use checksums
b68e3e4c5e6098c33b7e32f13eeeedcb63524a0e23ecc306a74e17c19e836ce2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release history Release notifications | RSS feed

This release

0.10 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page