Skip to main content

In-Memory CSV file creator

Project description

imcsv - Fast Python In-Memory CSV file creator!

A python library built to enhancing testing

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

imcsv-0.0.1.tar.gz (2.7 kB view hashes)

Uploaded Source

Built Distribution

imcsv-0.0.1-py3-none-any.whl (3.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page