Simple python module to get the information regarding battery in python.

Overview

Image

Battery Stats

Build Status

A python3 module created for easily reading the current parameters of Battery in realtime. It reads battery stats from /sys/class/power_supply/ and returns. This module can be applied in a verity of projects.

Installation

Clone this repository into the same folder you want to write code in, and directly use it as a module. (or download the zip, extract and directly use, as a module.)

Usage

code ( python3 )
from batterystats import Battery

print(Battery())
outputs :
          Battery Information           
----------------------------------------
Date - Time  : 2021-06-01 | 12:44:06
Battery Path : /sys/class/power_supply/BAT0
Status       : Discharging
Capacity     : 63%
Charge Now   : 1469000
Charge Full  : 2311000

Where can we use this?

  • Get battery stats on command line
  • Scripts ( Alert/Report generation )
  • Other Python Applicaitons
You might also like...
A python module to validate input.

A python module to validate input.

A module for account creation with python

A module for account creation with python

A string extractor module for python

A string extractor module for python

A python module for extract domains

A python module for extract domains

An URL checking python module

An URL checking python module

A multipurpose python module

pysherlock pysherlock is a Python library for dealing with web scraping using images, it's a Python application of the rendertron headless browser API

Python module and its web equivalent, to hide text within text by manipulating bits
Python module and its web equivalent, to hide text within text by manipulating bits

cacherdutexte.github.io This project contains : Python modules (binary and decimal system 6) with a dedicated tkinter program to use it. A web version

A python mathematics module

A python mathematics module

A hashtag from string extract python module

A hashtag from string extract python module

Owner
Shreyas Ashtamkar
Engineering Student, Last Year, 2021 passout. Interested Python, C++, C, Java, Javascript, and Web Design projects.
Shreyas Ashtamkar
A python tool give n number of inputs and parallelly you will get a output by separetely

http-status-finder Hello Everyone!! This is kavisurya, In this tool you can give n number of inputs and parallelly you will get a output by separetely

KAVISURYA V 3 Dec 5, 2021
A small python tool to get relevant values from SRI invoices

SriInvoiceProcessing A small python tool to get relevant values from SRI invoices Some useful info to run the tool Login into your SRI account and ret

Wladymir Brborich 2 Jan 7, 2022
Color getter (including method to get random color or complementary color) made out of Python

python-color-getter Color getter (including method to get random color or complementary color) made out of Python Setup pip3 install git+https://githu

Jung Gyu Yoon 2 Sep 17, 2022
Find unused resource keys in properties files in a Salesforce Commerce Cloud project and get rid of them.

Find Unused Resource Keys Find unused resource keys in properties files in a Salesforce Commerce Cloud project and get rid of them. It looks through a

Noël 5 Jan 8, 2022
ecowater-softner is a Python library for collecting information from Ecowater water softeners.

Ecowater Softner ecowater-softner is a Python library for collecting information from Ecowater water softeners. Installation Use the package manager p

null 6 Dec 8, 2022
Minimal Windows system information tool written in Python

wfetch wfetch is a Minimal Windows system information tool written in Python (Only works on Windows) Installation First of all have python installed.

zJairO 3 Jan 24, 2022
Utility to play with ADCS, allows to request tickets and collect information about related objects.

certi Utility to play with ADCS, allows to request tickets and collect information about related objects. Basically, it's the impacket copy of Certify

Eloy 185 Dec 29, 2022
Audio Steganography is a technique used to transmit hidden information by modifying an audio signal in an imperceptible manner.

Audio Steganography Audio Steganography is a technique used to transmit hidden information by modifying an audio signal in an imperceptible manner. Ab

Karan Yuvraj Singh 1 Oct 17, 2021
A python module to manipulate XCode projects

This module can read, modify, and write a .pbxproj file from an Xcode 4+ projects. The file is usually called project.pbxproj and can be found inside the .xcodeproj bundle. Because some task cannot be done by clicking on an UI or opening Xcode to do it for you, this python module lets you automate the modification process.

Ignacio Calderon 1.1k Jan 2, 2023
A python module to update the console without flashing.

A python module to update the console without flashing.

Matthias 112 Dec 19, 2022