InstantLab中间件的API

instantlab_apiclient的Python项目详细描述


InstantLab Logo

InstantLab是一个在云中提供操作系统实验的项目。

LicensePython versions supportedDocumentationBuild statusTest Coverage

instantlab_apiclient将对instantlab中间件的http接口的调用映射到python函数。api的结果映射到python对象,api中的错误作为python异常引发。

主页:http://instantlab.org

安装和依赖项

使用pip install instantlab_apiclient安装instantlab_apiclient。这也将安装所有依赖项。

instantlab_apiclient与python2.7+和python3.x一起工作。

示例

frominstantlab_apiclientimportInstantlabApi# instanciate APIapi=InstantlabApi(middleware_url,your_api_id,your_api_key)# fetch list of InfrastructureLayoutinfrastructure_layouts=api.list_infrastructure_layouts()# instanciate an Infrastructure from an InfrastructureLayoutinfrastructure=api.create_infrastructure(infrastructure_layouts[0].id)

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java创建子类对象时如何调用抽象类构造函数?   htmlunit java如何从javascript解析内容结果?还有一个htmlunit错误   使用JDT Eclipse解析Java方法的抽象语法树   Android开发非常新;如何将Java库添加到Android Studio项目?   swing Java mouselistener   mysql从连接到数据库的java(netbeans)中删除行   java为同一JVM使用多个本地SOCKS代理隧道   java在使用Selenium启动浏览器时出错   java如何在模型上包含列表?   java我不明白这个练习的解决方案   JavaOnTouchEvent:我想在屏幕上用另一个手指移动时识别触摸   java如何通过级联来级联@ManyToOne双向关系?   java如何找到顺序的算法?   java在CSV文件上执行操作   java为什么这个代码不存储多个输入当前只存储一个在新输入时被覆盖的输入