semvec/pypi-packages huggingface dataset:
vaitty-eventbus 0.0.5
A minimal, internal Python library for decoupled event communication using channels and wildcard-capable handlers.
Requires Python: >=3.9

# vaitty_eventbus

A minimal, internal Python library for decoupled event communication using channels and wildcard-capable handlers.

---

## 🚀 Features

- 🔌 Pluggable event channels (console, file, or custom)
- 🎯 Wildcard-matching event handlers (`user.*`, `*`)
- 🔁 Emits and triggers events independently
- 🧼 No third-party dependencies
- 🧩 Fully configurable via Python dict or environment variables

---

## 📦 Installation

To manually install the package, download the `vaitty_eventbus-X.X.X-py3-none-any.whl` file from the `dist` directory and run the following command:

```bash
pip install vaitty_eventbus-X.X.X-py3-none-any.whl
```

## 🛠 Configuration

You can configure vaitty_eventbus through a dictionary or environment variables:

- **EVENTBUS_CHANNEL**: Determines the channel type to use: `console`, `file`, `http`, or a registered custom type. Default: `console`
- **EVENTBUS_FILE**: For the `file` channel, the path to the log file. Default: `events.log`
- **EVENTBUS_HTTP_ENDPOINT**: For the `http` channel, the target HTTP endpoint. Default: `http://example.com/events`

### Example using environment variables:
```bash
export EVENTBUS_CHANNEL=file
export EVENTBUS_FILE=/tmp/my-events.log
```

### Example using a configuration dictionary:
```python
from vaitty_eventbus import EventHandlerFactory

config = {
    "EVENTBUS_CHANNEL": "http",
    "EVENTBUS_HTTP_ENDPOINT": "http://api.my-events.com/ingest"
}
handler = EventHandlerFactory.from_config(config=config)
```

## 🌿 Usage

Here's a simple example demonstrating basic usage of `vaitty_eventbus`:

```python
from typing import Any, Dict

from vaitty_eventbus import EventHandlerFactory, Event

def handle_all(payload: Dict[str, Any]):
    print(f"[*] Received: {payload}")

def handle_user(payload: Dict[str, Any]):
    print(f"[user.*] User event: {payload}")

def handle_login(payload: Dict[str, Any]):
    print(f"[user.login] Specific login: {payload['user_id']}")

handler = EventHandlerFactory.from_config()

# Send an event using a configured channel
handler.emit("user.login", {"user_id": 42})

# Register event handlers for each topic or use wildcards
handler.on("*", handle_all)
handler.on("user.*", handle_user)
handler.on("user.login", handle_login)

# Receive an event (maybe some /events endpoint on your app)
event = Event("user.login", {"user_id": 42})

# Call all matched handlers
handler.trigger(event)

```

## 🔮 Extensibility

The library is designed to be easily extended:

1. Add new `EventChannel` subclasses.
2. Register them with `EventHandlerFactory.register_channel`.
3. Configure their behavior through the dictionary or environment variables.

This makes it simple to integrate `vaitty_eventbus` into diverse workflows and systems!
dash-favicon-plugin 0.1.1
Set favicon plugin for Dash applications using Dash Hooks.
Requires Python: >=3.8

# dash-favicon-plugin

[![GitHub](https://shields.io/badge/license-MIT-informational)](https://github.com/CNFeffery/dash-offline-detect-plugin/blob/main/LICENSE)
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)

Set favicon plugin for Dash applications using Dash Hooks.

## Installation

```bash
pip install dash-favicon-plugin
```

## Usage

```python
from dash import Dash
# Import the favicon plugin
from dash_favicon_plugin import setup_favicon_plugin

# Enable the favicon plugin for the current app
setup_favicon_plugin(favicon=r"/assets/favicon.png")

app = dash.Dash(__name__)
# Rest of your app code...
```

## Example

Run the included example:

```bash
python example.py
```

<center><img src="./images/demo.gif" /></center>

## API Reference

### `setup_favicon_plugin()`

This function enables the favicon feature for your Dash application.

| Parameter | Type  | Default | Description                                                  |
| --------- | ----- | ------- | ------------------------------------------------------------ |
| `favicon` | `str` | `-`     | `pathname of favicon,  supporting svg, png, ico, gif formats.` |
chattedrooms 0.1.0
Official SDK for ChattedRooms, libchattedrooms. VERY EXPERIMENTAL
Requires Python: >=3.8

# Libchattedrooms
Official SDK for ChattedRooms, `libchattedrooms`.

Attempts to replicate some of the [PyCharacterAI](https://pypi.org/project/PyCharacterAI/) api.

MAY NOT WORK FULLY!

## Installation

```bash
pip install chattedrooms
```

## Requirements

- Python >= 3.8
- requests
- aiohttp
- websockets

## EXample

```python
import chattedrooms

# Example usage here
```

## Links

- [Homepage](https://github.com/RoominatorAI/sdk)
- [Issues](https://github.com/RoominatorAI/sdk/issues)

## License

MIT License