TwVideoManager.twitch.models module¶
-
class
TwVideoManager.twitch.models.TwitchVideo(author: str, date: Optional[datetime.datetime], uid: int, vid: Optional[int], url: Optional[str], start_time: Optional[datetime.datetime], uptime: Optional[datetime.timedelta])[source]¶ Bases:
TwVideoManager.models.VideoTwitch video
Parameters: - author (str) – Streamer ID of the video
- uid (int) – Twitch API ID of the author
- vid (Optional[int]) – Twitch API Video ID of the stream video
- url (Optional[str]) – Twitch Video link of the stream video (if public and available)
- date (Optional[datetime]) – Record-Started time of the video
- start_time (Optional[datetime]) – Stream-Started time of the video
- uptime (Optional[timedelta]) – Uptime of the stream video
-
class
TwVideoManager.twitch.models.User(*args, **kwargs)[source]¶ Bases:
sphinx.ext.autodoc.importer._MockObject-
classmethod
from_login(login: str, client: <sphinx.ext.autodoc.importer._MockObject object at 0x7facbdde75c0>)[source]¶
-
classmethod
from_uid(uid: str, client: <sphinx.ext.autodoc.importer._MockObject object at 0x7facbdde75c0>)[source]¶ Get User from usernames
Parameters: - uid (str) – User’s name(known id) to find
- client (twitch.TwitchClient) – TwitchClient to use in translating login name into user
Return User: Wrapped User object
-
classmethod
from_user(user: <sphinx.ext.autodoc.importer._MockObject object at 0x7facbdde7710>)[source]¶ Wrap
twitch.users.Userinto UserParameters: user (twitch.api.users.User) – Target object to wrap Return User: Wrapped User object
-
make_watcher(header: Union[str, <sphinx.ext.autodoc.importer._MockObject object at 0x7facbdde7710>], client: <sphinx.ext.autodoc.importer._MockObject object at 0x7facbdde75c0> = None)[source]¶
-
uid¶ str: User’s known name
-
classmethod