DSS code-env package extraction

Hi All,
i am trying to extract the list of all installed packages with each and every code-env does any one has any idea how can we do so.
Basically my object is to resolve the list of vulnerable packages identified. to do so can someone please suggest how can i find or search a certain package within dss.
can some suggest me a python code or any other alternative to this
with python code i am able to list the code env but not sure how to list the installed packages within the code-env or create a combine list of all the packages for all the code env within my instance
Comments
-
Hi,
You can use something like the following Python script to get a dataframe with the unique code environments and packages listed:
The key being to use code_env.get_settings().get_required_packages()