Skip to content

pog7x/py-csv-xls

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

py-csv-xls

PyPI License

Converter from csv format to xls

Installation

pip install py-csv-xls

Example

from py_csv_xls import CSVSniffer, ExcelWorker, PyCsvXlsException

file_lines = CSVSniffer(
    main_path="/abs/path/to/ur/csv/or/dir",
).get_dir_files_with_lines()

ExcelWorker(
    workbook_name="/abs/path/to/ur/xl/without/extension",
    workbook_extension=".xls",
    want_cleared=True,
).fill_workbook(all_data=file_lines)