1
0
mirror of https://github.com/Foltik/dotfiles synced 2024-11-24 04:22:50 -05:00
dotfiles/lib/parse.py

8 lines
193 B
Python
Executable File

import yaml
from lib.package import Category, Package
def parse(file):
f = open(file, 'r')
data = yaml.load(f)
return [Category(name, packages) for name, packages in data.items()]