Platform-independent wrapper for platform-dependent APIs
Likely abandoned. No release or commit for years (last release over 4 years ago).
pip install plyerPlyer
Plyer is a platform-independent api to use features commonly found on various platforms, notably mobile ones, in Python.
How plyer works?
Plyer tries not to reinvent the wheel, and will call for external libraries to implement the api in the easiest way, depending on the current platform.
- On Android(python-for-android), pyjnius is used
- On iOS(kivy-ios), pyobjus is used
- On windows/mac/linux, commonly found libraries and programs will be used
Supported APIs
| Platform | Android | iOS | Windows | OS X | Linux |
|---|---|---|---|---|---|
| Accelerometer | ✔ | ✔ | ✔ | ✔ | |
| Audio recording | ✔ | ✔ | ✔ | ||
| Barometer | ✔ | ✔ | |||
| Battery | ✔ | ✔ | ✔ | ✔ | ✔ |
| Bluetooth | ✔ | ✔ | |||
| Brightness | ✔ | ✔ | ✔ | ||
| Call | ✔ | ✔ | |||
| Camera (taking picture) |