Long story short now that we have beta access to python (1.1.1@cloud) I’m testing some more complex configurations.
To use internal API I need to modify Pip config to use our internal pypi instance to be able to import it.
I’m assuming there is no way to do something like this, correct me if I’m wrong please.
Maybe we can have custom env like we have variable in future?
Also,
would it be possible to achieve this on self hosted instance?
I can’t speak for the team but my understanding is that it is not doable due to security concerns.
And yes, you can achieve this in a self hosted instance. You will need to build the package first before deploying the docker image, and ensure to add the pypi instance there, before spinning up the docker container.
More information can be found here on how to deploy a custom python environment. I believe you will need to change it to include your pypi instance in the dockerfile instead since now python is already packaged in the normal n8n build.