semvec/pypi-packages huggingface dataset:
arclet-alconna-tools 0.7.12
Builtin Tools for Alconna
License: MIT
Requires Python: >=3.9

# Alconna Tools

Provider various tools for Alconna

Extensions:

- `actions`: `exclusion`, `cooldown`, `inclusion`
- `checker`: `simple_type`
- `constrcut`: ` AlconnaDecorate`, `AlconnaFormat`, `AlconnaString`, `AlconnaFire`
- `formatter`: `Shell`, `Markdown`, `RichText`, `RichConsole`
- `pattern`: `ObjectPattern`

## Example:

`AlconnString`:

```python
#constrcut.py
from arclet.alconna.tools import AlconnaString

alc = (
    AlconnaString('constrcut')
    .option('alpha', '-a')          
    .option('beta', '-b [beta]')
    .option('gamma', '-c <gamma>')
    .build()
)

if __name__ == '__main__':
    alc()
```

```shell
$ python constrcut.py -a -b -c abc
{"alpha": ..., "beta": {}, "gamma": "abc"}
```
hashkv 2025.8.241553
Async get/set helpers for string values under hashed Redis keys (with TTL).
License: MIT
Requires Python: >=3.10

[![PyPI version](https://badge.fury.io/py/hashkv.svg)](https://badge.fury.io/py/hashkv)
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)
[![Downloads](https://static.pepy.tech/badge/hashkv)](https://pepy.tech/project/hashkv)
[![LinkedIn](https://img.shields.io/badge/LinkedIn-blue)](https://www.linkedin.com/in/eugene-evstafev-716669181/)

# hashkv

Async helpers to **get/set string values** for hashed Redis keys with TTL.

Key format: `"{prefix}:{hash_hex}"`. You pass a precomputed hash string.

## Install
```bash
pip install hashkv
````

## Usage

```python
import asyncio
from hashkv import get_hash_value, set_hash_value

async def main():
    url = "redis://localhost:6379/0"
    prefix = "some_prefix"
    hash_hex = "cf2d9b0f..."  # your hash

    await set_hash_value(hash_hex, value="ok", ttl_seconds=600, redis_url=url, key_prefix=prefix)
    cur = await get_hash_value(hash_hex, redis_url=url, key_prefix=prefix)
    print(cur)  # "ok"

if __name__ == "__main__":
    asyncio.run(main())
```

MIT © Eugene Evstafev