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:
- Have an OpenAI API key
- 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
- Set your OpenAI API key as an environment variable:
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: Koreanja: Japanesezh: Chinese Simplifiedes: Spanishfr: Frenchde: Germanit: Italianpt: Portugueseru: Russianar: Arabicvi: Vietnamese
The translated files will be saved according to your configured pattern (default: README_{lang}.md).
Commands
poly-readme install- Configure OpenAI API keypoly-readme setup- Configure project settingspoly-readme translate- Translate README filespoly-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
- Chad Lee
- Email: think.bicycle@gmail.com
- GitHub: drllr/poly-readme
Acknowledgments
- This tool uses OpenAI's GPT-4 model for translations
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0dd7e9eba7da82ad67cd37c845067443e7a54cdaacdabebca4cff1d292989ea9
|
|
| MD5 |
0d15af00ff221bbd6f3d6c935a83c178
|
|
| BLAKE2b-256 |
160c94a0d6d068305a652f3cf28e96fb8c65832f9db99ab5a15561d7a0d49f34
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
760a0287f3dcf6db36cde225517e1b38adaabcd768b5eb7609b8d74623d06df3
|
|
| MD5 |
aeb8f315d716304b1d31a0c2d818162d
|
|
| BLAKE2b-256 |
33b64dbe86e576d26e7999b7e4517097722245464e570a8e624e73caa9be6274
|