Load YAML file

    0

    30

    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
    • Playground
    • Snippets
    • Cookbooks
    Legal
    • Security
    • Privacy Policy
    • Code Privacy
    • Terms of Service
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.