Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

convert csv file to tsv file.

Project description

csv-to-tsv

Convert CSV file to tab-delimited TSV file.

Installation and Usage

python is installed, install with pip

pip install csv2tsv
from csv2tsv import to_csv

to_csv(src_dir)

or copy csv2tsv folder and run

py -m csv2tsv [src_dir]

python is NOT installed, download from release and run batch file.

API

Use python

  • to_csv(src, [dist_dir], [encoding="utf-8"], [delimiter=","])
    • src: Source csv directory or csv file path.
    • dist_dir: Output directory. If None, a folder named tsv will be created in the same hierarchy as the src folder. (default=None)
    • encoding: Character encoding of src/dist csv. (default="utf-8")
    • delimiter: Delimiter of src csv. (default=",")

Use command

See help.

py -m csv2tsv --help

License

MIT License

Project details


Download files

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

Files for csv2tsv, version 1.1.0
Filename, size File type Python version Upload date Hashes
Filename, size csv2tsv-1.1.0-py3-none-any.whl (3.8 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size csv2tsv-1.1.0.tar.gz (3.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page