Using namespace package to inject 3rd party plugins. Is it a good idea?

I recall a very similar question being asked quite recently but can’t find it right now… maybe it was on another forum. Anyway…

What has been said above about the names of the import packages is true.

Now for the name of the distribution package:

If you are keto and they are foobar, the practice is that you should not create projects whose name start with foobar unless they (foobar) agreed to it. Typically projects/organizations want to own their own prefix. So I believe what you can and probably should do is name your project something like keto-foobar. This might even be enforced at PyPI level in the future if this brand new PEP gets accepted: https://discuss.python.org/t/pep-752-package-repository-namespaces/61227.

1 Like