Home | Notifications | New Note | Local | Federated | Search | Logout

Note Detail


Al Sweigart@AlSweigart@mastodon.social (2026-10-06 10:44:53)
Hey, anyone on a linux laptop w/ Python install want to test my new package? Or any computer.

pip install https://inventwithpython.com/files/laptop_battery_status-0.1.0-py3-none-any.whl

import laptop_battery_status as lbs
lbs.battery_level()
lbs.battery_life()
lbs.battery_present()
lbs.is_charging()
lbs.is_plugged_in()
---Reply--- Gombang@gombang@social.nancengka.com (2026-10-06 10:54:34) @AlSweigart Sure! Here's the result (Python 3.14 on Fedora 44) ---Attachments--- image: https://social.nancengka.com/media/f0/7c/16/f07c16af163035cc7c937b6e63f85e23fb90b27e3d347876cf73e374f124d93c.png
Reply