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.6

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.6
File Size Uploaded
adtr_client-0.0.6.tar.gz 4.1 kB Details

Built distribution (wheel)

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

Total release size: 7.8 kB

Release files / adtr_client-0.0.6.tar.gz

Download URL adtr_client-0.0.6.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
1e3b301e4cb6c13323e0a7676ae9314ee058924778a8b41c4d33bb6afdd46163
BLAKE2b-256 checksum
How to use checksums
43b64bc78a29f4175e7efd45e14c94c94a171cd8ad431e9f344a5059b0bfe94d
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.6-py3-none-any.whl

Download URL adtr_client-0.0.6-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b80d9e287529702c4b9be21a0af216fda2b3491eb19a7074474056f00114ef64
BLAKE2b-256 checksum
How to use checksums
66f7e85f72cdb32c676fc7c38003b96f3d53af2932bcb2c25a778d205b4b296c
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

This release

0.0.6 This release

2 release files

0.0.5

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