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()
Metadata
Release files for fastbootpy 0.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fastbootpy-0.4.1.tar.gz | 4.9 kB | Without provenance | Details for fastbootpy-0.4.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fastbootpy-0.4.1-py3-none-any.whl | Python 3 | none | any | Details for fastbootpy-0.4.1-py3-none-any.whl |
Total release size: 12.1 kB
Release files / fastbootpy-0.4.1.tar.gz
| Download URL | fastbootpy-0.4.1.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5bea5e8f17c0beb76bf4ca7aad8d9acc124aa117fe467b8e89080d4abccf25eb
|
|
BLAKE2b-256 checksum How to use checksums |
df109086466a42ae797ca463b485c49242d625c8d7d22ff03d6f5aa65151e98b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.0 CPython/3.10.7 Linux/5.19.10-arch1-1
|
Release files / fastbootpy-0.4.1-py3-none-any.whl
| Download URL | fastbootpy-0.4.1-py3-none-any.whl |
|---|---|
| Size | 7.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d0e461661b54dc5f323b6470c692a1ab47887e97842397cfb848db81089e2bfc
|
|
BLAKE2b-256 checksum How to use checksums |
38d9563462bfd8a1f745631e03dbad5f4509d8187545512b0863ebda50217163
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.0 CPython/3.10.7 Linux/5.19.10-arch1-1
|
Security for fastbootpy 0.4.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.