Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 1.46 KB

File metadata and controls

35 lines (23 loc) · 1.46 KB

A repository of useful python utilities.

  1. CSV Operations Terminal Interface (COTI)
  2. Prototypes

Python Version Notes: These scripts was written with Python 3.9.7.

A python script used to read in a CSV, store the data in-memory, and apply a series of operations to it.

Supported operations:

Operations Description
chunk Takes a CSV file and chunks the records into multiple files.

General Instructions

To use the this script, navigate to the directory that contains the COTI.py file and call the following command for additional instructions.

Powershell Example

python ./COTI.py --h

This will explain to you how the scripts work and what arguments you can add to this script call.

Chunk Operation Instructions

Powershell Call Example:

python ./COTI.py -file="C:\Users\username\working_directory\file name.csv" -operation='chunk' -chunksize=5000

References

The creation of COTI was inspired from https://gist.github.com/jrivero/1085501. The general logic was inspired from here, however COTI was designed to be extendable for additional CSV manipulation operations.

Random scripts that was written on the fly to achieve specific tasks. These functions have not been incorporated to the overall utilities listed in python-utilites.