Skip to main content

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

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

from csv_trans import translate
translate(file, source_language, target_language, sep=',')

For Further information, checkout our GitHub Page.

Contributors ✨

Saeed Ahmad
Saeed Ahmad

💻 📖
Izhar Ali
Izhar Ali

💻📖

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

csv_trans-1.1.3.tar.gz (7.3 kB view hashes)

Uploaded Source

Built Distribution

csv_trans-1.1.3-py3-none-any.whl (7.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page