mirror of
https://github.com/Foltik/dotfiles
synced 2024-11-28 05:27:06 -05:00
8 lines
193 B
Python
Executable File
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()]
|