MCPcopy Create free account
hub / github.com/wireservice/csvkit / parse_list

Function parse_list

csvkit/cli.py:582–590  ·  view source on GitHub ↗
(pairs)

Source from the content-addressed store, hash-verified

580
581
582def parse_list(pairs):
583 options = {}
584 for key, value in pairs:
585 try:
586 value = ast.literal_eval(value)
587 except ValueError:
588 pass
589 options[key] = value
590 return options
591
592
593# Adapted from https://github.com/pallets/click/blame/main/src/click/utils.py

Callers 2

mainMethod · 0.90
mainMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected