Skip to main content

Translate the epub book using LLM. The translated book will retain the original text and list the translated text side by side with the original text.

Project description

epub-translator

Translate the epub book using LLM. The translated book will retain the original text and list the translated text side by side with the original text.

Field Description

  • file: the epub file to be translated.
  • title: the title of the book to be translated (original language)
  • max_translating_group: the maximum amount of translation text submitted each time. Books will be submitted in chunks during translation, and this value will limit the maximum length of each chunk.
  • max_translating_group_unit: the unit of the max_translating_group_unit.
  • source: the language of the book to be translated.
  • target: the target language you want to translate it into.
  • llm_api: the LLM API format used for translation.
  • model: the model used for translation
  • url: the URL of the LLM
  • api_key: the Key of the LLM
  • temperature: the temperature of the LLM, which is a parameter used to control the randomness of the generated text. In simple terms, the lower the temperature value, the more certain and conservative the text generated by the model. The higher the temperature value, the more random and diverse the text generated by the model.
  • timeout: the request timeout, in seconds.
  • binary: the translated target epub file content.

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

epub_translator-0.0.1.tar.gz (10.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

epub_translator-0.0.1-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

Details for the file epub_translator-0.0.1.tar.gz.

File metadata

  • Download URL: epub_translator-0.0.1.tar.gz
  • Upload date:
  • Size: 10.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.4 Darwin/24.5.0

File hashes

Hashes for epub_translator-0.0.1.tar.gz
Algorithm Hash digest
SHA256 94c582052fb61fc5eaa1a9cc17a34310b08b28ff3dc2af08748c99dde8c26551
MD5 d54c86c0a1ad717f73b6155b39a04ecf
BLAKE2b-256 64f6e5d8e8b36e5ea8157bb3ed8363a2d856b1ec8fec62df427b7f40bc1add99

See more details on using hashes here.

File details

Details for the file epub_translator-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: epub_translator-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 15.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.4 Darwin/24.5.0

File hashes

Hashes for epub_translator-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f9005283108a35348da8e6019d85cae2eb69a01f06fba1528c7039c7b0d5f3f8
MD5 41dd411f4523c1d4c2bad180a2affb0a
BLAKE2b-256 fc8053a4a7682ed88d023601bd69e7d4aac874885eeb49a2960a852f74ad910d

See more details on using hashes here.

Supported by

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