MTABE is a powerful CLI tool that helps you study smarter using AI-powered flashcards, tests, and chat assistance. It works with various content sources including YouTube videos, web pages, and local files.
First, create and activate a virtual environment:
# Create virtual environment
python -m venv venv
# Activate on Windows
venv\Scripts\activate
# Activate on Linux/Mac
source venv/bin/activate
# Install mtabe
pip install mtabe- 📝 Create AI-powered flashcards from any study material
- 📝 Generate custom tests with various question types
- 💬 Chat with AI about your study materials
- 📺 Extract content from YouTube video subtitles
- 🌐 Pull study material from web pages
- 📄 Support for multiple file formats (PDF, DOCX, TXT, XLSX, etc.)
# Add notes by typing/pasting
mtabe add mynotes -t
# Add notes from a YouTube video
mtabe add physics-lecture -y "https://youtube.com/watch?v=xxxxx"
# Add notes from a webpage
mtabe add chemistry-notes -w "https://example.com/chemistry-lesson"
# Add notes from a local file
mtabe add math-formulas -l "path/to/your/file.pdf"# Create flashcards from saved notes
mtabe flash -f mynotes
# Create flashcards directly from YouTube
mtabe flash -y "https://youtube.com/watch?v=xxxxx"
# Create flashcards from a webpage
mtabe flash -w "https://example.com/lesson"
# Create flashcards from a local file
mtabe flash -l "path/to/your/file.pdf"# Generate test from saved notes
mtabe test -f mynotes
# Generate test from YouTube content
mtabe test -y "https://youtube.com/watch?v=xxxxx"
# Generate test from a webpage
mtabe test -w "https://example.com/lesson"
# Generate test from a local file
mtabe test -l "path/to/your/file.pdf"# Chat about saved notes
mtabe chat -f mynotes
# Chat about YouTube content
mtabe chat -y "https://youtube.com/watch?v=xxxxx"
# Chat about webpage content
mtabe chat -w "https://example.com/lesson"
# Chat about local file content
mtabe chat -l "path/to/your/file.pdf"- Text files (.txt)
- PDF documents (.pdf)
- Word documents (.docx)
- Excel spreadsheets (.xlsx, .xls, .xlsm)
- PowerPoint presentations (.pptx)
- CSV files (.csv)
On first use, MTABE will prompt you to:
- Enter your Groq API key (get it from Groq Console)
- Provide your name
- Specify your education level
- Define your area of focus (IT, CS, Science, etc.)
This information helps MTABE personalize your learning experience.
- When requesting flashcards, specify the number you want (e.g., "Give me 10 cards")
- For tests, you can specify question types:
- Multiple choice
- True/false
- Essay
- Fill in the blank
- Short explanation
- Short answer
- Mix of different types
- Test results include individual question scores and total test score
- Chat mode allows natural conversation about your study materials
# Create 10 multiple choice flashcards from a YouTube lecture
mtabe flash -y "https://youtube.com/watch?v=xxxxx"
# Generate a mixed test with 5 questions from saved notes
mtabe test -f chemistry-notes
# Add notes from a PDF textbook
mtabe add chapter5 -l "textbook/chapter5.pdf"
# Start a chat session about your physics notes
mtabe chat -f physics-notes