semvec/pypi-packages huggingface dataset:
llm-router-ai 0.1.0
Intelligent routing of LLM API calls across multiple providers with automatic fallbacks, cost optimization, and monitoring
License: MIT
Requires Python: >=3.8
Keywords: llm, ai, router, openai, anthropic, api, fallback, cost-optimization

# LLM Router AI

Intelligent routing of LLM API calls across multiple providers with automatic fallbacks, cost optimization, caching, health monitoring, and retry logic.

## Features

- **Multi-Provider Support**: OpenAI, Anthropic, and extensible for other providers
- **Intelligent Routing**: Priority-based, cost-optimized, and round-robin strategies
- **Automatic Fallbacks**: Seamless failover between providers
- **Cost Optimization**: Track and optimize API usage costs
- **Caching**: Redis-based response caching for improved performance
- **Health Monitoring**: Real-time provider health checks
- **Retry Logic**: Configurable retry mechanisms with exponential backoff
- **Async Support**: Full async/await support for high-performance applications
- **Streaming**: Support for streaming responses
- **CLI Interface**: Command-line tool for easy integration
- **Metrics**: Prometheus-compatible metrics collection

## Installation

```bash
pip install llm-router-ai
```

## Quick Start

```python
from llm_router import LLMRouter, RouterConfig
from llm_router.providers import OpenAIProvider, AnthropicProvider

# Configure providers
config = RouterConfig(
    providers=[
        OpenAIProvider(api_key="your-openai-key"),
        AnthropicProvider(api_key="your-anthropic-key")
    ],
    strategy="priority"
)

# Create router
router = LLMRouter(config)

# Make a request
response = await router.chat_completion(
    messages=[{"role": "user", "content": "Hello, world!"}],
    model="gpt-4"
)
```

## Documentation

For detailed documentation, examples, and API reference, visit our [GitHub repository](https://github.com/joai22/llm-router).

## License

MIT License - see [LICENSE](LICENSE) file for details.
pdm-plugin-i 0.2.1
A PDM plugin that make `pdm i` as alias of `pdm install`
License: MIT
Requires Python: >=3.9

# pdm-plugin-i

[![Tests](https://github.com/waketzheng/pdm-plugin-i/workflows/Tests/badge.svg)](https://github.com/waketzheng/pdm-plugin-i/actions?query=workflow%3Aci)
[![pypi version](https://img.shields.io/pypi/v/pdm-plugin-i.svg)](https://pypi.org/project/pdm-plugin-i/)
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/waketzheng/pdm-plugin-i/main.svg)](https://results.pre-commit.ci/latest/github/waketzheng/pdm-plugin-i/main)
[![pdm-managed](https://img.shields.io/badge/pdm-managed-blueviolet)](https://pdm-project.org)

A PDM plugin that add command `pdm i` as alias of `pdm install`

## Requirements

pdm-plugin-i requires Python >=3.9

## Installation

On PDM 2.25+, you can install the plugin directly by:

```bash
$ pdm self add pdm-plugin-i
```

If you have installed PDM with the recommended tool `pipx`, add this plugin by:

```bash
$ pipx inject pdm pdm-plugin-i
```

Or if you have installed PDM with `pip install --user pdm`, install with `pip` to the user site:

```bash
$ python -m pip install --user pdm-plugin-i
```

Otherwise, install `pdm-plugin-i` to the same place where PDM is located.

## Usage

```
$ pdm i
```

**Common Options:**

The same as `pdm install`

## Changelog

See [CHANGELOG.md](https://github.com/waketzheng/pdm-plugin-i/blob/main/CHANGELOG.md)