semvec/pypi-packages huggingface dataset:
py3status-ups-battery-status 0.1.3
py3status module to show the status of a UPS battery
License: MIT
Requires Python: >=3.9,<4.0
Keywords: battery,ups,status,i3,py3status

# py3status-ups-battery-status
Python module for py3status to monitor my UPS battery status

[![Downloads](https://static.pepy.tech/personalized-badge/py3status-ups-battery-status?period=total&units=international_system&left_color=blue&right_color=green&left_text=Downloads)](https://pepy.tech/project/py3status-ups-battery-status)

## Screenshot
![py3status-ups-batter-status](https://raw.githubusercontent.com/mcgillij/py3status-ups-battery-status/main/images/ups_battery_status.png)

## Installation

### With Pip
``` bash
pip install py3status-ups-battery-status
```

### From Git
``` bash
git clone https://github.com/mcgillij/py3status-ups-battery-status.git
mkdir -p ~/.i3/py3status && cd ~/.i3/py3status
ln -s <PATH_TO_CLONED_REPO>/src/py3status-ups-battery-status/ups-battery-status.py ./
```

### Installing with `yay`

``` bash
yay -S py3status-ups-battery-status
```

### Building From AUR (Arch)
``` bash
git clone https://aur.archlinux.org/py3status-ups-battery-status.git
cd py3status-ups-battery-status
makechrootpkg -c -r $HOME/$CHROOT
```

### Installing Arch package
``` bash
sudo pacman -U --asdeps py3status-ups-battery-status-*-any.pkg.tar.zst
```

## Dependencies

This module depends on the Network UPS Tools(nut) package. And having already configured your battery with it.
It assumes that you've named your battery *battery*. If you've named it something else you can change it in the module itself.

Dependency installation on Arch:
``` bash
pacman -S nut
```

Dependency installation on Debian:
``` bash
apt install nut
```

## Usage
Add the module to your list of configured py3status modules

*~/.config/i3status.conf*
``` bash
...
order += "arch_updates"
order += "volume_status"
order += "ups_battery_status"
...

```

And then just restart your i3 session.
py3status-cpu-governor 0.1.3
py3status monitor to show the state of your cpu governor
License: MIT
Requires Python: >=3.9,<4.0
Keywords: cpu,governor,py3status,i3,monitor

# py3status-cpu-governor
Python module for py3status to show the cpu_governor state in i3

[![Downloads](https://static.pepy.tech/personalized-badge/py3status-cpu-governor?period=total&units=international_system&left_color=blue&right_color=green&left_text=Downloads)](https://pepy.tech/project/py3status-cpu-governor)

This is handy if you manage your governor manually with something like or use [gamemode](https://github.com/FeralInteractive/gamemode)

``` bash
alias performance_mode='echo performance | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor'
alias powersave_mode='echo powersave | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor'
alias schedutil_mode='echo schedutil | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor'
alias cpu_frequency_watch='watch -n.5 "cat /proc/cpuinfo | grep \"^[c]pu MHz\""'
```

## Screenshot
![py3status cpu_governor](https://raw.githubusercontent.com/mcgillij/py3status-cpu-governor/main/images/cpu_governor.png)

## Pre-reqs
* i3
* py3status

## Installation
### From Git
``` bash
git clone https://github.com/mcgillij/py3status-cpu-governor.git
mkdir -p ~/.i3/py3status && cd ~/.i3/py3status
ln -s <PATH_TO_CLONED_REPO>/src/py3status-cpu-governor/cpu_governor.py ./
```

### With pip, pipenv or poetry
``` bash
pip install py3status-cpu-governor
pipenv install py3status-cpu-governor
poetry add py3status-cpu-governor && poetry install
```

### With `yay`

``` bash
yay -S py3status-cpu-governor
```

### Building Arch package w/PKGBUILD
``` bash
git clone https://aur.archlinux.org/py3status-cpu-governor.git
cd py3status-cpu-governor.git
makechrootpkg -c -r $HOME/$CHROOT
```

### Installing Arch package
``` bash
sudo pacman -U --asdeps py3status-cpu-governor-*-any.pkg.tar.zst
```

## Configuration

add the following line to your *~/.config/i3/i3status.conf*

``` bash
order += "cpu_governor"
```

And restart your i3 session.
quant-friend 0.0.1
quant helper.
License: MIT
Requires Python: >=3.6.0

# Quant Friend

## 背景和目的

在量化回测环境，经常需要购置和试用一些临时的计算资源。这个项目的目的是简化在这过程中的重复操作。

## 一键购置模块

TBC

## 汇报模块

这个模块需要被回测应用引入，在相关计算结束后，讲结果汇报给特定关注者，同时通知计算资源供应商，要求停止服务。

### email

可以显式调用

```python
from quant_friend import config_email_sender

config_email_sender('sender@my.com', 'smtp.my.com', 465, True, 'sender', 'password')
```

进行邮箱注册，也可以通过设置环境变量，自动注册。

- smtp_sender
- smtp_host
- smtp_port
- smtp_ssl
- smtp_user
- smtp_password

### 删除主机

可以显式调用

```python
from quant_friend import register_ucloud

register_ucloud(
    region="",
    private_key="",
    public_key="",
)
```

进行注册，也可以通过设置环境变量，自动注册。任意 **uc-** 开头的环境变量都会被自动读取。

```python
from quant_friend import list_and_delete_host

# 删除所有主机
list_and_delete_host('ucloud')
# 按业务组删除主机
list_and_delete_host('ucloud', Tag="你的业务组")
```