• Stars
    star
    248
  • Rank 163,560 (Top 4 %)
  • Language
    Python
  • License
    Other
  • Created over 7 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Autocomplete stubs for common IronPython/.NET libraries

IronPython Stubs

Stubs for common IronPython CLR assemblies. These stubs are intended to be used by the autocomplete engine of editors like Atom, Sublime, and Visual Studio Code.

Why IronPython Stubs?

If your are writing python code that targets IronPython, and using modules loaded through the Common Language Runtime (clr), your editor's autocomplete engine (which runs on regular python) will not be able to access those non-native modules. In other words, modules/or packages loaded through clr.AddReference() are not available on your autocomplete engine.

The workaround here is simple: Use IronPython to crawl through these libraries, and create 'stubs' or 'mock objects'. These 'stubs' can then be used by the CPython autocomplete engine. The stubs include doc strings as well as constructor/function/method signatures.

This repository contains the code to create these stubs, and also stores an a version of them that can be used by autocomplete-python.

sublime-large-demo


Documentation

Wiki

The wiki has step-by-step instructions for setting up your stubs for Atom, Sublime, Vim, Visual Studio Code.

For a list of supported Assemblies, see this list

If you haven't yet, read Note on Performance Large Namespaces such as Autodesk.Revit.DB can take a long time to be parsed and cached and might not show up right away.


Contribute - WIP

Generate Stubs - Examples

ipy -m ironstubs make RhinoCommon ipy -m ironstubs make --all ipy -m ironstubs make DSCoreNodes --folder="DSCore" --directory="C:/Program Files/Dynamo/Dynamo Core/1.3"

Process Stubs

WIP

Known Issues

  • Performance is not great for some of the larger classes. If you know how this can be improved please let me know.
  • Some of the function/constructor signatures are missing or incorrect. This is a problem with Generator3. Please send a PR or let me know if you have a fix.
  • Overloaded Methods do not show correct arguments

Credits

This project is a fork of the repository started by Gary Edwards on Gitlab. Thank you for your work Gary - and thank you Ehsan for pointing me to it.

It uses PyCharm's Generator3 to create the stubs.

More Repositories

1

django-vue-template

Django Rest + Vue JS Template
Python
1,495
star
2

flask-vuejs-template

Flask + Vue JS Template
Python
1,324
star
3

pyairtable

Python Api Client for Airtable
Python
706
star
4

revitpythonwrapper

Python Wrapper for the Revit API
Python
134
star
5

pipenv-pipes

A PipEnv Environment Switcher
Python
133
star
6

revitapidocs.code

Python Scripts fo Repository for RevitAPIdocs.com
Python
96
star
7

aec-startups

List of AEC Startups
Vue
57
star
8

python-revit-resources

List of Resources for Python-Revit Lovers
53
star
9

pyrevitplus

PyRevitPlus - Extensions for PyRevit
Python
50
star
10

vue-threejs-rhino-demo

Rhino 3dm Three Js viewer
JavaScript
46
star
11

revitapidocs

Online Revit API Documentation: 2015, 2016, 2017, 2017.1, 2018
31
star
12

interactive-elastic-analyzer

Interactive Elasticsearch Analyzer
HTML
12
star
13

revit-api-chms

A Repository of .chm (Windows Help Files) from the Revit API Sdk
10
star
14

apidocs.samples

Samples for ApiDocs.co
C#
8
star
15

au2017

AU 2017 Python for Dynamo Presentation
Python
5
star
16

python-algorithms

Python Algorithms
Python
5
star
17

pm

A Tiny CLI utility to help you navigate your project directories, written in Go
Go
5
star
18

gtalarico

Gui Talarico's Github Profile
Python
4
star
19

pigeonpy

Flask Server with Angular Front End to Access Forge API
JavaScript
4
star
20

foldify

Helper tool to manage directories and directory templates.
Python
3
star
21

au-2019-web-apis

Vue
3
star
22

python-project

My personal template for bootstraping new python projects
Shell
3
star
23

project_sandwich

Python
2
star
24

locker

A virtual locker simulator
Python
2
star
25

win-bootstrap

Boostraping scripts for setting up my Windows Machines
PowerShell
2
star
26

dynotify

Notification System for Posts in the Dynamo Community Forum
Python
1
star
27

gtalarico.com

Personal Website
HTML
1
star
28

markdown.is

Vue
1
star