<div dir="ltr"><div>Hi,</div><div><br></div><div>This week I have made a DAK module called generate_metadata.py.[0]</div><div>It generates a yaml file conforming to DEP-11[1] draft.</div><div><br></div><div>It also fetches Screenshots of a package(component) using urllib.</div>
<div>It also create a cache for the icons i.e it extracts icons from a deb package.</div><div><br></div><div>The module can be run using a dak command:</div><div>>> dak.py generate-metadata <suitename></div><div>
<br></div><div>The module make use of another script called check_appdata.py[2] which </div><div>lists all the packages(.deb files) that has appstream metadata and .desktop files associated with them.</div><div><br></div>
<div>Next task is to create a tarball of all the icons. Inserting the yaml file into the database. And making use of DAK's orm to fetch data rather than using my own sql.</div><div><br></div><div>[0]<a href="https://github.com/abhi11/dak/blob/master/dak/generate_metadata.py">https://github.com/abhi11/dak/blob/master/dak/generate_metadata.py</a><br>
</div><div><div>[1]<a href="https://wiki.debian.org/DEP-11#Example_of_Components.yml">https://wiki.debian.org/DEP-11#Example_of_Components.yml</a></div></div><div>[2]<a href="https://github.com/abhi11/dak/blob/master/dak/check_appdata.py">https://github.com/abhi11/dak/blob/master/dak/check_appdata.py</a><br>
</div><div><br></div><div>Thanks </div>-- <br><div dir="ltr"><b>Abhishek Bhattacharjee</b><div><b><font size="1">Pune Institute of Computer Technology</font></b></div></div>
</div>