bronx.datagrip.misc

Miscellaneous I/O tools.

Functions

bronx.datagrip.misc.load_ordered_yaml(filename)[source]

Proxy to load with OrderedYAMLLoader.

bronx.datagrip.misc.read_dict_in_CSV(filename)[source]

Reads a .csv file formatted as follow:

  • on the first line is described the delimiter

  • on the second line is described the ‘priority’ of the dict.

  • all subsequent lines contain equivalent of a dict, with key/value duets separated by the delimiter

Classes

class bronx.datagrip.misc.OrderedYAMLLoader(*args, **kwargs)[source]

Bases: SafeLoader

Loader for YAML that returns an OrderedDict.

Initialize the scanner.