Skip to main content

No project description provided

Project description

KR Translator

Translate a korean txt file.

Installation

You can install the package using pip:

pip install kr-translation

Usage

Getting OPENAI API KEY

  1. Go to https://platform.openai.com/api-keys, follow instruction over there.

  2. Save the API KEY somewhere save.

Basic Translation

from kr_translator.caller import TextTranslator

translator = TextTranslator(
  api_key="your_api_key_here", 
  source_file_location="/path/to/file.txt"
)
output = translator.translate()

print(output)

Save Translation to a file

from kr_translator.caller import TextTranslator

translator = TextTranslator(
  api_key="your_api_key_here", 
  source_file_location="/path/to/file.txt"
)
output = translator.translate()
translator.save_translation("output_file.txt")

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

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

kr_translator-0.1.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

kr_translator-0.1.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file kr_translator-0.1.0.tar.gz.

File metadata

  • Download URL: kr_translator-0.1.0.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.6

File hashes

Hashes for kr_translator-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d87134ebd1e96ff9632ad097680c8b4e72abb76c15365f2a7883d469719159d3
MD5 53854b17f2fbfae4671f15011afac6b5
BLAKE2b-256 cfa8bfa2cfcaa61f2a6f75b571dcf4d3d7661570c08709b0cee12c35e1358757

See more details on using hashes here.

File details

Details for the file kr_translator-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for kr_translator-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f2f06612d9695d7b5cac2be06dffa62f4088133fb4962e9c183a58be29e0d03b
MD5 96d6e016d81389b8e49bedb9a25e382d
BLAKE2b-256 46de6c5f5eb954d696ce45f5cdb49fd9ae15b106ab83d67a97df2f7d67c9b530

See more details on using hashes here.

Supported by

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