resources module

class resources.INDEX

Bases: object

The INDEX class only contains static string values.

These values are attributes in the events returned by ADE API. Remembering all the names can be quite difficult so this class is here to help with it, while providing robustness if any of these attributes might change.

ADDRESS = 'address1'
AVAILABLE_QUANTITY = 'availableQuantity'
CITY = 'city'
CODE = 'code'
CODE_X = 'codeX'
CODE_Y = 'codeY'
CODE_Z = 'codeZ'
COLOR = 'color'
CONSUMER = 'consumer'
COUNTRY = 'country'
CREATION = 'creation'
DURATION_IN_MINUTES = 'durationInMinutes'
EMAIL = 'email'
FACILITY_TYPE = 'type'
FATHER_ID = 'fatherId'
FATHER_NAME = 'fatherName'
FAX = 'fax'
FIRST_SLOT = 'firstSlot'
FIRST_WEEK = 'firstWeek'
FIST_DAY = 'firstDay'
ID = 'id'
INFO = 'info'
IP_ADDRESS = 'address2'
IS_GROUP = 'isGroup'
JOB_CATEGORY = 'jobCategory'
LAST_DAY = 'lastDay'
LAST_SLOT = 'lastSlot'
LAST_UPDATE = 'lastUpdate'
LAST_WEEK = 'lastWeek'
LEVEL_ACCESS = 'levelAccess'
MANAGER = 'manager'
NAME = 'name'
NB_EVENTS_PLACES = 'nbEventsPlaced'
NUMBER = 'number'
OWNER = 'owner'
PATH = 'path'
PHONE = 'telephone'
SIZE = 'size'
STATE = 'state'
TIMEZONE = 'timezone'
TYPE = 'category'
URL = 'url'
ZIP_CODE = 'zipCode'
class resources.Resource(**kwargs)

Bases: object

A resource is anything that can be requested from ADE API: a teacher, a classroom, an activity…

Parameters

kwargs (Any) – attribute(s) of this resource

class resources.TYPES

Bases: object

The TYPES class only contains static string values.

These values are possible resource types returned by ADE API. Remembering all the names can be quite difficult so this class is here to help with it, while providing robustness if any of these attributes might change.

CLASSROOM = 'classroom'
COURSE = 'category5'
COURSE_COMBO = 'trainee'
TEACHER = 'instructor'