pyairmore

所属分类:android开发
开发工具:Python
文件大小:0KB
下载次数:0
上传日期:2022-11-22 03:04:19
上 传 者sh-1993
说明:  PyAirmore是一个用于Android Airmare服务器的Python客户端库,它帮助开发人员进行编程操作...
(PyAirmore is a Python client library for Android Airmore server, which helps the developers to take programmatic actions on Android.)

文件列表:
.appveyor.yml (405, 2021-12-12)
.readthedocs.yml (108, 2021-12-12)
.travis.yml (2648, 2021-12-12)
CHANGELOG.md (4375, 2021-12-12)
CONTRIBUTING.md (6079, 2021-12-12)
LICENSE.txt (551, 2021-12-12)
MANIFEST.in (43, 2021-12-12)
architecture.xml (2021, 2021-12-12)
dev.requirements.txt (97, 2021-12-12)
docs/ (0, 2021-12-12)
docs/index.md (2604, 2021-12-12)
docs/requesting-and-session/ (0, 2021-12-12)
docs/requesting-and-session/custom-requests.md (1905, 2021-12-12)
docs/requesting-and-session/how-session-works.md (2825, 2021-12-12)
docs/requesting-and-session/index.md (422, 2021-12-12)
docs/services/ (0, 2021-12-12)
docs/services/device-service.md (3464, 2021-12-12)
docs/services/index.md (1775, 2021-12-12)
docs/services/messaging-service.md (3751, 2021-12-12)
mkdocs.yml (479, 2021-12-12)
pyairmore/ (0, 2021-12-12)
pyairmore/__init__.py (332, 2021-12-12)
pyairmore/request/ (0, 2021-12-12)
pyairmore/request/__init__.py (6007, 2021-12-12)
pyairmore/services/ (0, 2021-12-12)
pyairmore/services/__init__.py (826, 2021-12-12)
pyairmore/services/device.py (6384, 2021-12-12)
pyairmore/services/messaging.py (7597, 2021-12-12)
requirements.txt (17, 2021-12-12)
resources/ (0, 2021-12-12)
resources/test/ (0, 2021-12-12)
resources/test/device_detail.txt (844, 2021-12-12)
resources/test/home.txt (200, 2021-12-12)
resources/test/message_get_latest.txt (5613, 2021-12-12)
resources/test/message_get_list.txt (248, 2021-12-12)
resources/test/message_get_list_5bdd46f06905c8a085247638_0_10.txt (5521, 2021-12-12)
resources/test/message_get_list_5bdd46f06905c8a085247638_0_5.txt (2844, 2021-12-12)
resources/test/screenshot.txt (7107, 2021-12-12)
... ...

# Warning I don't have time to update this project. I'm looking for a maintainer. If you think you can tackle it, hit me on [Telegram](https://t.me/erayerdin). Otherwise, you can think this project is quite much abandoned. # PyAirmore [![PyPI](https://img.shields.io/pypi/v/pyairmore.svg?style=flat-square&logo=python&logoColor=white)](https://pypi.org/project/pyairmore/) [![PyPI - Status](https://img.shields.io/pypi/status/pyairmore.svg?style=flat-square)](https://pypi.org/project/pyairmore/) [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/pyairmore.svg?style=flat-square&logo=python&logoColor=white)](https://pypi.org/project/pyairmore/) [![PyPI - License](https://img.shields.io/pypi/l/pyairmore.svg?style=flat-square)](LICENSE.txt) [![Codacy grade](https://img.shields.io/codacy/grade/f9dcb968a7cc4804b64ae7e0fac3a5be.svg?logo=codacy&logoColor=white&style=flat-square)](https://www.codacy.com/app/erayerdin/pyairmore?utm_source=github.com&utm_medium=referral&utm_content=erayerdin/pyairmore&utm_campaign=Badge_Grade) [![Gitter](https://img.shields.io/gitter/room/pyairmore/Lobby.svg?style=flat-square&logo=gitter&logoColor=white)](http://gitter.im/pyairmore/Lobby) | | Build | Coverage | |-------------|-------|----------| | master | [![Travis (.org) master](https://img.shields.io/travis/erayerdin/pyairmore/master.svg?style=flat-square&logo=travis&logoColor=white)](https://travis-ci.org/erayerdin/pyairmore) | [![Codecov master](https://img.shields.io/codecov/c/github/erayerdin/pyairmore/master.svg?style=flat-square&logo=codecov&logoColor=white)](https://codecov.io/gh/erayerdin/pyairmore) | | development | [![Travis (.org) development](https://img.shields.io/travis/erayerdin/pyairmore/development.svg?style=flat-square&logo=travis&logoColor=white)](https://travis-ci.org/erayerdin/pyairmore) | [![Codecov development](https://img.shields.io/codecov/c/github/erayerdin/pyairmore/development.svg?style=flat-square&logo=codecov&logoColor=white)](https://codecov.io/gh/erayerdin/pyairmore) | PyAirmore is a Airmore client library for Android Airmore server. You can get information from Airmore server on your Android. # Simple Example At first, you need to know your device's IPv4 address, which you can easily find out by simply opening your Airmore application on Android, click options (top-right, triple vertical dots) button, press "Get IP". Then, you start coding: from ipaddress import IPv4Address from pyairmore.request import AirmoreSession # import session device_ip = IPv4Address("your ip address") # need to put your ip session = AirmoreSession(device_ip) # also you can put your port as int # airmore's port default is 2333 # you can check if your airmore server is running # you better do it before doing anything on your device session.is_server_running # True # and before doing anything, you must request access from your device # you better turn on your airmore app on your device and watch it session.request_authorization() # True if accepted, False if denied # when you request authorization, airmore app on your device will # provide a dialogue to accept the authorization, ensure to accept Now that we created an authorized session, we can now create a `Service`. You can use services to access many functionalities of your device. For the sake of simplicity, we will use a service called `DeviceService`. # assuming we have done above from pyairmore.service.device import DeviceService device = DeviceService(session) # all services initializes with a session instance # you can once more do `Session::is_server_running` and # `Session::request_authorization` just in case details = device.fetch_device_details() # Now we can access many details about out device. details.power # 0.74 details.device_name # "My device" details.is_root # True, bcoz real men use rooted device details.imei # muhahaha details.call_history_count # 666 # so on and so forth # Documentation You can get latest documentation from [here](https://pyairmore.readthedocs.io/) and you can also check out `development` branch's documentation [here](https://pyairmore.readthedocs.io/en/development/), which is supposed to have next release features. # Contribution Please refer to [contribution guide](CONTRIBUTING.md) before contributing. You can, then, quickly contribute by cloning the project, opening it up with your favorite IDE or text editor which supports TODOs and check todos for needs, or you can also check the issues.

近期下载者

相关文件


收藏者