Skip to content

Challenges

ChallengeTypeTemplatesDict

Bases: TypedDict

Represents the HTML templates for the UI to edit the challenge type

Source code in ctfdpy\types\challenges.py
 8
 9
10
11
12
13
14
15
class ChallengeTypeTemplatesDict(TypedDict):
    """
    Represents the HTML templates for the UI to edit the challenge type
    """

    create: str
    update: str
    view: str

ChallengeTypeScriptsDict

Bases: TypedDict

Represents the JavaScript scripts for the UI to edit the challenge type

Source code in ctfdpy\types\challenges.py
18
19
20
21
22
23
24
25
class ChallengeTypeScriptsDict(TypedDict):
    """
    Represents the JavaScript scripts for the UI to edit the challenge type
    """

    create: str
    update: str
    view: str

ChallengeRequirementsDict

Bases: TypedDict

Represents the requirements of a challenge

Source code in ctfdpy\types\challenges.py
35
36
37
38
39
40
41
class ChallengeRequirementsDict(TypedDict):
    """
    Represents the requirements of a challenge
    """

    prerequisites: list[int]
    anonymize: bool