semvec/pypi-packages huggingface dataset:
prompt-template-assembler 0.0.1
A module to create prompt templates dynamically
Requires Python: >=3.7


# Prompt Template Assembler

**Prompt Template Assembler** is a Python library designed to streamline the creation and management of dynamic prompt templates for AI models.

Instead of handling the entire lifecycle of a prompt, **Prompt Template Assembler** specializes in the **stacking of prompt templates**—unformatted prompts with placeholders—leaving the task of filling in these templates to common LLM libraries like Langchain. This approach can be seen as a **replacement for prompt chaining** in libraries such as LangChain, offering more flexibility and control.

## Key Features

- **Conditional Prompt Stacking**: Stack prompt templates conditionally, allowing the creation of adaptable prompts based on specific scenarios or use cases.
- **Custom Categories for Templates**: Organize prompt templates into user-defined categories, making it easy to call and merge templates based on modular, structured designs.
- **"Send to Bin" Logic**: (Optional) you can temporarily store parts of a prompt in a "bin" and retrieve or merge them at a later point, enabling more dynamic and flexible prompt building over multiple stages.
- **Statement vs. Question Formatting**:  prompts can be defined in a way which allows them to be formatted as informative statements or questions, allowing you to switch between different styles of interactions without changing the core context.
- **Intuitive Interface**: Designed with simplicity and usability in mind, the library enables users to construct prompts effortlessly without complex chaining or dependencies.

## Why Choose Prompt Assembler?

**Prompt Assembler** was built to dynamically **stack and assemble prompts** while sidestepping the inflexible chain structures found in many other libraries. Developers gain fine-grained control over how prompts are built and combined, making it an ideal solution for projects ranging from simple chatbots to complex AI workflows.

The library also includes a **YAML-based prompt management system**, allowing you to store, version, and manage prompts in a human-readable format. This is especially useful for teams working on large-scale AI applications where prompt updates and variations are frequent.

## Error Handling

Prompt Assembler offers robust error handling, ensuring that missing or incorrect placeholders are managed gracefully. The library detects errors early, providing a smooth and reliable prompt generation experience even in production environments.

---

With **Prompt Assembler**, you can simplify and enhance your prompt engineering workflows, whether you're building conversational agents, fine-tuning machine learning models, or managing large-scale AI-driven applications.
poe-async-client 0.0.6
Async client to run simultaneous requests against the Path of Exile API without triggering rate limiting
Requires Python: >=3.11
Keywords: Path of Exile, PoE, API, Client, GGG

# PoEClient

Async client to run simultaneous requests against the Path of Exile API without triggering rate limiting

# Installation

```
pip install poe-async-client
```

# Example usage

```python
import asyncio
from poe_async_client.poe_client import PoEClient

async def fetch_stash_changes_simultaneously():
    client = PoEClient(
        max_requests_per_second=5,
        user_agent="OAuth myapp/1.0.0 (Contact: Liberatorist@gmail.com)"
    )
    async with client:
        token_response = await client.get_client_credentials(
            client_id="myapp",
            client_secret="super secret",
            scope="service:psapi"
        )
        token = token_response["access_token"]

        simultaneous_requests = [
            client.get_public_stashes(token=token)
            for _ in range(10)
        ]

        responses = await asyncio.gather(*simultaneous_requests)

```