Could be adapted for closed source too.
https://mathspp.com/blog/how-to-create-a-python-package-in-2022