How to use the swat.utils.cachedproperty function in swat

To help you get started, we’ve selected a few swat examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github sassoftware / python-swat / swat / cas / response.py View on Github external
    @cachedproperty
    def rows_written(self):
        ''' Unique rows written '''
        return errorcheck(self._sw_response.getRowsWritten(), self._sw_response)
github sassoftware / python-swat / swat / cas / response.py View on Github external
    @cachedproperty
    def messages(self):
        ''' Return a list of messages '''
        messages = []
        nmessages = errorcheck(self._sw_response.getNMessages(), self._sw_response)
        for i in range(nmessages):
            messages.append(errorcheck(
                a2u(self._sw_response.getNextMessage(), 'utf-8'), self._sw_response))
        return messages
github sassoftware / python-swat / swat / cas / response.py View on Github external
    @cachedproperty
    def data_movement_bytes(self):
        ''' Data movement bytes '''
        return errorcheck(self._sw_response.getDataMovementBytes(), self._sw_response)
github sassoftware / python-swat / swat / cas / response.py View on Github external
    @cachedproperty
    def data_movement_time(self):
        ''' Data movement time '''
        return errorcheck(self._sw_response.getDataMovementTime(), self._sw_response)
github sassoftware / python-swat / swat / cas / response.py View on Github external
    @cachedproperty
    def cpu_user_time(self):
        ''' CPU User Time '''
        return errorcheck(self._sw_response.getCPUUserTime(), self._sw_response)
github sassoftware / python-swat / swat / cas / response.py View on Github external
    @cachedproperty
    def system_nodes(self):
        ''' Number of nodes '''
        return errorcheck(self._sw_response.getSystemNodes(), self._sw_response)
github sassoftware / python-swat / swat / cas / response.py View on Github external
    @cachedproperty
    def debug(self):
        ''' Disposition debug information '''
        return errorcheck(a2u(self._sw_response.getDispositionDebug(), 'utf-8'),
                          self._sw_response)
github sassoftware / python-swat / swat / cas / response.py View on Github external
    @cachedproperty
    def cpu_system_time(self):
        ''' CPU System Time '''
        return errorcheck(self._sw_response.getCPUSystemTime(), self._sw_response)
github sassoftware / python-swat / swat / cas / response.py View on Github external
    @cachedproperty
    def severity(self):
        ''' Disposition severity '''
        return errorcheck(self._sw_response.getDispositionSeverity(),
                          self._sw_response)
github sassoftware / python-swat / swat / cas / response.py View on Github external
    @cachedproperty
    def disposition(self):
        ''' Return a :class:`CASDisposition` object '''
        return CASDisposition(self._sw_response)