Skip to content

Python stubs to get some autocompletion and suggestions for Gaffer's pyhton modules in IDEs

License

Notifications You must be signed in to change notification settings

kubo-von/Gaffer-Python-Stubs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gaffer-Python-Stubs

Python stubs to get some autocompletion and suggestions for Gaffer's Python modules in IDEs

Screenshot

Using

Clone the repo and point your IDEs autocomplete paths to the stubs folder.

If you are using pycharm, add the stubs folder to the source folders in your project settings.

Generating

To generate stubs yourself , edit the target variable in the generate_stubs.py file and execute it from Gaffer's Python editor with :

exec(open('......../Gaffer-Python-Stubs/generate_stubs.py').read())

Todo

It would be nice to get some better argument hints for class methods instead of just (self, *args, **kwargs), but would need to find a way to get them, as inspect does not work well on C/Boost modules.

Copyright and license

© 2011–2020 John Haddon. All rights reserved.

© 2011–2020 Image Engine Design Inc. All rights reserved.

© 2011–2020 Cinesite VFX Ltd. All rights reserved.

Distributed under the BSD license.

About

Python stubs to get some autocompletion and suggestions for Gaffer's pyhton modules in IDEs

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages