datamars-0.3.0 is not a library.
datamars
My own copy of GNU datamash
the algorithm basically goes down like this:
args = parse_args()
# parse ops
for op in args.ops:
if op is
groups = dict(str->list[ops])
for line in file:
parts = line.split(args.delimiter)
if groupby:
group = groupby(parts)
else:
group = default
if group not in groups:
groups.add_group(group, ops)
for op in groups[group]:
op.process(parts)
for group in groups:
print(group, [op.result() for op in group])