semvec/pypi-packages huggingface dataset:
wiring 0.1.2
package for building bots that run on multiple platforms, like discord and telegram
License: MIT
Requires Python: >=3.8
Keywords: wiring, discord.py, bot, python-telegram-bot, twitchio

![logo with a label 'one bot codebase - multiple platforms'](https://i.ibb.co/1QGmCQx/343200157-4b987f42-1718-4a83-83b1-dc5556da28af.png)

seamless api for developing bots that run on multiple platforms.
**discord**, **telegram** and **twitch** are supported

works with asyncio

learn more in the sections below or **[docs](https://github.com/crucials/wiring/wiki)**

## install

install the base library:

```sh
pip install wiring
```

then choose extra dependencies for platforms that you want your bot to run on

```sh
pip install wiring[discord] wiring[telegram]
```

## usage example

```python
import asyncio

from wiring import (Bot, MultiPlatformMessage, MultiPlatformBot, MultiPlatformUser,
                    Command)
from wiring.platforms.discord import DiscordBot
from wiring.platforms.telegram import TelegramBot


DISCORD_TOKEN = 'place your token here or better load it from enviroment variables'
TELEGRAM_TOKEN = 'place your token here or better load it from enviroment variables'

async def send_commands_list(bot: Bot, message: MultiPlatformMessage,
                             args: list[str]):
    commands_list = '\n'.join(['/' + str(command.name) for command
                               in bot.commands])

    await bot.send_message(
        message.chat.id,
        'available commands:\n' + commands_list,
        reply_message_id=message.id
    )


async def start_bots():
    bot = MultiPlatformBot()

    bot.platform_bots = [
        DiscordBot(DISCORD_TOKEN),
        TelegramBot(TELEGRAM_TOKEN)
    ]

    async with bot:
        await bot.setup_commands([
            Command('help', send_commands_list)
        ])

        # blocks the execution
        await bot.listen_to_events()


asyncio.run(start_bots())
```
poker_game_engine 0.1.2
Game engine for poker game
License: MIT
Requires Python: <4.0,>=3.8

# Texas Hold'em Poker Game Engine for the [Arena Project](https://github.com/yassinekdi/Arena)

## Overview
The [Arena Project](https://github.com/yassinekdi/Arena) features a Texas Hold'em Poker Game Engine designed to allow human players and AI agents to play against each other. This game engine is crafted to be both versatile and robust, suitable for research, development, and entertainment purposes in artificial intelligence and gaming.

## Features

### 1. Versatile and Robust Game Engine
The game engine facilitates gameplay for both human players and AI agents. It is designed to operate independently from the AI environment, ensuring that all players can interact seamlessly with the game mechanics. Key features include:
- Handling all game rules and logic consistently.
- Processing actions taken by players or AI agents effectively.
- Returning the current game state as a dictionary for easy consumption by various clients.

### 2. Integration with Frontend
The design of the game package emphasizes easy integration with a React frontend. This allows developers to build interactive and dynamic UIs that can handle real-time updates and player interactions smoothly. Key integration features include:
- Management of game state in a format that supports real-time updates.
- Compatibility with modern web technologies for seamless frontend integration.
- Facilitation of user interactions through responsive design principles.

## Usage
This game engine is part of the larger [Arena Project](https://github.com/yassinekdi/Arena) and is used as a backend service to manage the flow and rules of the Texas Hold'em poker game. It is intended to be integrated with frontend that provide a visual and interactive user interface.

## Contributing
Contributors are welcome to improve the game engine and adapt it for various uses in gaming and AI research. Please refer to the official project documentation or contact the project maintainers.

## License
This project is licensed under the MIT License - see the LICENSE file for details.