Using Package Data in Python Projects with Setuptools
When creating a Python project, you may want to include a number of non-Python files in the project that the code can then access at runtime, such as templates, images, and data. These files are called package data, and this article describes how to include them in & access them from your project.