MCPcopy Create free account
hub / github.com/dot-agent/nextpy / SessionData

Class SessionData

nextpy/backend/state.py:112–129  ·  view source on GitHub ↗

An object containing session data.

Source from the content-addressed store, hash-verified

110
111
112class SessionData(Base):
113 """An object containing session data."""
114
115 client_token: str = ""
116 client_ip: str = ""
117 session_id: str = ""
118
119 def __init__(self, router_data: Optional[dict] = None):
120 """Initalize the SessionData object based on router_data.
121
122 Args:
123 router_data: the router_data dict.
124 """
125 super().__init__()
126 if router_data:
127 self.client_token = router_data.get(constants.RouteVar.CLIENT_TOKEN, "")
128 self.client_ip = router_data.get(constants.RouteVar.CLIENT_IP, "")
129 self.session_id = router_data.get(constants.RouteVar.SESSION_ID, "")
130
131
132class RouterData(Base):

Callers 2

RouterDataClass · 0.85
__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected