semvec/pypi-packages huggingface dataset:
aruw-pathfinding 0.5.0
A* and D* algorithms for pathfinding from an input list squares
Requires Python: >=3.10

# Pathfinding project for ARUW sentry

> Built in rust for speed and safety

**The AStarV2 algorithm is recommended for speed**

## AStar Usage

```py
import aruw_pathfinding

astar = aruw_pathfinding.AStar()

start = (0, 0)
goal = (2, 2)
occupied_squares = []
grid_size = (3, 3)

path: List[Tuple[int, int]]

try:
    path = astar.get_path(start, goal, occupied_squares, grid_size)
except:
    print("Path not found")
```

## AStarV2 Usage

```py
import aruw_pathfinding

static_occupied_squares = []
grid_size = (3, 3)

astar = aruw_pathfinding.AStar(
    static_occupied_squares,
    grid_size
)

start = (0, 0)
goal = (2, 2)
occupied_squares = []
old_occupied_squares = []

path: List[Tuple[int, int]]

try:
    path = astar.get_path(start, goal, occupied_squares, old_occupied_squares)
except:
    print("Path not found")

# You must save the old occupied squares for this algorithm to work properly
old_occupied_squares = occupied_squares
occupied_squares = [[(1, 1)]]

try:
    path = astar.get_path(start, goal, occupied_squares, old_occupied_squares)
except:
    print("Path not found")
```

## DStar Usage (Not Recommended)

> DStar implementation is buggy and not yet faster than AStar. Please don't use it.

```py
from typing import List, Tuple
import aruw_pathfinding

initial_occupied_squares: List[List[Tuple[int, int]]] = []
grid_size = (3, 3)

# Initialize the algorithm
dstar = aruw_pathfinding.DStar(
    initial_occupied_squares,
    grid_size,
)

# For each get_path iteration
start = (0, 0)
goal = (2, 2)
occupied_squares: List[List[Tuple[int, int]]] = []

path: List[Tuple[int, int]]

# initial iteration
try:
    path = dstar.get_path(start, goal, occupied_squares)
except:
    print("Path not found")

print(path) # will be [(0, 0), (1, 1), (2, 2)]

occupied_squares = [[(1, 1)]]
# same calling syntax for more iterations
try:
    path = dstar.get_path(start, goal, occupied_squares)
except:
    print("Path not found")

print(path) # will be [(0, 0), (1, 0), (2, 1), (2, 2)]
```
MultiKiwiLogger 1.0.3
This is a multilogger for LogTail, File and terminal print
Requires Python: >=3.0

KiwiLogger
A simple Python logger class that logs messages to Logtail, a local file, and/or the terminal. Easily configurable and customizable.

Features
Log messages to Logtail (an online logging service)
Log messages to a local file
Log messages to the terminal (stdout)
Specify the logging level (e.g., INFO, ERROR)
Add structured logging (extra data) to log messages

Installation
Before using KiwiLogger, you need to install the Logtail library:

bash
Copy code
pip install logtail

Usage
python

Copy code
import MultiKiwiLogger
import logging

# Initialize the logger
mlog = KiwiLogger(log_online=True, log_local=True, log_terminal=True)

# Log a simple message
mlog('This is an INFO message.')  # Defaults to INFO level

# Log a message with a specific level
mlog('Something bad happened.', level=logging.ERROR)

# Log a message with structured logging (extra data)
mlog('Log message with structured logging.', level=logging.INFO, extra={
    'item': "Orange Soda",
    'price': 100.00
})
Configuration
Initialize the KiwiLogger with the following optional parameters:

name (default: __name__): The name of the logger.
level (default: logging.INFO): The minimum log level for messages.
log_online (default: True): Log messages to Logtail.
log_local (default: False): Log messages to a local file.
log_terminal (default: True): Log messages to the terminal (stdout).
Environment Variables
KiwiLogger relies on the LOGTAIL_SOURCE_TOKEN environment variable to send logs to Logtail. Set this variable in your environment or add it to a .env file:

makefile
Copy code
LOGTAIL_SOURCE_TOKEN=your_logtail_source_token_here
Replace your_logtail_source_token_here with the actual source token provided by Logtail.

License
This project is licensed under the MIT License.
GonumMatrixIO 0.0.9
A package to define functions that allow for easy read/writing of binary files used by golang's Gonum
Requires Python: >=3.7

