Re: Parsing PKG-INFO

Mats Wichmann <[email protected]>
Newsgroups gmane.comp.python.tutor
Message-ID <[email protected]>
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.


_______________________________________________
Tutor maillist  -  [email protected]
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.