csv-trans


Namecsv-trans JSON
Version 1.1.4 PyPI version JSON
download
home_pagehttps://github.com/ML-Dev-Hub/universal-translator-for-csv-files
SummaryA package for translating csv files across multiple languages
upload_time2023-03-29 01:55:01
maintainer
docs_urlNone
authorSaeed Ahmad
requires_python>=3.6
license
keywords python csv translate translator google google translator google translate translate csv
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# Universal Translator for csv files

[![Downloads](https://static.pepy.tech/personalized-badge/csv-trans?period=total&units=international_system&left_color=grey&right_color=brightgreen&left_text=Downloads)](https://pepy.tech/project/csv-trans)    [![PyPI](https://img.shields.io/pypi/v/csv-trans)](https://pypi.org/project/csv-trans/)   [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/csv-trans)](https://pypi.org/project/csv-trans/)



This package is used to translate csv files across different languages. It uses the Google Translate API to translate the csv files from a source language to a target language. Supported languages are listed [here](https://cloud.google.com/translate/docs/languages). The package can handle csv files with multiple columns and rows and can translate the whole file in one go, saving your time and effort. 

## Installation
```bash
pip install csv-trans
```

You can use the package in two ways:
1. Using the command line interface (CLI)
2. Using the import utility in your python code.

Both the CLI and the import utility take the same arguments. The only difference is that the CLI takes the arguments as command line arguments while the import utility takes the arguments as function arguments. The arguments are listed below.

1. `--file` or `-f`: The path to the source csv file.
2. `--source_language` or `-sl`: The source language of the csv file.
3. `--target_language` or `-tl`: The target language of the csv file.
4. `--sep` or `-s`: The separator used in the csv file.

### Using the import utility
```bash
from csv_trans import translate
translate(file, source_language, target_language, sep=',')
```


### Using the CLI utility
- Open the CLI and install the package
- Use the below command
```bash
 csv_trans -f <file_name> -sl <source_language> -tl <target_language> -fs <file_seperator>
```


For Further information, checkout our [GitHub Page](https://github.com/ML-Dev-Hub/universal-translator-for-csv-files).
     
## Contributors ✨
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- prettier-ignore-start -->
<!-- markdownlint-disable -->
<table>
  <tbody>
    <tr>
      <td align="center"><a href="https://github.com/saeedahmadicp"><img src="https://avatars.githubusercontent.com/saeedahmadicp?v=4?s=100" width="100px;" alt="Saeed Ahmad"/><br /><sub><b>Saeed Ahmad</b></sub></a><br /><a href="https://github.com/ML-Dev-Hub/universal-translator-for-csv-files/commits?author=saeedahmadicp" title="Code">💻</a> <a href="https://github.com/ML-Dev-Hub/universal-translator-for-csv-files/commits?author=saeedahmadicp" title="Documentation">📖</a></td>
      <td align="center"><a href="https://github.com/ali-izhar"><img src="https://avatars3.githubusercontent.com/ali-izhar?v=4?s=100" width="100px;" alt="Izhar Ali"/><br /><sub><b>Izhar Ali</b></sub></a><br /><a href="https://github.com/ML-Dev-Hub/universal-translator-for-csv-files/commits?author=ali-izhar" title="Code">💻</a><a href="https://github.com/ML-Dev-Hub/universal-translator-for-csv-files/commits?author=ali-izhar" title="Documentation">📖</a></td></td>
      <td align="center"><a href="https://github.com/Laughing-Kid"><img src="https://avatars3.githubusercontent.com/Laughing-Kid?v=4?s=100" width="100px;" alt="Shaharyar Sajid"/><br /><sub><b>Shaharyar Sajid</b></sub></a><br /><a href="https://github.com/ML-Dev-Hub/universal-translator-for-csv-files/commits?author=Laughing-Kid" title="Code">💻</a><a </td></td>
 </tr>
  </tbody>
</table>

<!-- markdownlint-restore -->
<!-- prettier-ignore-end -->

<!-- ALL-CONTRIBUTORS-LIST:END -->

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/ML-Dev-Hub/universal-translator-for-csv-files",
    "name": "csv-trans",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "python,csv,translate,translator,google,google translator,google translate,translate csv",
    "author": "Saeed Ahmad",
    "author_email": "saeedahmad.icp@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/d7/08/a853a6021d7a1e75179b6678e8463418a59a8f16aa129a615602ac56a915/csv_trans-1.1.4.tar.gz",
    "platform": null,
    "description": "\r\n# Universal Translator for csv files\r\n\r\n[![Downloads](https://static.pepy.tech/personalized-badge/csv-trans?period=total&units=international_system&left_color=grey&right_color=brightgreen&left_text=Downloads)](https://pepy.tech/project/csv-trans)    [![PyPI](https://img.shields.io/pypi/v/csv-trans)](https://pypi.org/project/csv-trans/)   [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/csv-trans)](https://pypi.org/project/csv-trans/)\r\n\r\n\r\n\r\nThis package is used to translate csv files across different languages. It uses the Google Translate API to translate the csv files from a source language to a target language. Supported languages are listed [here](https://cloud.google.com/translate/docs/languages). The package can handle csv files with multiple columns and rows and can translate the whole file in one go, saving your time and effort. \r\n\r\n## Installation\r\n```bash\r\npip install csv-trans\r\n```\r\n\r\nYou can use the package in two ways:\r\n1. Using the command line interface (CLI)\r\n2. Using the import utility in your python code.\r\n\r\nBoth the CLI and the import utility take the same arguments. The only difference is that the CLI takes the arguments as command line arguments while the import utility takes the arguments as function arguments. The arguments are listed below.\r\n\r\n1. `--file` or `-f`: The path to the source csv file.\r\n2. `--source_language` or `-sl`: The source language of the csv file.\r\n3. `--target_language` or `-tl`: The target language of the csv file.\r\n4. `--sep` or `-s`: The separator used in the csv file.\r\n\r\n### Using the import utility\r\n```bash\r\nfrom csv_trans import translate\r\ntranslate(file, source_language, target_language, sep=',')\r\n```\r\n\r\n\r\n### Using the CLI utility\r\n- Open the CLI and install the package\r\n- Use the below command\r\n```bash\r\n csv_trans -f <file_name> -sl <source_language> -tl <target_language> -fs <file_seperator>\r\n```\r\n\r\n\r\nFor Further information, checkout our [GitHub Page](https://github.com/ML-Dev-Hub/universal-translator-for-csv-files).\r\n     \r\n## Contributors \u2728\r\n<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->\r\n<!-- prettier-ignore-start -->\r\n<!-- markdownlint-disable -->\r\n<table>\r\n  <tbody>\r\n    <tr>\r\n      <td align=\"center\"><a href=\"https://github.com/saeedahmadicp\"><img src=\"https://avatars.githubusercontent.com/saeedahmadicp?v=4?s=100\" width=\"100px;\" alt=\"Saeed Ahmad\"/><br /><sub><b>Saeed Ahmad</b></sub></a><br /><a href=\"https://github.com/ML-Dev-Hub/universal-translator-for-csv-files/commits?author=saeedahmadicp\" title=\"Code\">\ud83d\udcbb</a> <a href=\"https://github.com/ML-Dev-Hub/universal-translator-for-csv-files/commits?author=saeedahmadicp\" title=\"Documentation\">\ud83d\udcd6</a></td>\r\n      <td align=\"center\"><a href=\"https://github.com/ali-izhar\"><img src=\"https://avatars3.githubusercontent.com/ali-izhar?v=4?s=100\" width=\"100px;\" alt=\"Izhar Ali\"/><br /><sub><b>Izhar Ali</b></sub></a><br /><a href=\"https://github.com/ML-Dev-Hub/universal-translator-for-csv-files/commits?author=ali-izhar\" title=\"Code\">\ud83d\udcbb</a><a href=\"https://github.com/ML-Dev-Hub/universal-translator-for-csv-files/commits?author=ali-izhar\" title=\"Documentation\">\ud83d\udcd6</a></td></td>\r\n      <td align=\"center\"><a href=\"https://github.com/Laughing-Kid\"><img src=\"https://avatars3.githubusercontent.com/Laughing-Kid?v=4?s=100\" width=\"100px;\" alt=\"Shaharyar Sajid\"/><br /><sub><b>Shaharyar Sajid</b></sub></a><br /><a href=\"https://github.com/ML-Dev-Hub/universal-translator-for-csv-files/commits?author=Laughing-Kid\" title=\"Code\">\ud83d\udcbb</a><a </td></td>\r\n </tr>\r\n  </tbody>\r\n</table>\r\n\r\n<!-- markdownlint-restore -->\r\n<!-- prettier-ignore-end -->\r\n\r\n<!-- ALL-CONTRIBUTORS-LIST:END -->\r\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "A package for translating csv files across multiple languages",
    "version": "1.1.4",
    "split_keywords": [
        "python",
        "csv",
        "translate",
        "translator",
        "google",
        "google translator",
        "google translate",
        "translate csv"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a9b0160403f6e9a90de9f2b588ff0b73da6533f3ac690e28839fd9d361ae0364",
                "md5": "5e50f19e3ac8e51fccb3c4456ca37d3e",
                "sha256": "abde006d00b6142f12d941b25f659debf529d68edf55f14b60a59e5e46c2a917"
            },
            "downloads": -1,
            "filename": "csv_trans-1.1.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "5e50f19e3ac8e51fccb3c4456ca37d3e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 7805,
            "upload_time": "2023-03-29T01:54:59",
            "upload_time_iso_8601": "2023-03-29T01:54:59.452893Z",
            "url": "https://files.pythonhosted.org/packages/a9/b0/160403f6e9a90de9f2b588ff0b73da6533f3ac690e28839fd9d361ae0364/csv_trans-1.1.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d708a853a6021d7a1e75179b6678e8463418a59a8f16aa129a615602ac56a915",
                "md5": "9e3199efa5ae962ab452179d46ba828f",
                "sha256": "9923cc41cd05667b058ef169bcd7d9293aaecd6780132227875a96110ded5d94"
            },
            "downloads": -1,
            "filename": "csv_trans-1.1.4.tar.gz",
            "has_sig": false,
            "md5_digest": "9e3199efa5ae962ab452179d46ba828f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 7235,
            "upload_time": "2023-03-29T01:55:01",
            "upload_time_iso_8601": "2023-03-29T01:55:01.780180Z",
            "url": "https://files.pythonhosted.org/packages/d7/08/a853a6021d7a1e75179b6678e8463418a59a8f16aa129a615602ac56a915/csv_trans-1.1.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-03-29 01:55:01",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "ML-Dev-Hub",
    "github_project": "universal-translator-for-csv-files",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "csv-trans"
}
        
Elapsed time: 0.05898s