Package implementing adapter from DIAL Chat Completions API to Anthropic API
Project description
Python SDK for adapter from DIAL API to Anthropic API
Overview
The framework provides adapter from AI DIAL Chat Completion API to Anthropic Messages API.
Development Environment
This project requires Python ≥3.11 and Poetry ≥2.1.1 for dependency management.
Setup
-
Install Poetry. See the official installation guide.
-
(Optional) Specify custom Python or Poetry executables in
.env.dev. This is useful if multiple versions are installed. By default,pythonandpoetryare used.POETRY_PYTHON=path-to-python-exe POETRY=path-to-poetry-exe
-
Create and activate the virtual environment:
make init_env source .venv/bin/activate
-
Install project dependencies (including linting, formatting, and test tools):
make install
Lint
Run the linting before committing:
make lint
To auto-fix formatting issues run:
make format
Test
Run unit tests locally for available python versions:
make test
Run unit tests for the specific python version:
make test PYTHON=3.13
Clean
To remove the virtual environment and build artifacts run:
make clean
Build
To build the package run:
make build
Publish
To publish the package to PyPI run:
make publish
Git hooks
You may optionally install Git hooks that will automatically run the linting step on Git push. You only need to do it once for the given repository.
make install_git_hooks
[!IMPORTANT] This command doesn't work if you have already installed Git hooks locally or globally.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aidial_adapter_anthropic-0.7.0rc0.tar.gz.
File metadata
- Download URL: aidial_adapter_anthropic-0.7.0rc0.tar.gz
- Upload date:
- Size: 35.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.11.15 Linux/6.17.0-1010-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2516be5e25aaaee88826dbd8cacbe7996b8b395d3deddcdc0a4e60eb36341d2a
|
|
| MD5 |
ecb1ae00bca7689cd8fda8b1bb56bc80
|
|
| BLAKE2b-256 |
5248fdc7896ba6389bbd06cd31796501f25e7b80127ec019845e5930b20e3aca
|
File details
Details for the file aidial_adapter_anthropic-0.7.0rc0-py3-none-any.whl.
File metadata
- Download URL: aidial_adapter_anthropic-0.7.0rc0-py3-none-any.whl
- Upload date:
- Size: 49.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.11.15 Linux/6.17.0-1010-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
41e274ffa6dccbd905444a1320ed306fa5606ff8c3905ab9a472e21ab3986aa9
|
|
| MD5 |
08c27ba2e0ffd1aadcbbdb5c808c71ea
|
|
| BLAKE2b-256 |
f9524a74818dc605a1656c907798befbdd58283a1fab8081db8ed51d96582136
|