A fork of McNeel python stubs
A Python stubs generator for .NET assemblies that ship with Revit and Dynamo.
- Clone this repository
- Download the latest zip file of
PyStubbler
(at time of writing is
PyStubbler-v1.3.0-win64.zip) - Create a
binfile inside ofbuilder/ - Extract the zip file into the
bin
- Modify
build-stubs.ps1as needed for the dlls you want to generate stubs for - run
build-stubs.ps1
- Copy files generated in
stubsfolder to a location of your choice. I usually put mine in a.stubsfolder inside my project root. - In Pycharm, go to
File -> Settings -> Python -> Python Interpreter -> Show All... - Click the
Show interpreter pathsicon - Click on the
+button and add the folder where you placed the stubs - Click
OKthrough all dialogs to apply