用于与pertino通信的python包。

pertinosdk的Python项目详细描述


欢迎使用pertino python sdk

示例用法

'''
Created on Jul 26, 2014

@author: lwoydziak
'''frompertinosdkimportPertinoSdk,wherefromjsonconfigfileimportEnvdeftest_whenOrgsAvailableThenCanListThem():pertinoSdk=PertinoSdk(Env().get("Pertino","login"),Env().get("Pertino","password"))organizations=pertinoSdk.listOrgs()assertlen(organizations)>0deftest_whenDevicesInOrganizationsThenCanListThem():pertinoSdk=PertinoSdk(Env().get("Pertino","login"),Env().get("Pertino","password"))organizations=pertinoSdk.listOrgs()devices=pertinoSdk.listDevicesIn(organizations[0])assertlen(devices)>0deftest_deleteMachinesWithNameContainingAuto():pertinoSdk=PertinoSdk(Env().get("Pertino","login"),Env().get("Pertino","password"))organizations=pertinoSdk.listOrgs()devices=pertinoSdk.listDevicesIn(organizations[0],where("hostName").contains("auto"))pertinoSdk.deleteFrom(organizations[0],devices)assertnotpertinoSdk.listDevicesIn(organizations[0],where("hostName").contains("auto"))

建造

antenvantinitantpackage

运行单元测试

anttest

运行验收测试

使用pertino凭据创建一个文件(格式/名称请参见acceptance/conftest.py)

antacceptance

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

推荐PyPI第三方库


热门话题
如何表示1。。Java中的n关系   java在安卓应用程序中添加polaris viewer   Java字符串::replaceAll仅替换第一个出现(可能不正确的正则表达式)   java Tomcat/JBoss部署后脚本   如何在Heroku Java应用程序中运行发出web请求的周期进程   java如何以纳秒为单位证明算法的时间   Solaris上的java自定义ListCellRenderer(使用jre5)   java试图为我的播放器类测试块实现播放器重力(RealtutsGml平台教程)   c#消耗一个。带有java的net web服务未显示预期结果   java在KOI8\R中检索html   基于java图形的搜索与基于随机的搜索   java如何检查安卓设备上的可用空间?在SD卡上?