No project description provided
Project description
Fastbootpy
Fastbootpy is based on pyusb and using libusb1 for USB communications.
Installation
pip
poetry add fastbootpy
poetry
poetry add fastbootpy
Supported fastboot commands
- getvar
- download
- upload
- flash
- erase
- boot
- continue
- reboot
Examples
All examples of using library you can find in folder examples.
Get and display all fastboot devices which are connected with pc via usb.
from fastbootpy import FastbootManager
def main() -> None:
fastboot_devices = FastbootManager.devices()
print("fastboot_devices:", fastboot_devices)
if __name__ == "__main__":
main()
Boot device into regular mode.
from fastbootpy import FastbootDevice
def main() -> None:
serial = "emulator-5554"
device = FastbootDevice.connect(serial)
device.boot()
if __name__ == "__main__":
main()
Getvar command example.
from fastbootpy import FastbootDevice, FastbootManager
def main() -> None:
fastboot_devices = FastbootManager.devices()
serial = fastboot_devices[0]
device = FastbootDevice.connect(serial)
result = device.getvar("all")
print("result:", result)
if __name__ == "__main__":
main()
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fastbootpy-0.4.1.tar.gz.
File metadata
- Download URL: fastbootpy-0.4.1.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.0 CPython/3.10.7 Linux/5.19.10-arch1-1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5bea5e8f17c0beb76bf4ca7aad8d9acc124aa117fe467b8e89080d4abccf25eb
|
|
| MD5 |
d72228cdc7eb71895922993026b559ff
|
|
| BLAKE2b-256 |
df109086466a42ae797ca463b485c49242d625c8d7d22ff03d6f5aa65151e98b
|
File details
Details for the file fastbootpy-0.4.1-py3-none-any.whl.
File metadata
- Download URL: fastbootpy-0.4.1-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.0 CPython/3.10.7 Linux/5.19.10-arch1-1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d0e461661b54dc5f323b6470c692a1ab47887e97842397cfb848db81089e2bfc
|
|
| MD5 |
b3de60b365c9d8b2fba4cf383032eb70
|
|
| BLAKE2b-256 |
38d9563462bfd8a1f745631e03dbad5f4509d8187545512b0863ebda50217163
|