Grasshopper script to GhPython: idea

Hello, this is and idea to convert Grasshopper script to GhPython script i ask if it will work or not ?
Using the equivalent of every component in ghpythonlib.components and components inputs outputs
I know it need alot of work but is it possible and how we can find the equivalent of every component in ghpythonlib.components automatically?

You can run any component in a virtual document and hook the inputs and outputs, if I’m not wrong that’s how it works. So it doesn’t make sense to do it that way, wrapping each component in a document and concatenate this, for that you put all the objects in the same virtual document and compute the whole definition by yourself. But in the end there is no conversion, just GH headless.