Running NEOS from Python API , importing data from excel

I am trying to run a model using NEOS from Python
For modelling I am using:

def get_model_text():

For the data , I am importing it from excel.

Then, I want to combine it and send it to NEOS to solve.

The example in GAMS implementing NEOS uses a .gms file which contains the data and model both, as implemented by the following code:

model = 'trnsport' # str | Name of the main .gms file
    ws.gamslib(model)

I am unable to build my model from text and excel and send it to NEOS.

Has anyone implemented this?

Thank You!

See answer here: https://newforum.gams.com/t/running-neos-from-python-api/3855/1

-Michael