MCPcopy Create free account
hub / github.com/TimMcCool/scratchattach / __init__

Method __init__

scratchattach/cloud/cloud.py:108–121  ·  view source on GitHub ↗
(self, *, project_id, cloud_host="wss://clouddata.turbowarp.org", purpose="", contact="", _session=None)

Source from the content-addressed store, hash-verified

106
107class TwCloud(BaseCloud):
108 def __init__(self, *, project_id, cloud_host="wss://clouddata.turbowarp.org", purpose="", contact="", _session=None):
109 super().__init__()
110
111 self.project_id = project_id
112
113 # Configure this object's attributes specifically for being used with TurboWarp's cloud:
114 self.cloud_host = cloud_host
115 self.ws_shortterm_ratelimit = 0 # TurboWarp doesn't enforce a wait time between cloud variable sets
116 self.ws_longterm_ratelimit = 0
117 self.length_limit = 100000 # TurboWarp doesn't enforce a cloud variable length
118 purpose_string = ""
119 if purpose != "" or contact != "":
120 purpose_string = f" (Purpose:{purpose}; Contact:{contact})"
121 self.header = {"User-Agent": f"scratchattach/2.0.0{purpose_string}"}
122
123
124class CustomCloud(BaseCloud):

Callers 2

__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected