Maintain the subscription list using OPML format, which is de facto standard for the purpose.
Represent body element of OPML document.
Category which groups Subscription objects or other Category objects. It implements collections.MutableSet protocol.
Encode strings e.g. ['a', 'b', 'c'] into a comma-separated list e.g. 'a,b,c', and decode it back to a Python list. Whitespaces between commas are ignored.
>>> codec = CommaSeparatedList()
>>> codec.encode(['technology', 'business'])
'technology,business'
>>> codec.decode('technology, business')
['technology', 'business']
Represent head element of OPML document.
Represent outline element of OPML document.
(datetime.datetime) The created time.
Subscription which holds referring feed_uri.
The set (exactly, tree) of subscriptions. It consists of Subscriptions and Category objects for grouping. It implements collections.MutableSet protocol.
(distutils.version.StrictVersion) The OPML version number.
Mixin for SubscriptionList and Category, both can group Subscription object and other Category objects, to implement collections.MutableSet protocol.
Note
Every subclass of SubscriptionSet has to override children property to implement details.
Add a subscription from Feed instance. Prefer this method over add() method.
Parameters: | feed (Feed) – feed to subscribe |
---|
(collections.Set) The subset which consists of only Subscription instances.