From ab60931620066f6704be3010903f779b3cb9c71a Mon Sep 17 00:00:00 2001 From: Will Thompson Date: Sun, 9 Apr 2017 10:21:56 +0100 Subject: Initial implementation of streaming API This is missing any error handling and rate-limiting around the stream itself, but once the stream is established, the full range of events are supported. Fixes issue #14. --- mastodon/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mastodon/__init__.py') diff --git a/mastodon/__init__.py b/mastodon/__init__.py index 17f63e6..9c8e39b 100644 --- a/mastodon/__init__.py +++ b/mastodon/__init__.py @@ -1,2 +1,4 @@ from mastodon.Mastodon import Mastodon -__all__ = ['Mastodon'] +from mastodon.streaming import StreamListener, MalformedEventError + +__all__ = ['Mastodon', 'StreamListener', 'MalformedEventError'] -- cgit v1.2.3