MCPcopy Index your code
hub / github.com/kivy/plyer

github.com/kivy/plyer @2.1.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release 2.1.0 ↗ · + Follow
1,452 symbols 3,651 edges 197 files 542 documented · 37% 8 cross-repo links updated 36d ago2.1.0 · 2022-11-12★ 1,793119 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Plyer

Plyer is a platform-independent api to use features commonly found on various platforms, notably mobile ones, in Python.

coverage Backers on Open Collective Sponsors on Open Collective Continuous Integration with Ubuntu Continuous Integration with OSX Continuous Integration with Windows Deploy to PyPI

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)
Compass
CPU count
Devicename
Email (open mail client)
Flash
GPS
Gravity
Gyroscope
Humidity
IR Blaster
Keystore
Light
Native file chooser
Notifications
Orientation
Proximity
Screenshot
SMS (send messages)
Spatial Orientation
Speech to text
Storage Path
Temperature
Text to speech
Unique ID
Vibrator
Wifi

Installation

To use on desktop: pip install plyer To use in python-for-android/kivy-ios: add plyer to your requirements if needed.

Support

If you need assistance, you can ask for help on our mailing list:

  • User Group : https://groups.google.com/group/kivy-users
  • Email : kivy-users@googlegroups.com

Discord channel:

  • Server : https://chat.kivy.org
  • Channel : #dev

Contributing

We love pull requests and discussing novel ideas. Check out our contribution guide and feel free to improve Plyer.

The following mailing list and IRC channel are used exclusively for discussions about developing the Kivy framework and its sister projects:

  • Dev Group : https://groups.google.com/group/kivy-dev
  • Email : kivy-dev@googlegroups.com

IRC channel:

  • Server : irc.freenode.net
  • Port : 6667, 6697 (SSL only)
  • Channel : #kivy-dev

License

Plyer is released under the terms of the MIT License. Please refer to the LICENSE file.

Contributors

This project exists thanks to all the people who contribute. [Contribute].

Backers

Thank you to all our backers! 🙏 [Become a backer]

Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]

Core symbols most depended-on inside this repo

Shape

Method 980
Class 303
Function 168
Route 1

Languages

Python100%

Modules by API surface

plyer/tools/pep8checker/pep8.py80 symbols
plyer/tests/test_battery.py27 symbols
plyer/platforms/linux/wifi.py27 symbols
examples/accelerometer/using_graph/libs/garden/garden.graph/__init__.py27 symbols
plyer/utils.py24 symbols
plyer/platforms/win/libs/wifi_defs.py23 symbols
plyer/platforms/android/stt.py23 symbols
plyer/platforms/win/audio.py22 symbols
plyer/tests/test_utils.py21 symbols
plyer/tests/test_cpu.py21 symbols
plyer/facades/storagepath.py21 symbols
plyer/platforms/android/gyroscope.py20 symbols

For agents

$ claude mcp add plyer \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page