I am looking to obtain a state space model for a system I have, using python.
I have tested the actual system, so I have the inputs to it and I have measured the outputs. so I have sets of corresponding inputs and outputs.
Is there a function somewhere, for python, where I can supply the function with the set of inputs and outputs of the system, and the function will then provide me with a state space model that represents the system?

try reading this article: state space model and this state space model2 the latter uses other py packages to create a model, you can use this as module input for your purpose. Not sure if there are any packages other than these two sets of scripts