Skip to content

LoganAC34/pythonstubs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Python stubs for .NET assemblies

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 96.0%
  • PowerShell 4.0%