File converter to different extensions
Project description
Goal
This is a package which converts files to different types.
Supported extensions
- CSV
- ARFF
Installation
pip install filepy --upgrade
Usage
This library is mainly divided into 2 ideas, namely writers and readers. Readers will read your files, writer will write in appropriate format.
Available classes:
- CsvReader
- CsvWriter
- ArffReader
- ArffWriter
Suppose that you have a csv file: example1.csv
.
You want to convert this file to an arff format for instance converted.arff
from filepy.csv_reader import CsvReader
from filepy.arff_writer import ArffWriter
from filepy.file_converter import convert
csv_reader = CsvReader('example1.csv', delimiter=';')
arff_writer = ArffWriter('converted.arff', delimiter=',')
convert(input_reader=csv_reader, output_writer=arff_writer)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
filepy-0.15-py3-none-any.whl
(5.8 kB
view hashes)