The library for easy checker writing for ForcAD Attack-Defence checksystem.
It's compatible with Hackerdom checksystem, too.
Import it with from checklib import *
and have access to:
TaskStatus
enum with exit codes for action resultscquit(status, public='', private=public)
function to throw the specified status code and exit, passing public and private checker information to checkerassert_*()
functions to ease up the validation of returned datarnd_*()
functions to generate random data like usernames and user agentshandle_exception
context manager to handle block exceptions andcquit
on failurecheck_response
,get_text
andget_json
functions to validaterequests
responsesget_initialized_session
function to getrequests
session with random user agentBaseChecker
class forgevent_optimized
checkers inForcAD
Pull requests are gladly accepted.
Supported python versions: 3.6.8+
.