Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/benderscript/pytutor
Python Tutor using OpenAI's new Assistant APIs
https://github.com/benderscript/pytutor
api assistant example openai python tutor
Last synced: 17 days ago
JSON representation
Python Tutor using OpenAI's new Assistant APIs
- Host: GitHub
- URL: https://github.com/benderscript/pytutor
- Owner: BenderScript
- License: apache-2.0
- Created: 2023-11-07T23:42:38.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-11T01:19:22.000Z (10 months ago)
- Last Synced: 2024-01-11T04:18:07.469Z (10 months ago)
- Topics: api, assistant, example, openai, python, tutor
- Language: Python
- Homepage:
- Size: 12.7 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Python Tutor with OpenAI Assistant API
Python Tutor is a command-line interface program that acts as a personal Python tutor, utilizing the OpenAI Assistant API to interactively teach Python programming.
You can type your Python programs in the terminal and get real-time feedback from the tutor. The tutor will also suggest new exercises based on your progress.
## Description
This program creates a personalized Python learning session, leveraging OpenAI's Assistant API to provide real-time tutoring for Python learners. It is designed for high school students or anyone starting with Python. The tutor tracks user progress and suggests new exercises as the user advances.
## Features
- Interactive CLI for a personalized Python tutoring experience.
- Real-time feedback and exercise suggestion based on user input.
- Use of OpenAI's powerful Assistant API to simulate a Python tutor.## Installation
To install the required dependencies, navigate to the project directory and run:
```bash
pip3 install -r requirements.txt
```### Environment Variables
To run this project, you will need to add the following environment variables to your .env file:OPENAI_API_KEY=Your OpenAI API key.
## Usage
To start the tutoring session, run the following command in your terminal:```bash
python3 home.py
```## Contributing
Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.## License
This project is licensed under the Apache License v2.0. See the LICENSE file for more details.## TODO
Create a nice Streamlit wrapper like in https://github.com/BenderScript/VidBot