Metadata-Version: 2.4
Name: quizgpt
Version: 3.3.1
Summary: A Python package for generating quizzes from text, URLs, or YouTube transcripts using OpenAI.
Author: QuizGPT Contributors
License: MIT License
        
        Copyright (c) 2026 QuizGPT Contributors
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in
        all copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
        THE SOFTWARE.
        
Project-URL: Homepage, https://example.com/QuizGPT
Project-URL: Repository, https://github.com/your-org/QuizGPT
Keywords: quiz,openai,gpt,education,learning
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: openai>=1.0.0
Requires-Dist: requests>=2.0
Requires-Dist: validators>=0.20.0
Requires-Dist: beautifulsoup4>=4.12.0
Requires-Dist: youtube-transcript-api>=0.6.0
Dynamic: license-file

# QuizGPT

[![PyPI version](https://badge.fury.io/py/quizgpt.svg)](https://pypi.org/project/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

```bash
pip install quizgpt
```

## Quick Usage

```python
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"])
```

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

```bash
quizgpt --input "https://example.com/article" --api-key YOUR_OPENAI_API_KEY
```

## Requirements

- Python 3.9+
- OpenAI API key

## Development

```bash
git clone <repository-url>
cd quizgpt
python -m pip install -e .
python -m pytest
```
