{"id":17977633,"url":"https://github.com/gtalarico/ironpython-stubs","last_synced_at":"2025-04-07T13:04:29.089Z","repository":{"id":22235989,"uuid":"95340553","full_name":"gtalarico/ironpython-stubs","owner":"gtalarico","description":"Autocomplete stubs for common IronPython/.NET libraries","archived":false,"fork":false,"pushed_at":"2023-11-29T07:52:19.000Z","size":42094,"stargazers_count":252,"open_issues_count":18,"forks_count":81,"subscribers_count":24,"default_branch":"master","last_synced_at":"2025-03-31T12:03:46.782Z","etag":null,"topics":["atom","autocomplete","clr","grasshopper3d","ironpython","revit-api","stubs","sublime","vscode"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gtalarico.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-06-25T05:30:46.000Z","updated_at":"2025-03-11T13:57:50.000Z","dependencies_parsed_at":"2024-10-29T18:35:10.020Z","dependency_job_id":null,"html_url":"https://github.com/gtalarico/ironpython-stubs","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gtalarico%2Fironpython-stubs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gtalarico%2Fironpython-stubs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gtalarico%2Fironpython-stubs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gtalarico%2Fironpython-stubs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gtalarico","download_url":"https://codeload.github.com/gtalarico/ironpython-stubs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247657276,"owners_count":20974344,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["atom","autocomplete","clr","grasshopper3d","ironpython","revit-api","stubs","sublime","vscode"],"created_at":"2024-10-29T17:28:51.966Z","updated_at":"2025-04-07T13:04:29.069Z","avatar_url":"https://github.com/gtalarico.png","language":"Python","readme":"# IronPython Stubs\n\nStubs for common IronPython CLR assemblies.\nThese stubs are intended to be used by the autocomplete engine of editors like Atom, Sublime, and Visual Studio Code.\n\n## Why IronPython Stubs?\n\nIf your are writing python code that targets IronPython, and using modules loaded through the Common Language Runtime (clr),\nyour editor's autocomplete engine (which runs on regular python) will not be able to access those non-native modules.\nIn other words, modules/or packages loaded through `clr.AddReference()` are not available on your autocomplete engine.\n\nThe workaround here is simple: Use IronPython to crawl through these libraries,\nand create 'stubs' or ['mock objects'](https://en.wikipedia.org/wiki/Mock_object).\nThese 'stubs' can then be used by the CPython autocomplete engine.\nThe stubs include doc strings as well as constructor/function/method signatures.\n\nThis repository contains the code to create these stubs, and also stores an\na version of them that can be used by autocomplete-python.\n\n![sublime-large-demo](https://github.com/gtalarico/ironpython-stubs/blob/master/docs/sublime/sublime-demo-large.gif)\n\n------------------------------------\n\n# Documentation\n\n[Wiki](https://github.com/gtalarico/ironpython-stubs/wiki)\n\nThe [wiki](https://github.com/gtalarico/ironpython-stubs/wiki) has step-by-step instructions for setting up your stubs for Atom, Sublime, Vim, Visual Studio Code.\n\nFor a list of supported Assemblies, see [this list](https://github.com/gtalarico/ironpython-stubs/tree/master/logs)\n\nIf you haven't yet, read [Note on Performance](https://github.com/gtalarico/ironpython-stubs/wiki/A-Note-on-Performance)\nLarge Namespaces such as `Autodesk.Revit.DB` can take a long time to be parsed and cached and might not show up right away.\n\n------------------------------------\n\n# Contribute - WIP\n\n### Generate Stubs - Examples\n`ipy -m ironstubs make RhinoCommon`\n`ipy -m ironstubs make --all`\n`ipy -m ironstubs make DSCoreNodes --folder=\"DSCore\" --directory=\"C:/Program Files/Dynamo/Dynamo Core/1.3\"`\n### Process Stubs\nWIP\n\n### Known Issues\n* Performance is not great for some of the larger classes. If you know how this can be improved please let me know.\n* 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.\n* Overloaded Methods do not show correct arguments\n\n### Credits\nThis project is a fork of the repository started by Gary Edwards on [Gitlab](https://gitlab.com/reje/revit-python-stubs).\nThank you for your work Gary - and thank you [Ehsan](https://github.com/eirannejad) for pointing me to it.\n\nIt uses PyCharm's [Generator3](https://github.com/JetBrains/intellij-community/blob/master/python/helpers/generator3.py)\nto create the stubs.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgtalarico%2Fironpython-stubs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgtalarico%2Fironpython-stubs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgtalarico%2Fironpython-stubs/lists"}