A package for translating csv files across multiple languages
Project description
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. 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
pip install csv-trans
You can use the package in two ways:
- Using the command line interface (CLI)
- 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.
--file
or-f
: The path to the source csv file.--source_language
or-sl
: The source language of the csv file.--target_language
or-tl
: The target language of the csv file.--sep
or-s
: The separator used in the csv file.
Using the import utility
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
csv_trans -f <file_name> -sl <source_language> -tl <target_language> -fs <file_seperator>
For Further information, checkout our GitHub Page.
Contributors ✨
Saeed Ahmad 💻 📖 |
Izhar Ali 💻📖 |
Shaharyar Sajid 💻 |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file csv_trans-1.1.4.tar.gz
.
File metadata
- Download URL: csv_trans-1.1.4.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9923cc41cd05667b058ef169bcd7d9293aaecd6780132227875a96110ded5d94 |
|
MD5 | 9e3199efa5ae962ab452179d46ba828f |
|
BLAKE2b-256 | d708a853a6021d7a1e75179b6678e8463418a59a8f16aa129a615602ac56a915 |
File details
Details for the file csv_trans-1.1.4-py3-none-any.whl
.
File metadata
- Download URL: csv_trans-1.1.4-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | abde006d00b6142f12d941b25f659debf529d68edf55f14b60a59e5e46c2a917 |
|
MD5 | 5e50f19e3ac8e51fccb3c4456ca37d3e |
|
BLAKE2b-256 | a9b0160403f6e9a90de9f2b588ff0b73da6533f3ac690e28839fd9d361ae0364 |