Utilities¶
- exporter.util.quote_list(it)[source]¶
Wrap each element in single quotation marks and return as a comma-separated string.
- exporter.util.sample_and_format(population, arguments)[source]¶
Call
random.sample()
, bounding the sample size inarguments["max"]
to the population size.If
arguments["mode"]
is “oneLine”, return the sample as a comma-separated string.Otherwise, return the sample as a paragraph list.