csv-trans


Namecsv-trans JSON
Version 1.1.3 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-24 06:51:09
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
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
```

## How to use it?

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. The default value is `en`.
3. `--target_language` or `-tl`: The target language of the csv file. The default value is `ur`.
4. `--sep` or `-s`: The separator used in the csv file. The default value is `,`.

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

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>
 </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/98/26/e017d6d709fb47cae1cb2412c242a193b73e5a5aede8ac7bfe2f02abb89c/csv_trans-1.1.3.tar.gz",
    "platform": null,
    "description": "\r\n# Universal Translator for csv files\r\nThis package is used to translate csv files across different languages. It uses the Google Translate API to translate \r\nthe csv files from a source language to a target language. Supported languages are listed \r\n[here](https://cloud.google.com/translate/docs/languages). The package can handle csv files with multiple columns and \r\nrows 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\n## How to use it?\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 \r\nas command line arguments while the import utility takes the arguments as function arguments. \r\nThe 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. The default value is `en`.\r\n3. `--target_language` or `-tl`: The target language of the csv file. The default value is `ur`.\r\n4. `--sep` or `-s`: The separator used in the csv file. The default value is `,`.\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\nFor Further information, checkout our [GitHub Page](https://github.com/ML-Dev-Hub/universal-translator-for-csv-files).\r\n\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 </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.3",
    "split_keywords": [
        "python",
        "csv",
        "translate",
        "translator",
        "google",
        "google translator",
        "google translate",
        "translate csv"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "764f93531edc909bef2f81963e8d983bb4b99eb06981df6b843e94ab1b588409",
                "md5": "727360fba67bd1c781f5d2b092c248dd",
                "sha256": "81299adf624ab1b64933cd2ecf23f7dfe46b6a3953d32cff5f2727cc2acafe25"
            },
            "downloads": -1,
            "filename": "csv_trans-1.1.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "727360fba67bd1c781f5d2b092c248dd",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 7576,
            "upload_time": "2023-03-24T06:51:07",
            "upload_time_iso_8601": "2023-03-24T06:51:07.889280Z",
            "url": "https://files.pythonhosted.org/packages/76/4f/93531edc909bef2f81963e8d983bb4b99eb06981df6b843e94ab1b588409/csv_trans-1.1.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9826e017d6d709fb47cae1cb2412c242a193b73e5a5aede8ac7bfe2f02abb89c",
                "md5": "94518144f4e556516d3c72cba114d8b5",
                "sha256": "3721db014bf258e6b5755f60a72fb2ddbc041b0e21d3302f5c2abfe46bcdd736"
            },
            "downloads": -1,
            "filename": "csv_trans-1.1.3.tar.gz",
            "has_sig": false,
            "md5_digest": "94518144f4e556516d3c72cba114d8b5",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 7342,
            "upload_time": "2023-03-24T06:51:09",
            "upload_time_iso_8601": "2023-03-24T06:51:09.684959Z",
            "url": "https://files.pythonhosted.org/packages/98/26/e017d6d709fb47cae1cb2412c242a193b73e5a5aede8ac7bfe2f02abb89c/csv_trans-1.1.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-03-24 06:51:09",
    "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.13044s