Code completion with sgtk module

When using import sgtk, I can’t access code completion, navigation, or other useful developer features because sgtk is a runtime alias for the tank module. I could use import tank as sgtk, but it doesn’t feel right using the legacy tank name.

Is there a way to get code completion to work for sgtk in PyCharm or any other IDEs?

Also are there any plans to officially refactor the tank module to sgtk and maybe keep tank as the alias?



Just wanted to say I noticed the new ariel-swap-sgtk-tank branch yesterday :eyes: which was very exciting. I checked-out that branch in my local copy of tk-core and the code completion and navigation with sgtk all work great now! I’m not actually using that branch in the pipeline configuration since it’s not main-line but works perfect for this purpose in PyCharm.

Thanks Ariel!


Hi! I’m also looking for a solution to this.

THIS is the only info I found, but it’s not helping unfortunately…

I’m using Pycharm too, and I’m not getting the code completion either trying to type the line import tank as sgtk command

Any help would be appreciated.