Iโve been looking into sharing code between different projects, in an attempt to keep different products as separate as possible.
GitHub supports publishing packages through Github Packages, which is free for open-source projects. This does not work for Python packages and it has even been removed from the roadmap.
PyPI is the official repository for Python packages, which does support Python packages of course. More information on how to create a package can be found in this article.