semvec/pypi-packages huggingface dataset:
just-bench-it 0.1.9
A simple benchmarking tool for RL algorithms on Atari games


# Just Bench It: RL Algorithm Benchmarking Tool

这个项目提供了一个简单的工具，用于对强化学习（RL）算法在Atari游戏上进行基准测试。
WEBSITE: https://justbechit.github.io/rl_ladder/

## 安装
## PYPI

1. 安装：
   ```
   pip install just-bench-it
   ```

### Build from source

1. 克隆这个仓库：
   ```
   git clone https://github.com/your_username/just_bench_it.git
   cd just_bench_it
   ```

2. 安装依赖：
   ```
   pip install -e .
   ```

## 使用方法

1. 创建你的RL agent类，并使用`@benchmark`装饰器。

2. 在你的agent类中实现以下方法：
   - `set_env_info(self, env_info)`: 设置环境信息
   - `act(self, state)`: 根据当前状态选择动作
   - `update(self, state, action, reward, next_state, done)`: 更新agent的内部状态或模型

3. 运行你的脚本来执行基准测试。

## 示例

这里有一个DQN agent的示例实现：

```python
from just_bench_it import benchmark

@benchmark(pretrained=False, train_episodes=1000, eval_episodes=100)
class DQNAgent:
    def __init__(self):
        # 初始化你的DQN agent
        pass

    def set_env_info(self, env_info):
        # 设置环境信息： bench_it 会提供当前动作空间和观察空间
        #         input_shape = env_info['observation_space'].shape
        #         output_dim = env_info['action_space'].n
        #  不同的环境其输入可能不同，确保您的算法能够应对不同环境
        pass

    def act(self, state):
        # 根据状态选择动作
        pass

    def update(self, state, action, reward, next_state, done):
        # 更新agent
        pass

if __name__ == "__main__":
    agent = DQNAgent()
    results = agent.bench()
    print(results)
```

## 自定义

你可以通过修改`@benchmark`装饰器的参数来自定义基准测试：

- `pretrained`: 是否使用预训练模型（默认为False）
- `train_episodes`: 训练的回合数（默认为1000）
- `eval_episodes`: 评估的回合数（默认为100）

## 结果

基准测试的结果会自动发布为GitHub issue，包含每个环境的平均得分和其他相关信息。

## 贡献

欢迎提交问题报告和拉取请求。对于重大更改，请先开issue讨论您想要更改的内容。

## 许可证

