Metadata-Version: 2.1
Name: filepy
Version: 0.15
Summary: File converter to different extensions
Home-page: https://github.com/KordianD/filepy
Author: KordianD
Author-email: not_valid@gmail.com
License: UNKNOWN
Keywords: file,convert,extensions,csv,arff
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Description-Content-Type: text/markdown

[![Build Status](https://travis-ci.com/KordianD/filepy.svg?branch=master)](https://travis-ci.com/KordianD/filepy)
[![PyPI version](https://badge.fury.io/py/filepy.svg)](https://badge.fury.io/py/filepy)

# 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)