# gonum-matrix-io
Offers some utilities to save [Gonum](https://pkg.go.dev/gonum.org/v1/gonum) matrices and vectors to a binary file, as well as some python scripts to load these files into numpy

## Usage

For use in Go, run `go get -u github.com/hmcalister/gonum-matrix-io`.

You may then import `hmcalister/gonum-matrix-io/gonumio` in your Go code, and use `gonumio.SaveMatrix` to save a matrix (for example).

---

On the Python side, run `pip install GonumMatrixIO` to install the corresponding python package from pip. Then you can access these files using `import GonumMatrixIO`.
nonebot-plugin-baidutranslate 0.3.2
基于 OneBot 适配器的 NoneBot2 百度翻译插件, 可以调用百度翻译 API 实现常用语种之间的互译
Requires Python: >=3.8
Keywords: pip,nonebot2,nonebot,nonebot_plugin

<p align="center">
  <a href="https://v2.nonebot.dev/"><img src="https://v2.nonebot.dev/logo.png" width="200" height="200" alt="nonebot"></a>
</p>

<div align="center">
  
# Nonebot_Plugin_BaiduTranslate
  
_✨ 基于OneBot适配器的[NoneBot2](https://v2.nonebot.dev/)百度翻译插件 ✨_
  
</div>

## 功能

- 可以调用百度翻译 API 实现常用语种之间的互译

## 安装

- 使用 nb-cli

```
nb plugin install nonebot_plugin_baidutranslate
```

- 使用 pip

```
pip install -U nonebot_plugin_baidutranslate
```

## 如何使用

### .env 配置项

```ini
# 以下均为百度翻译配置，见 https://fanyi-api.baidu.com/doc/21
appid = "xxx"  # 你的 APP ID，在百度翻译的开发者中心里可以找到
key = "xxx"    # 你的密钥，在百度翻译的开发者中心里可以找到
salt = "xxx"   # 随机字符串
```

各配置项的含义如上。

### 指令

使用以下指令触发，需加上指令前缀

```
通用文本翻译：
    x翻x [内容]
    (回复消息)x翻x
   
垂直领域翻译：
    oo领域x翻x [内容]
    (回复消息)oo领域x翻x
    
语种识别：
    语种识别 [内容]
    (回复消息)语种识别
```

## 图片示例
<div align="left">
  <img src="https://user-images.githubusercontent.com/52584526/169519990-df4402d1-8b5e-4c88-8582-f64485e0e702.png" width="500" />
</div>

<div align="left">
  <img src="https://user-images.githubusercontent.com/52584526/169520252-71343d82-b3fc-477f-a7d7-714405e160ba.png" width="500" />
</div>

<div align="left">
  <img src="https://user-images.githubusercontent.com/52584526/215271556-2b800b02-298f-44f1-af1b-bda0a2d3653b.png" width="500" />
</div>

<div align="left">
  <img src="https://user-images.githubusercontent.com/52584526/215284148-93d94ee7-d04a-4834-9ce1-4e0aeacaa4b6.png" width="500" />
</div>

<div align="left">
  <img src="https://user-images.githubusercontent.com/52584526/215284152-8a0506fa-7719-4c86-a30e-c65d8f84db26.png" width="500" />
</div>

## 更新日志
> 2023-04-04 v0.3.2
> - 修复回复时的空行[@issue/13](https://github.com/NumberSir/nonebot_plugin_baidutranslate/issues/13)
> 
> 2023-03-29 v0.3.1
> - 现在私聊也可用（但不推荐）
> 
> 2023-01-29 v0.3.0
> - 添加“垂直领域翻译”与“语种识别”功能
> 
> 2023-01-28 v0.2.0
> - 修改最低兼容版本为 Python 3.8, 与 nonebot2.0.0rc3 一致
> - 增加回复消息翻译功能
> - 修改匹配翻译文本的bug
> - 错误信息以聊天信息的方式发送
> - 修复命令前缀引起参数缺少，判断翻译后的文本长度[@pull/5](https://github.com/NumberSir/nonebot_plugin_baidutranslate/pull/5)
>
> 2022-05-30 v0.1.1
> - 修改最低兼容版本到 Python 3.7.3 版本
> 
> 2022-05-27 v0.1.0
> - 添加了基础翻译功能
>