Maintain the subscription list using OPML format, which is de facto standard for the purpose.
Bases: libearth.schema.Element
Represent body element of OPML document.
Bases: libearth.subscribe.Outline, libearth.subscribe.SubscriptionSet
Category which groups Subscription objects or other Category objects. It implements collections.MutableSet protocol.
Bases: libearth.schema.Codec
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']
Bases: libearth.schema.Element
Represent head element of OPML document.
Bases: libearth.schema.Element
Represent outline element of OPML document.
(datetime.datetime) The created time.
(bool) Whether it is deleted (archived) or not.
New in version 0.3.0.
(datetime.datetime) The archived time, if deleted ever. It could be None as well if it’s never deleted. Note that it doesn’t have enough information about whether it’s actually deleted or not. For that you have to use deleted property instead.
New in version 0.3.0.
Bases: libearth.subscribe.Outline
Subscription which holds referring feed_uri.
Bases: libearth.session.MergeableDocumentElement, libearth.subscribe.SubscriptionSet
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.
Bases: _abcoll.MutableSet
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.
Determine whether the set contains the given outline. If recursively is False (which is by default) it works in the same way to in operator.
Parameters: |
|
---|---|
Returns: | True if the set (or tree) contains the given outline, or False |
Return type: | bool |
New in version 0.2.0.
Add a subscription from Feed instance. Prefer this method over add() method.
Parameters: | |
---|---|
Returns: | the created subscription object |
Return type: |
New in version 0.3.0: Optional icon_url parameter was added.
(collections.Set) The subset which consists of only Subscription instances.