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
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
csv2tsv-1.1.0.tar.gz
(3.3 kB
view hashes)