#!/usr/bin/env python from parser import Manifest; from parser import Package; p = Manifest.Manifest(); pkg = Package.Package('pkgname', 'x', com="blabla sdfkj dfskj", deb=True); # print p.hasPackage('blender'); p.addPackage(pkg, 'Basis'); pkg.remove(); # print p._pkg['Basis']['pkgname'].serialize(); p.save();