diff --git a/obsws_python/events.py b/obsws_python/events.py index 0771e26..f281340 100644 --- a/obsws_python/events.py +++ b/obsws_python/events.py @@ -5,7 +5,7 @@ from threading import Thread from .baseclient import ObsClient from .callback import Callback -from .enum import Subs +from .subs import Subs """ A class to interact with obs-websocket events @@ -28,6 +28,11 @@ class EventClient: self.subscribe() def __repr__(self): + return type(self).__name__ + "({host} {port} {password} {subs})".format( + **self.base_client.__dict__ + ) + + def __str__(self): return type(self).__name__ def subscribe(self): diff --git a/obsws_python/reqs.py b/obsws_python/reqs.py index 58dc888..4771092 100644 --- a/obsws_python/reqs.py +++ b/obsws_python/reqs.py @@ -26,6 +26,11 @@ class ReqClient: self.base_client.ws.close() def __repr__(self): + return type(self).__name__ + "({host} {port} {password})".format( + **self.base_client.__dict__ + ) + + def __str__(self): return type(self).__name__ def send(self, param, data=None, raw=False):