Booking Public API
The booking package is organized around reusable abstract models plus adapters that connect Django data to the booking engine.
Stable imports
from codex_django.booking import (
DjangoAvailabilityAdapter,
BookingCacheAdapter,
AbstractBookableMaster,
AbstractBookableService,
AbstractBookableAppointment,
AbstractWorkingDay,
MasterDayOffMixin,
AbstractBookingSettings,
)
Typical flow
- Compose project models from the exported booking mixins.
- Use
DjangoAvailabilityAdapterto bridge ORM data into the engine. - Call selector functions from the internal booking layer in your views or services.
The full selector, adapter, and mixin-level documentation lives in Booking internals.