[MIT](https://choosealicense.com/licenses/mit/)
pyroll-sims-power-and-labour 2.0.1
Plugin for PyRolL providing the power and labour calculation after R. B. Sims.
Requires Python: <4.0,>=3.9

# PyRolL Sims Power and Labour

Plugin for PyRolL providing Power and Labour calculations according to the model from R.B. Sims.

For the docs, see [here](docs/docs.pdf).

This project is licensed under the [BSD-3-Clause license](LICENSE).

The package is available via [PyPi](https://pypi.org/project/pyroll-sims-power-and-labour/) and can be installed with
    
    pip install pyroll-sims-power-and-labour
logstream-ua 0.1
Logger Tool
Keywords: python, logs, loguru, log, logstream, error, debug, info, fatal, warning

# logstream

A package that allows you to create simple records of the results of your application\'s functionality, read them, and clean the file of all obsolete records when not needed.
Developed by Bohdan Terskow (c) 2024

## Examples of How To Use

CLI: pip install logstream-ua

```python
from logstream import LogStream

logfile_dir = './logs.txt'
logstream = LogStream(logfile_dir)

logstream(description='Test', level=3)
# description - record description
# level - level of record (5 - debug, 4 - info, 3 - warning, 2 - error, 1 - fatal)

# Other Code

read_logs = logstream.read()
print(read_logs) # show text into logfile

logstream.clear() # clear all file from records
```
tuma-ai 1.2.2
适合编程教学学习使用的AI库
Requires Python: >=3.6

# tuma-ai
`tuma-ai`对AI大模型的API做了适合编程教学的封装，
用户只需要使用调用API，几行代码便能实现对AI大模型的调用。
支持单轮互动、多轮互动、流式输出大模型响应内容、自定义提示词模版和场景拼接、
可自己配置AI的交互风格

功能特点：

- 支持多轮互动
- 支持流式输出
- 支持自定义配置AI的回复风格以及回复语气
- 支持自定义配置AI的智能等级
optilibre 2.0.0
Video and Image optimizer
Requires Python: >=3.8

# Optilibre

Optilibre is a simple python program to automatically optimize video and images files using ffmpeg
and other image optimizers.
See _Supported formats_ to have a list of supported file format you can convert to/from.

Official repo : [https://gitlab.com/daufinsyd/optilibre](https://gitlab.com/daufinsyd/optilibre)

## Installation

Simply install it using pip:
```
pip3 install optilibre
```

## Usage
Copy the **optilibre.example.conf** to **optilibre.conf** and change the values according to your need.

```
optilibre optimize --config /path/to/opilibre.conf
```

You can find a systemd service and timer in systemd folder, which you can copy to /etc/systemd/system/ . 

## Requirements

See _Supported formats_ .

## Configuration

Copy and edit **optilibre.example.conf** to **optilibre.conf** .
For each folder you want to process, create a new entry as shown in the example file.

You can put the configuration of a section in another **optilibre.toml** configuration file (see **optiimage.example.toml** and **optivideo.example.toml** for an example) by referencing it in **optilibre.conf**.

### Video
- The directive [optivideo] configure the video encoder.
- The directive [optivideo.meta] defines which meta args should ffmpeg use.
- The directive [optivideo.audio] defines which codec should ffmpeg use to audio.
- The directive [optivideo.video] defines which codec should ffmpeg use to video.
- The directive [optivideo.CODEC] defines a list of options for ffmpeg to be passed through. See man ffmpeg.

### Image
- The directive [optiimage] configure the image encoder.
- The directive [optiimage.CODEC] defines a list of options for the image encoder to be passed through. See man <image_encoder>.


## Supported formats
### Video

 - any -> h264 (requires ffmpeg with libx264 encoder)
 - any -> h265 (requires ffmpeg with libx265 encoder)

### Images

 - jpeg -> jpeg (requires jpegoptim)
 - any jpeg -> jpeg-xl (requires cjxl)
aigcfile 0.0.3
File renaming, path acquisition, folder creation, file indexing and other operations.
Requires Python: >=3.8

# AIGC File

## Abstract

File renaming, path acquisition, folder creation, file indexing and other operations


## Installation

```bash 
pip install aigcfile
```

## vscode config

```json
{
    // 粘贴时，规范代码，自动帮你满足autopep8代码规范，需要vscode安装有autopep8插件
    "editor.formatOnPaste": true,
    "editor.multiCursorModifier": "ctrlCmd",
    // python 解释器的路径
    "python.defaultInterpreterPath": "/home/william/.conda/envs/aigcav/bin/python",
    // 字数提示分割线，有多少个数，就有多少条分割线
    "editor.rulers": [
        80,
        120
    ],
    "python.languageServer": "Jedi",
    "python.formatting.provider": "none"
}

```

## build

```bash
python3 -m pip install --upgrade build
python3 -m pip install --upgrade twine
python3 -m build
python3 -m twine upload dist/*
```
struid 0.0.5
Struid - 'Stringy-UUID', an enhanced UUID package
Requires Python: >=3.7

Struid - "Stringy UUID"
By Dale Magee
BSD 3-clause License

# What is it?

The Struid is an extension of python's UUID class which is intended to be more "pythonic" than the builtin UUID.

In particular, the struid makes it easy to compare with a string or integer value, e.g:
```python
> a = Struid('deadbeef-d00f-d00f-d00f-c0ffeedecade')
> a == 'deadbeef-d00f-d00f-d00f-c0ffeedecade'
True
> a == 295990755078525382164994183696159263454
True
```

Struid also has convenience helpers to make it backwards-compatible with the regular uuid library:
```python
>from struid import UUID, uuid4
>uuid4().shortstr()
'💤🎝🐆🕏🍛🐃🐉🎧💿🎻🏐💊💡'
>UUID('💤🎝🐆🕏🍛🐃🐉🎧💿🎻🏐💊💡')
UUID('fe2fdb50-9280-461e-aa46-1b3e06718995')
```

# What else can it do?

Struids also have a new shortstr() method, which allows you to compactify your string representations of UUID values down using extended unicode characters (emojis, or any characters you choose)
 
e.g:
```python
> a = Struid('deadbeef-d00f-d00f-d00f-c0ffeedecade')
> a.shortstr()
'🌨🚩💵👤🚡ᚮ🕓💣🐙😝🕴🕤ᛦ'
```

And you can also instantiate a struid from a shortstr, or compare with one:
```python
> Struid('🌨🚩💵👤🚡ᚮ🕓💣🐙😝🕴🕤ᛦ')
Struid('deadbeef-d00f-d00f-d00f-c0ffeedecade')
```

You can change the available characters shortstr() can use by calling struid.set_digits(), e.g:
```python
> import struid
> struid.set_digits("0123456789AbCdEf")
> a=Struid('deadbeef-d00f-d00f-d00f-c0ffeedecade')
> a.shortstr()
'dEAdbEEfd00fd00fd00fC0ffEEdECAdE'
```
(note that changing the available characters affects the shortstr for all guids, 
 so if you e.g save shortstrings to a file and then change character sets, 
 the shortstrings in the file will no longer match)

# What else do I need to know?

Struids are built to be case-insensitive, i.e you must not include both upper and lowercase of the same character in the SHORTSTR_DIGITS, doing so will cause breakage.