An in-memory CSV generator. The library is built to make it easy to test scenarios in your application that require csv files.
- Python: 3.*
Install using pip:
pip install imcsv
Provides you with an in-memory csv file
from imcsv.imcsv import generate_temp_csvfile
headers = [
"Date",
"Month",
"Year",
"Customer ID",
"Item ID",
]
rows = [
[
"5-June-2020",
"5",
"2020",
"920",
"1380",
],
[
"4-December-2020",
"12",
"2020",
"977",
"2322",
],
]
temp_csvfile = generate_temp_csvfile(headers, rows)