Py3esourcezip -

To read a file bundled inside your package (even if it's zipped), use the following pattern:

This article explores the concepts behind resource zipping in Python 3, how to manage embedded data, and the best practices for packaging your applications. 📦 Understanding Resource Zipping in Python py3esourcezip

If you are looking to manage resources within a zipped Python environment, the modern standard is the importlib.resources module. This replaced the older pkg_resources tool. Accessing Internal Data To read a file bundled inside your package