pycli-gpt-demo.mp4
PyCli-GPT is a Python CLI works like Chat-GPT and is an application that provides helpful information, answer questions, and assist users with various tasks using the power of OpenAI's GPT (Generative Pre-trained Transformer) technology. Whether you need information, creative ideas, or assistance with specific tasks, PyCli-GPT is here to help, all within the familiar confines of your terminal.
PyCli-GPT was created as a demonstration project for Software Engineering students at Flatiron School. It serves as a showcase of various software engineering and Python programming concepts, including the separation of concerns, Object Relational Mappers, entity relationships, database evolution with migrations, database population using seed data, and database constraints using SQLAlchemy and Alembic. This project was also geared toward showcasing fun PyPi packages like:
This project is meant for you to run locally on your own computer
To use this application, you will need to obtain a paid API key from OpenAI.
Learn more about OpenAI's API billing here: OpenAI Pricing
This project utilizes the GPT-3.5 Turbo model.
Head over to OpenAI's website and sign up for an account:
Once you have signed up and are logged in, click on the "Usage" option in the left navigation pane. Click on the "set up paid account" link:
Click on the "Start payment plan" button and select the "Individual" option:
Fill out the credit card form and submit.
Click on the "View API Keys" option in the dropdown. Then, click on the "Create new secret key" button:
Name your new API key:
Copy your new API key and paste it somewhere safe. We will be using it in the Installation section:
This project uses Python version 3.8.13.
- Fork and clone this repository onto your computer.
- In the root directory, create a .env file and add the following line: OPENAI_API_KEY=REPLACE_WITH_YOUR_OPENAI_API_KEY
- In the terminal, run:
pipenv install && pipenv shell
cd
into thelib
directory and runalembic upgrade head
- In the
lib
directory, run:python cli.py