A Python package for generating quizzes from text, URLs, or YouTube transcripts using OpenAI.
Project description
QuizGPT
QuizGPT is a Python package for generating quizzes from raw text, web pages, or YouTube video transcripts using OpenAI models.
Features
- Extracts content from URLs or plain text.
- Supports YouTube transcript extraction and web page scraping.
- Generates multiple choice quizzes with easy/medium/hard difficulty.
- Provides a concise summary of the source content.
- Exposes both a Python API and a CLI.
Installation
pip install QuizGPT
Quick Usage
from quizgpt import QuizGPT
generator = QuizGPT(api_key="YOUR_OPENAI_API_KEY")
result = generator.generate_quiz(
input_text="https://example.com/article",
difficulty="medium",
question_type="mcq"
)
print(result["quiz"])
print(result["short"])
CLI Usage
quizgpt --input "https://example.com/article" --api-key YOUR_OPENAI_API_KEY
Development
python -m pip install -e .
python -m pytest
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
quizgpt-0.1.0.tar.gz
(6.5 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 quizgpt-0.1.0.tar.gz.
File metadata
- Download URL: quizgpt-0.1.0.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
05f4401a7f3c81190da932cb77dc397d5e2666b6d19a5d16869cbaeea94c1ced
|
|
| MD5 |
020d49d44d7fc1d734df39c9cf764996
|
|
| BLAKE2b-256 |
da923dc67a69d81d738f3a22a404f5e53e6cddb88f2158361ea165c6b3462b48
|
File details
Details for the file quizgpt-0.1.0-py3-none-any.whl.
File metadata
- Download URL: quizgpt-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9013fcec75fdf59e219138f3108bb10c1265dea0175b5998de8e44feaaa9f52b
|
|
| MD5 |
8eff9b778d3bc91a492bf687adcb0ff4
|
|
| BLAKE2b-256 |
000d9379f227873e5634db2b8595cc8288eb9acb888212f3a374682b55f748fd
|