get_id_from_name.py

Given a file with a column of names of records of a given type of model in Pulsar, fetches the IDs. The record IDs are written to a new file.

usage: get_id_from_name.py [-h] -m MODEL -i INFILE -o OUTFILE

Named Arguments

-m, --model The name of the Rails model class of the records for which we need to get to IDs.
-i, --infile The input file containing record names, one per row.
-o, --outfile The output file containing a column of record IDs. Each row corresponds to the same row in the input file.