icalendar.prop.recur.skip module#

SKIP value type of RECUR from RFC 7529.

class icalendar.prop.recur.skip.vSkip(*values)[source]#

Bases: vText, Enum

Skip values for RRULE.

These are defined in RFC 7529.

OMIT is the default value.

Examples:

>>> from icalendar import vSkip
>>> vSkip.OMIT
vSkip('OMIT')
>>> vSkip.FORWARD
vSkip('FORWARD')
>>> vSkip.BACKWARD
vSkip('BACKWARD')
BACKWARD = vText(b'BACKWARD')#
FORWARD = vText(b'FORWARD')#
OMIT = vText(b'OMIT')#
encoding#
classmethod from_xcal_in_recur(xml)[source]#

Parse xCal from RFC 6321.

Parameters:

xml (XCalParser | ElementAdapter | Element) – The XML to parse or a parser.

Raises:

XCalParsingError – If the provided xCal is invalid.

Return type:

VProp

params: Parameters#
classmethod parse_jcal_value(value)[source]#

Parse a jCal value for vSkip.

Raises:

JCalParsingError – If the value is not a valid skip value.

Return type:

Self

to_xcal(element)[source]#

Add the xCal representation of this property according to RFC 6321.

Return type:

None