icalendar.prop.categories module#
CATEGORIES property values from RFC 5545.
- class icalendar.prop.categories.vCategory(c_list, /, params=None)[source]#
Bases:
object- static from_ical(ical)[source]#
Parse a CATEGORIES value from iCalendar format.
This helper is normally called by
Component.from_ical, which already splits the CATEGORIES property into a list of unescaped category strings. New code should therefore pass a list of strings.Passing a single comma-separated string is supported only for backwards compatibility with older parsing code and is considered legacy behavior.
- classmethod from_jcal(jcal_property)[source]#
Parse jCal from RFC 7265.
- Parameters:
jcal_property (
list) – The jCal property to parse.- Raises:
JCalParsingError – If the provided jCal is invalid.
- Return type:
- classmethod from_xcal(xml)[source]#
Parse xCal according to RFC 6321.
- Parameters:
parser – Required. The xCal to parse or a parser.
params – Required. The parameters of the xCal element.
- Raises:
XCalParsingError – If the provided xCal is invalid.
- Return type:
VProp
- params: Parameters#