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.
Public naming policy (>=0.3.0)
Public selector and gateway contracts use neutral resource naming:
resource_idresource_selectionslocked_resource_id
Legacy master_* argument names are not part of the public runtime API starting from 0.3.0.
The full selector, adapter, and mixin-level documentation lives in Booking internals.