semvec/pypi-packages huggingface dataset:
pydantic-graph-persistance-redis 0.8.1
State persistance using Redis as backend
Requires Python: >=3.13
Keywords: agents, ai, pydantic, pydantic_graph, redis, redis-client, vector-database

# pydantic-graph-redis-persistance

[![PyPI - Version](https://img.shields.io/pypi/v/pydantic-graph-redis-persistance)](https://pypi.org/project/pydantic-graph-redis-persistance/)

## Installation

The package is available on [PyPi](https://pypi.org/project/pydantic-graph-persistance-redis/)
and can be install via [pip](https://pypi.org/project/pip/) or any
other package manager:

```bash
pip install pydantic-graph-redis-persistance
```

## Usage

The responsability of creating a proper asynchronous Redis client is yours,
then you can simply create a state persistance instance for your graph run:

```python
from pydantic_graph.persistance.redis import RedisStatePersistance
from redis.asyncio import Redis

redis = Redis(...)
run_id = "my_unique_run_id"
persistance = RedisStatePersistance(redis, run_id)

# You can now use your persistance through any graph run :).
```

## Locking

To provide a quick and simple implementation, the current version
use a deprecated [Redis](https://redis.io) locking mecanism through
`SETNX` operation. If you want you can implement your own locking
mecanism (for instance redlock) or add a custom timeout to the lock
you can provide you own `AbstractRedisStateLock` instance:

```python
from pydantic_graph.persistance.redis import NXRedisStateLock
from pydantic_graph.persistance.redis import RedisStatePersistance

redis = Redis(...)
lock = NXRedisStateLock(
    lock_id="my_custom_lock_id",
    redis=redis,
    timeout=10000.0,
)
run_id = "my_unique_run_id"
persistance = RedisStatePersistance(redis, run_id, redis_state_lock=lock)
```
nac-pusher 0.1.3
A Python package for pushing messages to Feishu (Lark)
Requires Python: >=3.7

# NAC Pusher

一个用于向飞书(Lark)推送消息的Python包。

## 安装

```bash
pip install nac-pusher -U
```

## 使用方法

在使用之前，请设置以下环境变量：

- `FEISHU_APP_ID`: 飞书应用的App ID
- `FEISHU_APP_SECRET`: 飞书应用的App Secret

然后在Python代码中使用：
```python
from nac_pusher.feishu import FeishuBot

bot = FeishuBot()
bot.append_push_txt('Hello, World!').send()
```
## 更新日志

- 0.1.3: 初始版本，基本功能实现

## 许可证

本项目采用MIT许可证 - 详见[LICENSE](LICENSE)文件了解详情。
crcFinder 0.0.4
A tool to find well known crc params that matches the input data and crc result (right or wrong)
Requires Python: >=3.7

# CrcFinder

A tool to find well known crc params that matches the input data and crc result (right or wrong)

## Install

```bash
pip install crcFinder
```

## Usage

### As Library

#### find `zlib.crc32`

```python
from crcFinder import CrcFinder
import zlib

data = []
data.append((b"123456789", zlib.crc32(b'123456789')))
data.append((b"123456789xxxx", zlib.crc32(b'123456789xxxx')))
f = CrcFinder()
r = f.findCrc(data)
print([str(i) for i in r])
```

#### find something else

```python
from crcFinder import CrcFinder
data = []
data.append((b"123456789\x09", b'\x11\x60\x7a\x37'))
data.append((b"1234567890\x0a", b'\xb3\x95\xcb\x46'))
f = CrcFinder()
r = f.findCrc(data)
print(r[0])
```

#### use CrcCalculator directly

```python
from crcFinder import CrcCalculator, ShiftType
crc_pkzip = CrcCalculator(32, 0x04c11db7, 0xffffffff, True, True, 0xffffffff, ShiftType.LEFT, ShiftType.LEFT)
assert(crc_pkzip.check() == 0xcbf43926)
```

#### Solver
see `tests/test_Solver.py`

### cli

```bash
# find crc poly and other params
python -m crcFinder find -d 616263646566,4b8e39ef
python -m crcFinder find -d 616263646566,0x4b8e39ef 313233343536373839,0xcbf43926
# calculate data crc
python -m crcFinder calculate --params "width=32 poly=0x04c11db7 init=0xffffffff refin=True refout=True xorout=0xffffffff check=0xcbf43926 name=None tableGenShiftType:ShiftType.LEFT calcShiftType:ShiftType.LEFT extra=None" -d 313233343536373839
# generate a padding to data for specified crc checksum value
python -m crcFinder solve --params "width=32 poly=0x04c11db7 init=0xffffffff refin=True refout=True xorout=0xffffffff check=0xcbf43926 name=None tableGenShiftType:ShiftType.LEFT calcShiftType:ShiftType.LEFT extra=None" --data 68656c6c6f --target 0x12345678
```

## Reference

- <https://reveng.sourceforge.io/crc-catalogue/all.htm>
- <https://github.com/Michaelangel007/crc32>
tamil-niral 1.0.0
A programming language with a Tamil-based command interface.
Requires Python: >=3.8

# Tamil Niral (தமிழ் நிரல்)

Welcome to Tamil Niral, a programming language written in the Tamil script. This project is a Python-based interpreter for the language.

## Installation

You can install Tamil Niral using pip:
```bash
pip install tamil-niral
```

## How to Use

1. Create a file with a `.tn` extension (e.g., `vanakkam.tn`).
2. Write your Tamil Niral code inside.

**Example: `vanakkam.tn`**
```
# This is an example, use your language's syntax
காட்டு("வணக்கம் உலகம்!") 
```

3. Run the file from your terminal:
```bash
tamilniral vanakkam.tn
```

This will output:
```
வணக்
கம் உலகம்!
```