An AI-powered CLI for adding notes and generating flashcards, tests, and chat summaries.
Project description
MTABE CLI - Your AI Study Assistant 🎓
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.
Installation
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
Features
- 📝 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.)
Usage
Adding Study Notes
# 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"
Creating Flashcards
# 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"
Generating Tests
# 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 with AI Tutor
# 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"
Supported File Formats
- Text files (.txt)
- PDF documents (.pdf)
- Word documents (.docx)
- Excel spreadsheets (.xlsx, .xls, .xlsm)
- PowerPoint presentations (.pptx)
- CSV files (.csv)
First-Time Setup
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.
Tips for Best Results
- 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
Example Commands
# 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
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
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 mtabe-1.9.0.tar.gz.
File metadata
- Download URL: mtabe-1.9.0.tar.gz
- Upload date:
- Size: 16.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
95d96f9a0ea525d00377d5cbd9df97c4026b57c9fe1d56619fd826c4f34dfdeb
|
|
| MD5 |
21d01b7041f0562a7d3f76f74b4592ff
|
|
| BLAKE2b-256 |
9671a23852d2d7da4d91ab433277ffaccdb54e5f2d0bbf717a8967ae41279de1
|
File details
Details for the file mtabe-1.9.0-py3-none-any.whl.
File metadata
- Download URL: mtabe-1.9.0-py3-none-any.whl
- Upload date:
- Size: 27.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
728a6e85bee92cb000ef80d6e87e0f7d297f3e219f99c7eea8d9325ade59cc49
|
|
| MD5 |
ac3e3380a38e959ca2e738ace39a660e
|
|
| BLAKE2b-256 |
11b5dc893970901db131b5cda504645fa741f2960690be528e8ab5cb003911eb
|