in modular_sdk/services/impl/maestro_credentials_service.py [0:0]
def url(self) -> Optional[str]:
if not self.host:
return
url = self.host.strip('/') # assuming that host is without protocol
if self.port:
url += f':{self.port}'
if self.protocol:
url = self.protocol.lower() + '://' + url
if self.stage:
url += '/' + self.stage
return url