Access/Read package.json file from code repository using marketplace product id/blockset_id

Need to read contents of package.json(trypescript repo) and conda-versions.run.linux-64.lock file(python repo) from code repository using marketplace packagename/productid/blocksetid.

Basically need to access repository through marketplace product name using python code.

How can I achieve this?