Catalog PyPI
PACKAGE EXPLORERView in registry

adtr-client

PyPI

A simple Python client for the [Adtr Translation/Synonymization API]

Versions collected1
Direct dependencies1From release 0.0.7
Last observed20 Oct, 19:56 UTC

README

Version 0.0.7 documentation

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. Translation text can be up to 50,000 characters. For long descriptions, set a larger timeout if needed because the API translates them in smaller sections.

Pass optional context to identify the medium or subject without including it in the translated result:

result = translate(
    user_id=123,
    api_key="your_api_key",
    text="Game title to translate",
    target_language="ru",
    context="This is the title of an adult flash game",
)

context also works with synonymize; its title limit remains 300 characters.

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.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.0.72 Oct 20261

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
pi11/adtr_client

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 19:56 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:ae9bc1067a49565323ce8d82d21c660c4b866640e70f51f6f4524426e5c1cf52