3 ms·
Since you are already using an API wrapper, i would highly recommend using a lib that is provider-agnostic, such as libcloud[0], which provides a pythonic abstr
by kbar13 13y ago
Since you are already using an API wrapper, i would highly recommend using a lib that is provider-agnostic, such as libcloud[0], which provides a pythonic abstraction layer over all the crap that various IaaS providers put into their API designs.
[0] https://libcloud.apache.org/ https://libcloud.apache.org/
- abcd_f 13y ago> pythonic Not to state the obvious, but that's not terribly practical for anyone except those writing in Python.
- gingerlime 13y agobut: a) the indicator is written in python b) there are equivalent cloud-abstraction libraries in other languages, like fog[0] in ruby, jclouds[1] in java, pkgcloud[2] for node and maybe others. The point I believe was that if you use an abstraction layer over many providers, you can instantly make this useful for other/any cloud providers, not just digital ocean, and without any extra code. At least in theory. [0]http://fog.io/ http://fog.io/ [1]http://jclouds.apache.org/ http://jclouds.apache.org/ [2]https://www.npmjs.org/package/pkgcloud https://www.npmjs.org/package/pkgcloud
- abcd_f 12y ago> the indicator is written in python Ah. Good point, my bad.