[Tutor] Parsing PKG-INFO

Mats Wichmann mats at wichmann.us
Fri Aug 18 10:53:05 EDT 2023


On 8/18/23 01:35, HarshVardhan Mahawar wrote:
> Hello Python Community,
> 
> I am working on project which generates SPDX documents of python projects,
> and needed help in effectively parsing the PKG-INFO metadata file, I would
> appreciate if someone can help

Have you tried the pkginfo project?

There are also various projects which do this, but aren't standalone, 
you might root around in the place where many of the most popular 
packaging projects live - https://www.pypa.io/en/latest/index.html

Additionally, there are quite a few SBOM-oriented projects now, you may 
not actually have to reinvent the wheel (that wasn't supposed to be a 
pun!) here, somebody may already have done what you need.




More information about the Tutor mailing list