Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 995 Bytes

File metadata and controls

26 lines (19 loc) · 995 Bytes

A fork of McNeel python stubs

A Python stubs generator for .NET assemblies that ship with Revit and Dynamo.

Setup

  1. Clone this repository
  2. Download the latest zip file of PyStubbler (at time of writing is PyStubbler-v1.3.0-win64.zip)
  3. Create a bin file inside of builder/
  4. Extract the zip file into the bin

Generating

  1. Modify build-stubs.ps1 as needed for the dlls you want to generate stubs for
  2. run build-stubs.ps1

Using generated stubs in Pycharm

  1. Copy files generated in stubs folder to a location of your choice. I usually put mine in a .stubs folder inside my project root.
  2. In Pycharm, go to File -> Settings -> Python -> Python Interpreter -> Show All...
  3. Click the Show interpreter paths icon
  4. Click on the + button and add the folder where you placed the stubs
  5. Click OK through all dialogs to apply