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

8 lines
193 B
Python
Raw Normal View History

2018-12-01 14:24:43 -05:00
import yaml
from lib.package import Category, Package
2018-12-01 14:24:43 -05:00
def parse(file):
f = open(file, 'r')
data = yaml.load(f)
return [Category(name, packages) for name, packages in data.items()]