Skip to main content

Package implementing adapter from DIAL Chat Completions API to Anthropic API

Project description

Python SDK for adapter from DIAL API to Anthropic API

About DIALX

PyPI version Discord


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

  1. Install Poetry. See the official installation guide.

  2. (Optional) Specify custom Python or Poetry executables in .env.dev. This is useful if multiple versions are installed. By default, python and poetry are used.

    POETRY_PYTHON=path-to-python-exe
    POETRY=path-to-poetry-exe
    
  3. Create and activate the virtual environment:

    make init_env
    source .venv/bin/activate
    
  4. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aidial_adapter_anthropic-0.6.0rc0.tar.gz (35.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aidial_adapter_anthropic-0.6.0rc0-py3-none-any.whl (49.3 kB view details)

Uploaded Python 3

File details

Details for the file aidial_adapter_anthropic-0.6.0rc0.tar.gz.

File metadata

  • Download URL: aidial_adapter_anthropic-0.6.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

Hashes for aidial_adapter_anthropic-0.6.0rc0.tar.gz
Algorithm Hash digest
SHA256 18f96ceb4e64ceb2e248ebba74148b89bad08929ce4723fc5a76dee7c0817a66
MD5 97f56714a3414f6477d0809de6127e9e
BLAKE2b-256 8aca1086ff51e147523174476c92a70967e59074a0fb789346b200845433425c

See more details on using hashes here.

File details

Details for the file aidial_adapter_anthropic-0.6.0rc0-py3-none-any.whl.

File metadata

File hashes

Hashes for aidial_adapter_anthropic-0.6.0rc0-py3-none-any.whl
Algorithm Hash digest
SHA256 711de1960fd573e620dc089a2869ede7b638d5401d41057de460a8ddcfe10285
MD5 186ca7f5333a7b41dce791623142442d
BLAKE2b-256 ecada944d4c98e44ab2c5e9a000de55b003d62b54454a1af4c0350de5209228e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page