API Client ========== .. automodule:: routinepy.lib.api.client :members: :member-order: bysource :undoc-members: Example ------- Basic Setup ----------- First, initialize the API client: .. code-block:: python from routinepy.lib import ApiClient client = ApiClient() Some Scenarios -------------- 1. **Department Routine** - Get class routine for an entire department: .. code-block:: python data = await client.get_class_routine( program_code=ProgramCode.CSE_Day ) 2. **Faculty Routine** - Get class routine for a specific faculty member: .. code-block:: python data = await client.get_class_routine( faculty_code="MDI" ) 3. **Intake Routine** - Get class routine for a specific department intake: .. code-block:: python data = await client.get_class_routine( program_code=ProgramCode.CSE_Day, intake="49" ) 4. **Mid-Term Routine** - Get exam routine for a specific department intake: .. code-block:: python data = await client.get_mid_routine( program_code=ProgramCode.CSE_Day, intake="49" )