Skip to main content
##Battery Optimizer

An easy-to-use Python library for maintaing the optimal battery life for windows 10.


## Installation

```
pip install win10batteryoptimizer
```

## Requirements

### Installation of pywin32
```
pypiwin32
setuptools
time
win10toast
```

## Example

```
from win10batteryoptimizer import Notifier
notifier = Notifier()
battery_percent = notifier.get_battery_level()
battery_line_status = notifier.get_battery_line()
while ((int)(battery_percent>80) and (int)(battery_line_status)):
notifier.create_plug_out_toast()
time.sleep(600)
while ((int)(battery_percent<40) and (int)(battery_line_status)==0):
notifier.create_plug_in_toast()
time.sleep(600)
while ((int)(battery_percent)>39 and (int)(battery_percent)<81):
time.sleep(600)
```

Metadata

Release files for win10batteryoptimizer 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for win10batteryoptimizer 0.1.1
File Size Uploaded Provenance Actions
win10batteryoptimizer-0.1.1.zip 5.0 kB Without provenance Details for win10batteryoptimizer-0.1.1.zip

Release files / win10batteryoptimizer-0.1.1.zip

Download URL win10batteryoptimizer-0.1.1.zip
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
fa827ea25c99fdd846885a09d35011e610dcf7f5f7c33760a4b62e26e656c4d9
BLAKE2b-256 checksum
How to use checksums
d23c37ada1cc7e1e74dbcbe7b0041bf527ffa7a350d46243d595d6d9bd0505aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for win10batteryoptimizer 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page