当前位置: 首页>>代码示例>>Python>>正文


Python typecheck.is_string函数代码示例

本文整理汇总了Python中raritan.rpc.typecheck.is_string函数的典型用法代码示例。如果您正苦于以下问题:Python is_string函数的具体用法?Python is_string怎么用?Python is_string使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了is_string函数的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: encode

 def encode(name, iAddr):
     typecheck.is_string(name, AssertionError)
     typecheck.is_long(iAddr, AssertionError)
     args = {}
     args['name'] = name
     args['iAddr'] = iAddr
     return args
开发者ID:gsquire1,项目名称:automation,代码行数:7,代码来源:__init__.py

示例2: decode

 def decode(rsp, agent):
     _ret_ = rsp['_ret_']
     values = [x0 for x0 in rsp['values']]
     typecheck.is_int(_ret_, DecodeException)
     for x0 in values:
         typecheck.is_string(x0, DecodeException)
     return (_ret_, values)
开发者ID:gsquire1,项目名称:Python,代码行数:7,代码来源:__init__.py

示例3: __init__

        def __init__(self, state, reason, source):
            super(raritan.rpc.hmi.InternalBeeper.StateChangedEvent, self).__init__(source)
            typecheck.is_enum(state, raritan.rpc.hmi.InternalBeeper.State, AssertionError)
            typecheck.is_string(reason, AssertionError)

            self.state = state
            self.reason = reason
开发者ID:gsquire1,项目名称:Python,代码行数:7,代码来源:__init__.py

示例4: encode

 def encode(recipient, testSettings):
     typecheck.is_string(recipient, AssertionError)
     typecheck.is_struct(testSettings, raritan.rpc.serial.GsmModem.Settings, AssertionError)
     args = {}
     args['recipient'] = recipient
     args['testSettings'] = raritan.rpc.serial.GsmModem.Settings.encode(testSettings)
     return args
开发者ID:gsquire1,项目名称:Python,代码行数:7,代码来源:__init__.py

示例5: getMasterIpV6Address

 def getMasterIpV6Address(self):
     agent = self.agent
     args = {}
     rsp = agent.json_rpc(self.target, 'getMasterIpV6Address', args)
     masterIpV6Address = rsp['masterIpV6Address']
     typecheck.is_string(masterIpV6Address, DecodeException)
     return masterIpV6Address
开发者ID:QualiSystems,项目名称:Raritan-PDU-Shell,代码行数:7,代码来源:__init__.py

示例6: encode

 def encode(ctxName, logLevel):
     typecheck.is_string(ctxName, AssertionError)
     typecheck.is_enum(logLevel, raritan.rpc.diag.DiagLogSettings.LogLevel, AssertionError)
     args = {}
     args['ctxName'] = ctxName
     args['logLevel'] = raritan.rpc.diag.DiagLogSettings.LogLevel.encode(logLevel)
     return args
开发者ID:gsquire1,项目名称:automation,代码行数:7,代码来源:__init__.py

示例7: getVersion

 def getVersion(self):
     agent = self.agent
     args = {}
     rsp = agent.json_rpc(self.target, 'getVersion', args)
     _ret_ = rsp['_ret_']
     typecheck.is_string(_ret_, DecodeException)
     return _ret_
开发者ID:QualiSystems,项目名称:Raritan-PDU-Shell,代码行数:7,代码来源:__init__.py

示例8: __init__

        def __init__(self, oldName, newName, actUserName, actIpAddr, source):
            super(raritan.rpc.lhxmodel.Config.PortNameChangedEvent, self).__init__(actUserName, actIpAddr, source)
            typecheck.is_string(oldName, AssertionError)
            typecheck.is_string(newName, AssertionError)

            self.oldName = oldName
            self.newName = newName
开发者ID:QualiSystems,项目名称:Raritan-PDU-Shell,代码行数:7,代码来源:__init__.py

示例9: __init__

    def __init__(self, id, supportedFormats):
        typecheck.is_string(id, AssertionError)
        for x0 in supportedFormats:
            typecheck.is_struct(x0, raritan.rpc.webcam.Format, AssertionError)

        self.id = id
        self.supportedFormats = supportedFormats
开发者ID:gsquire1,项目名称:automation,代码行数:7,代码来源:__init__.py

示例10: __init__

    def __init__(self, creationTime, remoteIp, clientType):
        typecheck.is_time(creationTime, AssertionError)
        typecheck.is_string(remoteIp, AssertionError)
        typecheck.is_string(clientType, AssertionError)

        self.creationTime = creationTime
        self.remoteIp = remoteIp
        self.clientType = clientType
开发者ID:gsquire1,项目名称:automation,代码行数:8,代码来源:__init__.py

示例11: getDetectableDevices

 def getDetectableDevices(self):
     agent = self.agent
     args = {}
     rsp = agent.json_rpc(self.target, 'getDetectableDevices', args)
     _ret_ = [x0 for x0 in rsp['_ret_']]
     for x0 in _ret_:
         typecheck.is_string(x0, DecodeException)
     return _ret_
开发者ID:QualiSystems,项目名称:Raritan-PDU-Shell,代码行数:8,代码来源:__init__.py

示例12: closeSession

 def closeSession(self, token, reason):
     agent = self.agent
     typecheck.is_string(token, AssertionError)
     typecheck.is_enum(reason, raritan.rpc.session.SessionManager.CloseReason, AssertionError)
     args = {}
     args['token'] = token
     args['reason'] = raritan.rpc.session.SessionManager.CloseReason.encode(reason)
     rsp = agent.json_rpc(self.target, 'closeSession', args)
开发者ID:QualiSystems,项目名称:Raritan-PDU-Shell,代码行数:8,代码来源:__init__.py

示例13: decode

 def decode(rsp, agent):
     _ret_ = rsp['_ret_']
     session = raritan.rpc.session.Session.decode(rsp['session'], agent)
     token = rsp['token']
     typecheck.is_int(_ret_, DecodeException)
     typecheck.is_struct(session, raritan.rpc.session.Session, DecodeException)
     typecheck.is_string(token, DecodeException)
     return (_ret_, session, token)
开发者ID:gsquire1,项目名称:automation,代码行数:8,代码来源:__init__.py


注:本文中的raritan.rpc.typecheck.is_string函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。