First-time poster here, many-time poster over on the Rhino/Grasshopper forum(s).
I am currently familiarising myself with the various Python interfaces and API’s available in Revit (using the Dynamo Python node and the revitpythonshell). Coming from the Grasshopper GHPython component, I’ve been experiencing quite a few small and not so small hiccups (specifically: no console/print out, no run/test button/shortcut, no auto-indentation, tabs instead of spaces, poor intellisense, the editor moves on close/open etc). Some of these issues do appear to currently be being addressed, which is just terrific to see.
That said, I have not come across any initiatives that address the issue of importing the (Iron)Python Standard Library. I am aware that one may install and reference this manually within the script. However, this not only requires anyone using the script to download/install IronPython (which is cumbersome and error prone), but may also cause more severe versioning and compatibility issues. One could also argue that anyone developing in Python could be expected to expect to import modules from the standard library
Anywho, long story short: Perhaps you (not sure whom I’m addressing here, my bad) could distribute the standard library with Revit and hardcode the path to it, similarly to how McNeel manages it with Rhino/Grasshopper.
Cheers and best,