Files
classquiz-ai/classquiz/kahoot_importer
deepsource-autofix[bot] 556aa0d2f0 Format code with black
This commit fixes the style issues introduced in 2b288b4 according to the output
from black.

Details: https://deepsource.io/gh/mawoka-myblock/ClassQuiz/transform/5d38ef77-a256-4b0c-9973-ca93b1b7b1b4/
2022-04-14 15:47:47 +00:00
..
2022-04-09 10:29:55 +02:00
2022-04-09 10:29:55 +02:00
2022-04-14 15:47:47 +00:00
2022-03-12 18:35:43 +01:00
🎨 black
2022-04-09 11:06:36 +02:00

Kahoot-Importer

With this package you can search kahoot-quizzes and get their data.

This library is also tested.

Get

from classquiz.kahoot_importer.get import get, _Response
from asyncio import run
# _Response ia a pydantic-object, so you have access to
# .dict() or .json(exclude={"kahoot"})

async def main():
    kahoot_quiz: _Response = await get("GAME_ID")
    print(kahoot_quiz.json(exclude={"kahoot"}))
run(main())
from classquiz.kahoot_importer.search import search, _Response
from asyncio import run
# _Response ia a pydantic-object, so you have access to
# .dict() or .json(exclude={"kahoot"})

async def main():
    kahoot_quizzes: _Response = await search("QUERY")
    print(kahoot_quizzes.json())
run(main())

Import-Quiz

This script is meant just to be used with classquiz, not alone.

Kahoot! and the K! logo are trademarks of Kahoot! AS