Skip to main content

A tool to translate README files into multiple languages using ChatGPT.

Project description

Poly-README

Poly-README is a command-line tool that automatically translates your README.md files into multiple languages using OpenAI's GPT-4 model.

Features

  • Automatic translation of README.md files
  • Support for multiple target languages
  • Simple command-line interface
  • Maintains markdown formatting
  • Uses OpenAI's GPT-4 for high-quality translations
  • Secure API key management using system keyring
  • Project-level configuration using YAML
  • Progress indicator during translation
  • Support for custom output filename patterns

Installation

pip install poly-readme

Prerequisites

Before using Poly-README, you need to:

  1. Have an OpenAI API key
  2. Either:
    • Set your OpenAI API key as an environment variable:
      export OPENAI_API_KEY='your-api-key-here'
      
    • Or install it securely using the CLI:
      poly-readme install
      

Usage

Initial Setup

Configure your project settings:

poly-readme setup

This will guide you through:

  • Setting the source README file location
  • Selecting target languages for translation
  • Configuring output filename pattern

Translation

Translate your README according to your project configuration:

poly-readme translate

Available Language Codes

  • ko: Korean
  • ja: Japanese
  • zh: Chinese Simplified
  • es: Spanish
  • fr: French
  • de: German
  • it: Italian
  • pt: Portuguese
  • ru: Russian
  • ar: Arabic
  • vi: Vietnamese

The translated files will be saved according to your configured pattern (default: README_{lang}.md).

Commands

  • poly-readme install - Configure OpenAI API key
  • poly-readme setup - Configure project settings
  • poly-readme translate - Translate README files
  • poly-readme help [command] - Show help information

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

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

Author

Acknowledgments

  • This tool uses OpenAI's GPT-4 model for translations

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

poly-readme-0.1.0.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

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

poly_readme-0.1.0-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file poly-readme-0.1.0.tar.gz.

File metadata

  • Download URL: poly-readme-0.1.0.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for poly-readme-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0dd7e9eba7da82ad67cd37c845067443e7a54cdaacdabebca4cff1d292989ea9
MD5 0d15af00ff221bbd6f3d6c935a83c178
BLAKE2b-256 160c94a0d6d068305a652f3cf28e96fb8c65832f9db99ab5a15561d7a0d49f34

See more details on using hashes here.

File details

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

File metadata

  • Download URL: poly_readme-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for poly_readme-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 760a0287f3dcf6db36cde225517e1b38adaabcd768b5eb7609b8d74623d06df3
MD5 aeb8f315d716304b1d31a0c2d818162d
BLAKE2b-256 33b64dbe86e576d26e7999b7e4517097722245464e570a8e624e73caa9be6274

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