You could use tomllib to parse the file/text if you have access to it.
Or if the python package is already installed you can simply use importlib to get them:
from importlib import metadata
metadata.metadata("my_package_name").get_all("Project-URL")