Wouldn't it be nice if you could generate REST bindings in any language?
That's what RAML is. It's the Rest Api Markup Language.
Anyway, I wrote python bindings for it, for the Pythonista in all of us!
If you already have node installed, you can just type this:
npm install raml-python -g
You can also clone the raml -python github repo and install it thusly:
git clone https://github.com/val314159/raml-python cd raml-python npm install . -g
Node can be a pain to install, so I made a Docker container for easy use. I'll probably make this into a web app as well (there's actually one there already but it doesn't do anything)
git clone https://github.com/val314159/raml-python-container sh raml-python-container/build.sh raml-python-container # puts results in ./root folder
docker run -v `pwd`:/root/host val314159/raml-python-container raml-python-generator simple.raml -o host/simple
So, how does one use this thing? Well...
- Coming Soon: The Simplest RAML file