fastbootpy-0.4.1
توضیحات
-
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | fastbootpy-0.4.1 |
| نام | fastbootpy |
| نسخه کتابخانه | 0.4.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Orekhov Arkady |
| ایمیل نویسنده | arckadyor34@google.com |
| آدرس صفحه اصلی | https://github.com/WorkHardes/fastbootpy |
| آدرس اینترنتی | https://pypi.org/project/fastbootpy/ |
| مجوز | - |
# Fastbootpy
Fastbootpy is based on pyusb and using libusb1 for USB communications.
---
## Installation
### pip
```bash
poetry add fastbootpy
```
### poetry
```bash
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.
```python
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.
```python
from fastbootpy import FastbootDevice
def main() -> None:
serial = "emulator-5554"
device = FastbootDevice.connect(serial)
device.boot()
if __name__ == "__main__":
main()
```
Getvar command example.
```python
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()
```
نیازمندی
| مقدار | نام |
|---|---|
| >=1.2.1,<2.0.0 | pyusb |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8,<4.0 | Python |
نحوه نصب
نصب پکیج whl fastbootpy-0.4.1:
pip install fastbootpy-0.4.1.whl
نصب پکیج tar.gz fastbootpy-0.4.1:
pip install fastbootpy-0.4.1.tar.gz