Metadata-Version: 2.3
Name: aidial-adapter-anthropic
Version: 0.3.0rc0
Summary: Package implementing adapter from DIAL Chat Completions API to Anthropic API
License: Apache-2.0
Keywords: ai
Author: EPAM RAIL
Author-email: SpecialEPM-DIALDevTeam@epam.com
Requires-Python: >=3.11,<4.0
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Dist: aidial-sdk (>=0.28.0,<1)
Requires-Dist: aiohttp (>=3.13.3,<4)
Requires-Dist: anthropic (>=0.75.0,<1)
Requires-Dist: pillow (>=10.4.0,<13)
Requires-Dist: pydantic (>=2.8.2,<3)
Project-URL: Documentation, https://epam-rail.com/dial_api
Project-URL: Homepage, https://epam-rail.com
Project-URL: Repository, https://github.com/epam/ai-dial-adapter-anthropic/
Description-Content-Type: text/markdown

        Python SDK for adapter from DIAL API to Anthropic API

- [Overview](#overview)
- [Developer environment](#developer-environment)
- [Set up](#set-up)
  - [Lint](#lint)
  - [Test](#test)
  - [Clean](#clean)
  - [Build](#build)
  - [Publish](#publish)

---

## Overview

The framework provides adapter from [AI DIAL Chat Completion API](https://dialx.ai/dial_api#operation/sendChatCompletionRequest) to [Anthropic Messages API](https://platform.claude.com/docs/en/api/messages).

---

## Developer environment

To install requirements:

```sh
poetry install
```

This will install all requirements for running the package, linting, formatting and tests.

---

## Set up

### Lint

Run the linting before committing:

```sh
make lint
```

To auto-fix formatting issues run:

```sh
make format
```

### Test

Run unit tests locally for available python versions:

```sh
make test
```

Run unit tests for the specific python version:

```sh
make test PYTHON=3.13
```

### Clean

To remove the virtual environment and build artifacts run:

```sh
make clean
```

### Build

To build the package run:

```sh
make build
```

### Publish

To publish the package to PyPI run:

```sh
make publish
```

