Skip to main content

Adtr Translation Client

A simple Python client for the Adtr Translation API.

Installation

Install the client using pip:

pip install adtr_client

Usage

Use the client to translate or creatively rewrite text via the Adtr Translation API. The API accepts several languages, with English-to-Russian and Russian-to-English as the primary translation directions.

Translate English to Russian

from adtr_client import translate

result = translate(
    user_id=123,
    api_key="your_api_key",
    text="English title to translate",
    source_language="en",
    target_language="ru",
)

print(result)

Use source_language="Auto" (the default) when the source language should be detected automatically. Existing calls that only provide target_language continue to work.

Translate Russian to English

from adtr_client import translate

result = translate(
    user_id=123,
    api_key="your_api_key",
    text="Текст для перевода",
    source_language="ru",
    target_language="en",
)

print(result)

Creatively rewrite in the same language

from adtr_client import synonymize

result = synonymize(
    user_id=123,
    api_key="your_api_key",
    text="Text to rewrite",
)

print(result)

Configuration

  1. Obtain your user_id and api_key from the rkn.name service
  2. Replace the example credentials and text with your own values.

Metadata

Release files for adtr-client 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for adtr-client 0.0.5
File Size Uploaded
adtr_client-0.0.5.tar.gz 3.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for adtr-client 0.0.5
File Interpreter ABI Platform
adtr_client-0.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 7.3 kB

Release files / adtr_client-0.0.5.tar.gz

Download URL adtr_client-0.0.5.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
38ea35356a5b522a9455d1c7d7bb3af46151f8d41d3075fe5dafabcee4b13d42
BLAKE2b-256 checksum
How to use checksums
6909c2bc648fa57c94c5cd832dce13e11a6e75ef1e314fb62d4a192ba52504ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Release files / adtr_client-0.0.5-py3-none-any.whl

Download URL adtr_client-0.0.5-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ad8ec414dca9f28d07bdbd4a01e4b6b29bc42f639c662935b3c8c4cd809a2c74
BLAKE2b-256 checksum
How to use checksums
574ca02b9a1eed855d98a9925109cb991b1d033a3ef68a708be145c123b986e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Release history Release notifications | RSS feed

0.0.7

2 release files

0.0.6

2 release files

This release

0.0.5 This release

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page