budosystems.models.calendar.Calendar¶
- class Calendar¶
Bases:
Entity
Represents a calendar.
- classmethod from_ical(icaldata: str, multiple: bool = False) Calendar | List[Calendar] ¶
Create a new Calendar instance from an iCal formatted string.
- Parameters:
icaldata – An iCal formatted string
multiple – Whether to process
icaldata
as multiple calendars
- Returns:
A Calendar or a list of them (depending on the value of
multiple
)
- to_ical(sort: bool = True) str ¶
Export the current Calendar object to an iCal string.
- Parameters:
sort – Whether to have the output sorted.
- Returns:
An iCal formatted string
- __init__(*, id_name: str = _Nothing.NOTHING, entity_id: UUID = <singleton MissingUUID>) None ¶
Method generated by attrs for class Calendar.
- entity_id: UUID¶
(Optional) The unique identifier for an instance of
Entity
(and all its subclasses)