Python wrapper for the QuizGecko API
Project description
QuizGecko API Wrapper
A clean Python client for the QuizGecko API. Supports quiz generation, uploads, questions, and language listing.
Installation
pip install quizgecko
Quickstart
from quizgecko import Client, BearerAuth, endpoints
# Initialize
client = Client(BearerAuth('YOUR_API_KEY'))
# Create a quiz
quiz = endpoints.generate.create_quiz(
client,
text = 'Physics is the study of matter, energy, and their interactions.',
question_type = 'multiple_choice',
difficulty = 'easy'
)
# Wait until processing finishes
completed = endpoints.generate.wait_for_completion(client, quiz['quiz']['id'])
# View generated questions
for question in completed['questions']:
print(question['text'])
Endpoints
| Module | Description |
|---|---|
endpoints.generate |
Create and poll quiz generation jobs |
endpoints.quiz |
Retrieve and update quizzes |
endpoints.questions |
Update individual questions |
endpoints.upload |
Upload files for content generation |
endpoints.languages |
List supported languages |
Development
git clone https://github.com/kalenmcmillan/quizgecko.git
cd quizgecko
python -m pip install -e .
pytest
License
MIT License © 2025 Kalen McMillan
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
quizgecko-0.1.2.tar.gz
(7.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file quizgecko-0.1.2.tar.gz.
File metadata
- Download URL: quizgecko-0.1.2.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
311ab2b4688c794a9c500113b8bbdec158c32bf050885c3dd3694b7c87351c30
|
|
| MD5 |
90b1cfe906b218ce93674514b0705d2c
|
|
| BLAKE2b-256 |
8ece871efe8d055bfd1550ab4df9324edc62d5ad0d1884c53614672f77e2beff
|
File details
Details for the file quizgecko-0.1.2-py3-none-any.whl.
File metadata
- Download URL: quizgecko-0.1.2-py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
142a0b42c6e61007d37716b6338e141cecbefbb38d088b25aa139f44e479a111
|
|
| MD5 |
b8099cdd0383cd01d587a4e685ded706
|
|
| BLAKE2b-256 |
598e3b67b604683124b6cf3ab71be92f28bf4a73afe1623a310311f05d514472
|