Skip to content

A csv filter tool for the OMM CSV downloaded from Canvas for Cornell University's CS 3110 TAs and discussion sections: Fall 2020.

Notifications You must be signed in to change notification settings

anthonyyangdev/omm-csv-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Parse OMM CSV

A csv filter tool for the OMM csv downloaded from Canvas for CS 3110 TAs and sections.

Requirements

In the spirit of CS3110, this project was written in OCaml and thus requires OCaml to build the executable. However, a transpiled Node.js version and a compressed version of that is also available in the node directory in case OCaml is not obtainable.

For OCaml users

This will assume that you've already installed opam and configured it for your machine. You will also need Python3 to run the setup.py file.

opam install dune csv # js_of_ocaml (* not required unless you want to transpile the OCaml code to JS. *)

For Node users

You will need to install Node of version at least 12.

Installation for OCaml users

The Makefile contains a script to copy the executable into the /usr/local/bin directory on Posix machines or the C:\Windows\System32\ folder on Windows.

make exe_path

Usage of Executable or Node

omm [csv_file] -s [section_number] -o [output_filename]

# Without output
omm [csv_file] -s [section_number]

# -i flag can also be used for input
omm -s [section_number] -i [csv_file]

For Node, the usage is essentially the same, only using the transpiled JS file and in the Node runtime environment.

node omm.js [csv_file] -s [section_number] -o [output_filename]

# Without output
node omm.js [csv_file] -s [section_number]

# -i flag can also be used for input
node omm.js -s [section_number] -i [csv_file]

Other Usages

# Remove generated files from the Makefile.
make clean

# Generates the node scripts
make node

# Generates the executable using dune.
make exe

License

MIT © Anthony Yang

About

A csv filter tool for the OMM CSV downloaded from Canvas for Cornell University's CS 3110 TAs and discussion sections: Fall 2020.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages