This release changes the way Stream
instances are created.
There is now a single classmethod, from_data
, which accepts a video resource, that can be retrieved from the new staticmethods.
They are similar to the old classmethods, only really with name changes. Both return the video resource data from_data
expects:
Stream.from_id
-> Stream.fetch_stream_data
Stream.from_channel_id
-> Stream.fetch_active_stream_data
This is normally done internally so it doesn't matter too much, but it allowed for better testing, and is more consistent with other classes.
Source code(tar.gz)
Source code(zip)
chatto-0.2.1-py3-none-any.whl(22.21 KB)
chatto-0.2.1.tar.gz(14.50 KB)