API as Python library.
pviotti opened this issue · comments
First off, thanks for Blockade: it's really useful and handy.
With this "issue" I wanted to express the need for a clean and pythonic API that would allow the use of Blockade as library inside other Python scripts.
Right now it's not impossible, but it can get a bit ugly because it's all thought for command line usage.
For instance, in moses I did this to work around the command line option parser (if you think there's a better way, let me know..).
It'd be really awesome to use this tool to control inter-container networking during integration tests, and that'd be a lot easier with a public api.
With the imminent 0.3.0 release, blockade does now have a REST API but still I admit it's not very friendly to use as a python API. For our own use, we call blockade from non-python integration tests, so a python API isn't as valuable. I'll still keep this issue on the table as a future enhancement however.