`dnf data` generic export interface

Ah, I see… this is an update of Programmatically get update list, yeah?

Have you looked at using libdnf instead of the dnf plugin API?