Skip to main content

A Python package for generating quizzes from text, URLs, or YouTube transcripts using OpenAI.

Project description

QuizGPT AI

PyPI version

QuizGPT AI 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-ai

Quick Usage

from quizgpt_ai 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

Requirements

  • Python 3.9+
  • OpenAI API key

Development

git clone <repository-url>
cd quizgpt
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-3.3.0.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

quizgpt-3.3.0-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file quizgpt-3.3.0.tar.gz.

File metadata

  • Download URL: quizgpt-3.3.0.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.7

File hashes

Hashes for quizgpt-3.3.0.tar.gz
Algorithm Hash digest
SHA256 303aeab316b550d270f4c876b11327382af69a4b3e0180393f0158e9faf07ce7
MD5 f8308fdfe17b61a004e4da0290215b5a
BLAKE2b-256 aa7111075dd097204467e589a5183b0df877a9c0583751d70ceb44d14b261d17

See more details on using hashes here.

File details

Details for the file quizgpt-3.3.0-py3-none-any.whl.

File metadata

  • Download URL: quizgpt-3.3.0-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.7

File hashes

Hashes for quizgpt-3.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3b7461373d8a7a1cfa41a7742e6d2c01b0957c5fc81247d10c0774d775b606b1
MD5 3ca1d93a0a9343cf1bcb5607232a4738
BLAKE2b-256 c80aace12ad1345a0e806d40300d40fc5c684aae3b2baef170cfc478681e98ec

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page