blob: 14d0ee420c9e31253357bc8b7c63d786c18beee8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import sys
import debian.deb822
import pandas as pd
if __name__ == '__main__':
descs = debian.deb822.Packages.iter_paragraphs(sys.stdin)
df = pd.DataFrame([dict(p) for p in descs])
store = pd.HDFStore('pkg.h5')
store['descriptions'] = df
store.close()
|