pacmanweb.api.api

pacmanweb.api.api#

Flask views for dealing with login/logout and orchestration of celery processes.

Functions

allowed_file(filename)

Check if the given filename has an allowed extension.

get_available_cycles()

Retrieve available valid/invalid PACMan cycles.

get_current_user()

Retrieve information about the currently logged-in user.

login()

Handle user login via a POST request.

logout()

Log out the current user.

main_route()

Check if a user is currently logged in.

pacman_run_result(result_id)

Retrieve the result of a previous PACMan run.

run_pacman()

Start a PACMan run with specified options.

stop_task(result_id)

Terminate a running PACMan task.

stream_task(result_id)

Stream the output of a running PACMan task.

upload_zip()

Handle the upload of a zip file.