Skip to main content

OpenAI Translate

PyPI version License: MIT Python 3.8+

Translate text with OpenAI's ChatGPT Translate — no login, no API key required.

Features

  • No authentication or API keys needed
  • Automatic source language detection
  • 50+ languages supported
  • Lightweight: only depends on requests

Installation

pip install openai-translate

Usage

from openai_translate import OpenAITranslate

t = OpenAITranslate()

t.translate("Hello world", target="es", source="en")
# Hola mundo

t.translate("مرحبا بالعالم", target="en")
# Hello world (source auto-detected)

t.translate("Good morning", target="ar", source="en")
# صباح الخير

translate(text, target="en", source="detect")

Argument Description Default
text Text to translate —
target Target language code (e.g. es) "en"
source Source language code, or "detect" "detect"

How it works

The library replicates the public web flow of chatgpt.com/translate, handling the session bootstrap and request handshake automatically — everything is extracted at runtime, nothing for you to configure.

License

MIT

Metadata

Release files for openai-translate 1.0.3

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

Source distribution (sdist)

Source distribution for openai-translate 1.0.3
File Size Uploaded Provenance Actions
openai_translate-1.0.3.tar.gz 4.7 kB Without provenance Details for openai_translate-1.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for openai-translate 1.0.3
File Interpreter ABI Platform Actions
openai_translate-1.0.3-py3-none-any.whl Python 3 none any Details for openai_translate-1.0.3-py3-none-any.whl

Total release size: 9.8 kB

Release files / openai_translate-1.0.3.tar.gz

Download URL openai_translate-1.0.3.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
6e3fc7d27e478a5f6d6c6756fd736e4eb71ee6144a6acf2ce0d29b165dfa3494
BLAKE2b-256 checksum
How to use checksums
bdc366acea19d63344cb85302d8c196a5d9a5ac62598ffc7415ab360fb43fc19
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / openai_translate-1.0.3-py3-none-any.whl

Download URL openai_translate-1.0.3-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
36c1e7cb94fae556bf689c8d694b42b2d689dba9982fe394e5a01bc7f0ff4b63
BLAKE2b-256 checksum
How to use checksums
891ab60f47bfd33830b6da1edf0cf74971951cf74173c549b5bba0b6f92e8629
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for openai-translate 1.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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