dfarrell07 / wcbench

CBench, wrapped in stuff that makes it useful.
BSD 2-Clause "Simplified" License
20 stars 9 forks source link

Add a Python API #37

Open dfarrell07 opened 10 years ago

dfarrell07 commented 10 years ago

It would be very helpful to support kicking off simple actions via a well-define Python API. For example, starting and stopping ODL.

aglenis commented 9 years ago

I would be interested in this. Do you have some kind of API in mind?

dfarrell07 commented 9 years ago

I would be interested in this.

Wonderful! :+1:

Do you have some kind of API in mind?

Here are some initial thoughts.

dfarrell07 commented 9 years ago

Here are some initial thoughts.

Did those make sense @aglenis? Any other info/help/whatever I can provide?

Thanks!

aglenis commented 9 years ago

Makes sense to me. How exactly should be start implementing it? My initial though is to wrap every wcbench function with something like this:

http://stackoverflow.com/questions/5826427/can-a-python-script-execute-a-function-inside-a-bash-script

dfarrell07 commented 9 years ago

My initial though is to wrap every wcbench function with something like this:

Yeah, that seems reasonable. Only complication may be moving some of the global state in WCBench to params to function calls.