Install
$ [sudo] pip install headphones
Features
- MacOS only
Examples
>>> import headphones
>>> headphones.plugged()
True
cli
$ python -c "import headphones; print(headphones.plugged())"
True
detect if headphones are plugged
pip install headphones==0.0.0