csv-trans-1.1.4
توضیحات
A package for translating csv files across multiple languages
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | csv-trans-1.1.4 |
| نام | csv-trans |
| نسخه کتابخانه | 1.1.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Saeed Ahmad |
| ایمیل نویسنده | saeedahmad.icp@gmail.com |
| آدرس صفحه اصلی | https://github.com/ML-Dev-Hub/universal-translator-for-csv-files |
| آدرس اینترنتی | https://pypi.org/project/csv-trans/ |
| مجوز | - |
# Universal Translator for csv files
[](https://pepy.tech/project/csv-trans) [](https://pypi.org/project/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 -->
نیازمندی
| مقدار | نام |
|---|---|
| - | click |
| - | beautifulsoup4 |
| - | certifi |
| - | chardet |
| - | charset-normalizer |
| - | colorama |
| ==1.10.1 | deep-translator |
| - | googletrans |
| - | idna |
| - | numpy |
| - | pandas |
| - | pyarrow |
| - | python-dateutil |
| - | pytz |
| - | requests |
| - | six |
| - | soupsieve |
| - | tqdm |
| - | urllib3 |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl csv-trans-1.1.4:
pip install csv-trans-1.1.4.whl
نصب پکیج tar.gz csv-trans-1.1.4:
pip install csv-trans-1.1.4.tar.gz