Skip to content
/ imcsv Public

Easily generate in-memory CSV files for testing

License

Notifications You must be signed in to change notification settings

kaypee90/imcsv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

imcsv - Fast Python In-Memory CSV file creator!

An in-memory CSV generator. The library is built to make it easy to test scenarios in your application that require csv files.

Requirements

  • Python: 3.*

Installation

Install using pip:

pip install imcsv

Usage

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)

About

Easily generate in-memory CSV files for testing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages