gpt-translate


Namegpt-translate JSON
Version 2.0.1 PyPI version JSON
download
home_page
SummaryA tool to translate markdown files using GPT-4
upload_time2024-03-13 10:51:40
maintainer
docs_urlNone
author
requires_python>=3.9
license
keywords artificial intelligence generative models natural language processing openai
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            [![PyPI version](https://badge.fury.io/py/termgpt.svg)](https://badge.fury.io/py/gpt_translate)

# gpt_translate


This is a tool to translate the language in Markdown files.

> You will need and OpenAI API key to use this tool.

## Installation
You have to clone the repo and then do:

```bash
$ cd gpt_translate
$ pip install .
```
## Usage

We use GPT4 by default. You can change this on `configs/model_config.yaml`

> You can add new languages by providing the language translation dictionaries in `configs/language_dicts`


To translate a single file:

```bash
$ gpt_translate.file README.md README_es_.md --language es
```

to translate a full folder recursively:

```bash
$ gpt_translate.folder docs docs_ja --language ja
```

If you don't know what to do, you can always do:

```bash
$ gpt_translate --help
```

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "gpt-translate",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": "",
    "keywords": "artificial intelligence,generative models,natural language processing,openai",
    "author": "",
    "author_email": "Thomas Capelle <tcapelle@pm.me>",
    "download_url": "https://files.pythonhosted.org/packages/f0/cc/2defa670753af0178828aed44394a11211b0de8ed8c2c06a1c60c9bc1546/gpt_translate-2.0.1.tar.gz",
    "platform": null,
    "description": "[![PyPI version](https://badge.fury.io/py/termgpt.svg)](https://badge.fury.io/py/gpt_translate)\n\n# gpt_translate\n\n\nThis is a tool to translate the language in Markdown files.\n\n> You will need and OpenAI API key to use this tool.\n\n## Installation\nYou have to clone the repo and then do:\n\n```bash\n$ cd gpt_translate\n$ pip install .\n```\n## Usage\n\nWe use GPT4 by default. You can change this on `configs/model_config.yaml`\n\n> You can add new languages by providing the language translation dictionaries in `configs/language_dicts`\n\n\nTo translate a single file:\n\n```bash\n$ gpt_translate.file README.md README_es_.md --language es\n```\n\nto translate a full folder recursively:\n\n```bash\n$ gpt_translate.folder docs docs_ja --language ja\n```\n\nIf you don't know what to do, you can always do:\n\n```bash\n$ gpt_translate --help\n```\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "A tool to translate markdown files using GPT-4",
    "version": "2.0.1",
    "project_urls": {
        "homepage": "https://github.com/tcapelle/gpt_translate"
    },
    "split_keywords": [
        "artificial intelligence",
        "generative models",
        "natural language processing",
        "openai"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "eefd35ba4be794994a3782ba31c23bac21244ec4a3ae3b738b4b55556d167c41",
                "md5": "681e460f1629c21e5e331a84d2a4eb3f",
                "sha256": "35811b7b7f69a749cd32dec170f4ec125eba9f4871f8804fd0344c778b724d84"
            },
            "downloads": -1,
            "filename": "gpt_translate-2.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "681e460f1629c21e5e331a84d2a4eb3f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 8962,
            "upload_time": "2024-03-13T10:51:39",
            "upload_time_iso_8601": "2024-03-13T10:51:39.081615Z",
            "url": "https://files.pythonhosted.org/packages/ee/fd/35ba4be794994a3782ba31c23bac21244ec4a3ae3b738b4b55556d167c41/gpt_translate-2.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f0cc2defa670753af0178828aed44394a11211b0de8ed8c2c06a1c60c9bc1546",
                "md5": "0dc48c9f3267b0e349f5c4fb9b55339f",
                "sha256": "c7296abcad4f1bc0e278959e21a75692d007675f92d712fa341fa8a5c97d00d2"
            },
            "downloads": -1,
            "filename": "gpt_translate-2.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "0dc48c9f3267b0e349f5c4fb9b55339f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 9311,
            "upload_time": "2024-03-13T10:51:40",
            "upload_time_iso_8601": "2024-03-13T10:51:40.188911Z",
            "url": "https://files.pythonhosted.org/packages/f0/cc/2defa670753af0178828aed44394a11211b0de8ed8c2c06a1c60c9bc1546/gpt_translate-2.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-13 10:51:40",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "tcapelle",
    "github_project": "gpt_translate",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "gpt-translate"
}
        
Elapsed time: 0.20871s