Debian Codegraph @

recurring_ical_events/constants.py

raw symbols SCIP
1 """Constants for recurring_ical_events."""
2
3 import datetime
4 import re
5 from pathlib import Path
6
7 # The minimum value accepted as date (pytz + zoneinfo)
8 DATE_MIN = (1970, 1, 1)
9 DATE_MIN_DT = datetime.date(*DATE_MIN)
10 # The maximum value accepted as date (pytz + zoneinfo)
11 DATE_MAX = (2038, 1, 1)
12 DATE_MAX_DT = datetime.date(*DATE_MAX)
13
14 # the location of this file
15 HERE = Path(__file__).parent
16
17 # the directory with all example calendars
18 CALENDARS = HERE / "test" / "calendars"
19
20 NEGATIVE_RRULE_COUNT_REGEX = re.compile(r"COUNT=-\d+;?")
21
22 __all__ = [
23 "CALENDARS",
24 "DATE_MAX",
25 "DATE_MAX_DT",
26 "DATE_MIN",
27 "DATE_MIN_DT",
28 "NEGATIVE_RRULE_COUNT_REGEX",
29 ]