Load YAML file

    0

    26

    yaml
    Python public recipes

    Load a YAML file and return the data

    Shortcut: yaml.load

    import yaml
    
    with open(path, 'r') as stream:
      return yaml.load(stream, Loader=yaml.BaseLoader)
    
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Explore
    • Cookbooks
    • Playground
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.