Flask extension for CAS