from PyInstaller.utils.hooks import copy_metadata datas = copy_metadata("google-api-core")