Skip to main content

AI Course Generator 🚀

License: MIT Python Version

An intelligent CLI tool for generating structured educational content using AI models.

Table of Contents

Key Features

✔ Multi-format Output - Generate courses in PDF, DOCX, and EPUB formats
✔ Smart Configuration - Customize length, difficulty, and content depth
✔ Model Flexibility - Supports multiple AI models including Gemini
✔ User-Friendly CLI - Interactive prompts or direct command options
✔ Structured Content - Automatically generates chapters and outlines
✔ Advanced Workflows - Powered by QuantaLogic Flow engine (Technical Details)

Quick Start

# Run in interactive mode (recommended for first-time users)
python -m ai_course_generator.generate_course --interactive

Installation Options

Standard Installation

git clone https://github.com/raphaelmansuy/course-generator.git
cd course-generator
pip install -e .

Isolated Installation (recommended)

pipx install git+https://github.com/raphaelmansuy/course-generator.git

Usage Guide

Interactive Mode

python -m ai_course_generator.generate_course --interactive
# or
python -m ai_course_generator.generate_course -i

The interactive mode will guide you through all configuration options with sensible defaults.

Direct Command Usage

Required Parameters

All of these must be provided either via command line or interactive mode:

  • --subject: Course subject (string)
  • --number-of-chapters: Number of chapters (integer)
  • --level: Difficulty level (beginner/intermediate/advanced)
  • --words-by-chapter: Target word count per chapter (integer)
  • --target-directory: Output directory path (string)

Complete Command Example:

python -m ai_course_generator.generate_course \
  --subject "Python Basics" \
  --number-of-chapters 5 \
  --level beginner \
  --words-by-chapter 800 \
  --target-directory "./output_courses"

With Optional Flags:

python -m ai_course_generator.generate_course \
  --subject "Advanced ML" \
  --number-of-chapters 8 \
  --level advanced \
  --words-by-chapter 1500 \
  --target-directory "./ml_courses" \
  --no-pdf \
  --model-name "gemini/gemini-2.0-pro"

Configuration Reference

Parameter Description Values Default
--subject Course topic Any string Required
--level Difficulty beginner/intermediate/advanced intermediate
--number-of-chapters Course length 1-20 5
--words-by-chapter Content depth 500-5000 1000
--target-directory Output path Valid path ./courses/[subject]
--model-name AI model Supported model name gemini/gemini-2.0-flash

Examples

1. Beginner-Friendly Course

python -m ai_course_generator.generate_course \
  --subject "Python Basics" \
  --level beginner \
  --words-by-chapter 600

2. Technical Deep Dive

python -m ai_course_generator.generate_course \
  --subject "Advanced Kubernetes" \
  --level advanced \
  --words-by-chapter 2000 \
  --model-name "gemini/gemini-2.0-pro"

Technical Documentation

For in-depth technical information about the architecture and implementation, see our Technical Documentation which covers:

  • Workflow engine design
  • AI integration patterns
  • Content generation pipeline
  • Performance characteristics

Contributing

We welcome contributions! Please see our Contribution Guidelines for details.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

Metadata

Release files for ai-course-generator 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ai-course-generator 0.3.0
File Size Uploaded
ai_course_generator-0.3.0.tar.gz 19.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ai-course-generator 0.3.0
File Interpreter ABI Platform
ai_course_generator-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 40.6 kB

Release files / ai_course_generator-0.3.0.tar.gz

Download URL ai_course_generator-0.3.0.tar.gz
Size 19.6 kB
Tags Source
SHA-256 checksum
How to use checksums
61930599e7f222eda5d22e5762bca767911e38cb5c99e43d4a083e6140f5406d
BLAKE2b-256 checksum
How to use checksums
a1d1b8d85ef715750323b7b236d4dc609d3656c0b3844c21fc845d17e3d8ddfa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.2 CPython/3.12.8 Darwin/24.3.0

Release files / ai_course_generator-0.3.0-py3-none-any.whl

Download URL ai_course_generator-0.3.0-py3-none-any.whl
Size 20.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ca2affdb6b5b501ce4c12885dbee640d0d7800821c62a193c09290d16cda43c2
BLAKE2b-256 checksum
How to use checksums
da43ae272f03bfdd4418fc5211e42364f96cac55d119966febbe47be27a6df7d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.2 CPython/3.12.8 Darwin/24.3.0

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page