blockade icon indicating copy to clipboard operation
blockade copied to clipboard

API as Python library.

Open pviotti opened this issue 10 years ago • 2 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..).

pviotti avatar Apr 24 '15 10:04 pviotti

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.

justincinmd avatar Nov 17 '15 21:11 justincinmd

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.

labisso avatar Sep 29 '16 16:09 labisso