cwepr.io.txt_file module

Importer for simple text and CSV files.

Despite its obvious limitations (normally no metadata, limited resolution, large files) text or CSV files are an often-encountered exchange format and can serve as an easy way to import data from otherwise not supported file formats, as nearly every software to record data allows to export these data as simple text or CSV files.

You may have a look as well at the importers provided by the ASpecD package for similar situations, particularly aspecd.io.TxtImporter.

class cwepr.io.txt_file.TxtImporter(source='')

Bases: aspecd.io.DatasetImporter

Simple importer for txt files containing data.

Sometimes, data come from sources as a txt file only. So far, the format is hardcoded and should contain two columns separated by a tabulator.

class cwepr.io.txt_file.CsvImporter(source='')

Bases: aspecd.io.DatasetImporter

Importer for simple csv imports with different delimiters.