NOTICE: All information contained herein is, and remains
the property of TechnoCore Automate.
Calendar service for querying and managing event schedules.
Contains two classes: ObjEvent (calendar event entity) and
ObjCalendar (calendar query and constraint logic).
ObjData.ObjData
├── ObjEvent (event entity, save to data_events)
└── ObjCalendar (query, constraint, iCal import)
factory.core/ObjCalendar.pyObjData.ObjDatadata_events, def_event_types, def_activity, def_journey| Method | Description |
|---|---|
__init__(self, DB=0, model="llm:mistral", collectdb="") |
Initialise with default field values |
random(self) |
Populate fields with random fake data via ObjDataSeed |
save(self) |
Persist the current event to data_events |
| Method | Description |
|---|---|
__init__(self, DB=0, model="llm:mistral", collectdb="") |
Initialise ObjCalendar |
update_event_time(self, id, start="", end="") |
Update start and end times for an event by GUID |
get_event_list(self, user="", event_class="", start="", end="") |
Retrieve events as dictionaries with constraint metadata |
compute_constraint(self, items) |
Apply day-of-week and date-range constraints to events |
get_event_json(self) |
Return all events as a JSON string |
clean_events(self) |
Delete all rows from data_events |
read_ical_file(self, input_file="") |
Import events from an iCal (.ics) file |
compute_constraint checks each event against:
Constraints are loaded from def_activity per event type and package.
Run from the project root:
python factory.core/ObjCalendar.py --help
| Command | Description |
|---|---|
test |
Fetch events for user VHEYN and compute constraints |
cythonize -3 -a -i ObjCalendar.py
Updated: 2026-03-20