doctor-trans


Namedoctor-trans JSON
Version 1.0.3 PyPI version JSON
download
home_pageNone
SummaryThis package translate whole dataframe in any language without any limits.
upload_time2024-12-17 13:20:49
maintainerNone
docs_urlNone
authorNirmal Patel
requires_pythonNone
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Doctor Trans

Doctor Trans is a powerful Python package for translating large datasets in a DataFrame format. It process multiple columns simultaneously, translating text data from one language to another while preserving data integrity. The package outputs the translated DataFrame, making it perfect for large-scale multilingual data processing in business and research.

## Features
- **Automatic Language Detection**: Automatically detects the source language if not specified.
- **Multiple Language Support**: Supports translation to and from any language available in Google Translate.
- **Error Handling and Logging**: Provides detailed logging to track translation status and handle errors effectively.

## Installation
To use Doctor Trans, ensure the following packages are installed:
```bash
pip install pandas requests openpyxl
```
If Microsoft Visual C++ 14.0 is not installed, you can download it here:
https://visualstudio.microsoft.com/visual-cpp-build-tools/

```python
import pandas as pd
from doctor_trans import trans

# Sample data
data = {
    'Name': ['Hola', 'Bonjour', 'Ciao'],
    'Description': ['Buenos días', 'Bonne journée', 'Buona giornata']
}
df = pd.DataFrame(data)

# Translate the DataFrame to English and return translated DataFrame
df = trans(df, input_lang='auto', output_lang='en')

df.to_excel("translated_file.xlsx", index=False)
```

## Parameters
- **df:** The DataFrame containing text data to translate.
- **input_lang:** (optional) The source language code. Default is 'auto' for automatic detection.
- **output_lang:** (optional) The target language code. Default is 'en' for English.


Make multilingual data processing effortless with Doctor Trans. If you find this package helpful, please refer to your developer friends! 🙂

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "doctor-trans",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": null,
    "author": "Nirmal Patel",
    "author_email": "nirmalpatel1705@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/c0/71/870d78f30b6b7fcd3dfd7cf8e7fab905e053163beb259ae48cd8aeef2a71/doctor_trans-1.0.3.tar.gz",
    "platform": null,
    "description": "# Doctor Trans\r\n\r\nDoctor Trans is a powerful Python package for translating large datasets in a DataFrame format. It process multiple columns simultaneously, translating text data from one language to another while preserving data integrity. The package outputs the translated DataFrame, making it perfect for large-scale multilingual data processing in business and research.\r\n\r\n## Features\r\n- **Automatic Language Detection**: Automatically detects the source language if not specified.\r\n- **Multiple Language Support**: Supports translation to and from any language available in Google Translate.\r\n- **Error Handling and Logging**: Provides detailed logging to track translation status and handle errors effectively.\r\n\r\n## Installation\r\nTo use Doctor Trans, ensure the following packages are installed:\r\n```bash\r\npip install pandas requests openpyxl\r\n```\r\nIf Microsoft Visual C++ 14.0 is not installed, you can download it here:\r\nhttps://visualstudio.microsoft.com/visual-cpp-build-tools/\r\n\r\n```python\r\nimport pandas as pd\r\nfrom doctor_trans import trans\r\n\r\n# Sample data\r\ndata = {\r\n    'Name': ['Hola', 'Bonjour', 'Ciao'],\r\n    'Description': ['Buenos d\u00edas', 'Bonne journ\u00e9e', 'Buona giornata']\r\n}\r\ndf = pd.DataFrame(data)\r\n\r\n# Translate the DataFrame to English and return translated DataFrame\r\ndf = trans(df, input_lang='auto', output_lang='en')\r\n\r\ndf.to_excel(\"translated_file.xlsx\", index=False)\r\n```\r\n\r\n## Parameters\r\n- **df:** The DataFrame containing text data to translate.\r\n- **input_lang:** (optional) The source language code. Default is 'auto' for automatic detection.\r\n- **output_lang:** (optional) The target language code. Default is 'en' for English.\r\n\r\n\r\nMake multilingual data processing effortless with Doctor Trans. If you find this package helpful, please refer to your developer friends! \ud83d\ude42\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "This package translate whole dataframe in any language without any limits.",
    "version": "1.0.3",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "92d9379aad1fab3e41c4d7efd98f5e538bb829b4ac46f7a601f60b051c7276c5",
                "md5": "b716cedd54b4d516009a8a76cbb6a18f",
                "sha256": "561a057756506071151e79d2cda756eba04c12d84267f17c28d0c86916bef1c3"
            },
            "downloads": -1,
            "filename": "doctor_trans-1.0.3-cp311-cp311-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "b716cedd54b4d516009a8a76cbb6a18f",
            "packagetype": "bdist_wheel",
            "python_version": "cp311",
            "requires_python": null,
            "size": 167021,
            "upload_time": "2024-12-17T13:20:46",
            "upload_time_iso_8601": "2024-12-17T13:20:46.360954Z",
            "url": "https://files.pythonhosted.org/packages/92/d9/379aad1fab3e41c4d7efd98f5e538bb829b4ac46f7a601f60b051c7276c5/doctor_trans-1.0.3-cp311-cp311-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c071870d78f30b6b7fcd3dfd7cf8e7fab905e053163beb259ae48cd8aeef2a71",
                "md5": "506e3c0bf05604297673f32be0de6229",
                "sha256": "4a768cb9c2d4d7a065a85beebbbcba7bcc3ed5d7fa41b1a672053db834e0b286"
            },
            "downloads": -1,
            "filename": "doctor_trans-1.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "506e3c0bf05604297673f32be0de6229",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 166911,
            "upload_time": "2024-12-17T13:20:49",
            "upload_time_iso_8601": "2024-12-17T13:20:49.310183Z",
            "url": "https://files.pythonhosted.org/packages/c0/71/870d78f30b6b7fcd3dfd7cf8e7fab905e053163beb259ae48cd8aeef2a71/doctor_trans-1.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-17 13:20:49",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "doctor-trans"
}
        
Elapsed time: 0.40686s