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-0.0.4.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

csv_trans-0.0.4-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file csv_trans-0.0.4.tar.gz.

File metadata

  • Download URL: csv_trans-0.0.4.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.12

File hashes

Hashes for csv_trans-0.0.4.tar.gz
Algorithm Hash digest
SHA256 138765275309344d43d06302644c8f14cec92ca7033a72841a3b29c573362306
MD5 ecd6f1ea7e1a178645bd051765dd5384
BLAKE2b-256 5df3853edf4e21778e6b6802f7504692de1261634809eeebdef20904d678d77a

See more details on using hashes here.

File details

Details for the file csv_trans-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: csv_trans-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.12

File hashes

Hashes for csv_trans-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6f9bdc093bb7d4dc45f54f9618611fdc6e61235a73fea481e2392225583da849
MD5 5b814b1fa3d52f5e8dbadcc43121fc95
BLAKE2b-256 769cc72a3a772583230f90d47984e995dd5e3fa5f94cdb3f73a0a10056e8eee2

See more details on using hashes here.

Supported by

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