@property
    def rev(self):
        if hasattr(self._data, 'rev'): # When data is client.Document
            return self._data.rev
        return self._data.get('_rev')
The document revision.
dataset/ETHPy150Open djc/couchdb-python/couchdb/mapping.py/Document.rev