Files
tkmind_go/src/goose/view.py
T
Luke Alvoeiro dd126afa6c chore: initial commit
Co-authored-by: Lifei Zhou <lifei@squareup.com>
Co-authored-by: Mic Neale <micn@tbd.email>
Co-authored-by: Lily Delalande <ldelalande@squareup.com>
Co-authored-by: Bradley Axen <baxen@squareup.com>
Co-authored-by: Andy Lane <alane@squareup.com>
Co-authored-by: Elena Zherdeva <ezherdeva@squareup.com>
Co-authored-by: Zaki Ali <zaki@squareup.com>
Co-authored-by: Salman Mohammed <smohammed@squareup.com>
2024-08-23 16:39:04 -07:00

27 lines
605 B
Python

from attrs import define
from exchange import Exchange
@define
class ExchangeView:
"""A read-only view of the underlying Exchange
Attributes:
processor: A copy of the exchange configured for high capabilities
accelerator: A copy of the exchange configured for high speed
"""
_processor: str
_accelerator: str
_exchange: Exchange
@property
def processor(self) -> Exchange:
return self._exchange.replace(model=self._processor)
@property
def accelerator(self) -> Exchange:
return self._exchange.replace(model=self._accelerator)