Metadata-Version: 2.1
Name: openai-quickstart-python
Version: 0.3.0
Summary: qualcosa  da  dichiarare come  descrizione
Author: flavio
Author-email: flavio.joshua@gmail.com
Requires-Python: >=3.9,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: autopep8 (==1.6.0)
Requires-Dist: certifi (==2021.10.8)
Requires-Dist: charset-normalizer (==2.0.7)
Requires-Dist: click (==8.0.3)
Requires-Dist: et-xmlfile (==1.1.0)
Requires-Dist: flask (==2.0.2)
Requires-Dist: idna (==3.3)
Requires-Dist: itsdangerous (==2.0.1)
Requires-Dist: jinja2 (==3.0.2)
Requires-Dist: markupsafe (==2.0.1)
Requires-Dist: openai (==0.19.0)
Requires-Dist: openpyxl (==3.0.9)
Requires-Dist: pandas (==1.3.4)
Requires-Dist: pandas-stubs (==1.2.0.35)
Requires-Dist: pycodestyle (==2.8.0)
Requires-Dist: python-dateutil (==2.8.2)
Requires-Dist: python-dotenv (==0.19.2)
Requires-Dist: pytz (==2021.3)
Requires-Dist: requests (==2.26.0)
Requires-Dist: six (==1.16.0)
Requires-Dist: toml (==0.10.2)
Requires-Dist: tqdm (==4.62.3)
Requires-Dist: urllib3 (==1.26.7)
Requires-Dist: werkzeug (==2.0.2)
Description-Content-Type: text/markdown

# OpenAI API Quickstart - Python example app

This is an example pet name generator app used in the OpenAI API [quickstart tutorial](https://beta.openai.com/docs/quickstart). It uses the [Flask](https://flask.palletsprojects.com/en/2.0.x/) web framework. Check out the tutorial or follow the instructions below to get set up.

## Setup

1. If you don’t have Python installed, [install it from here](https://www.python.org/downloads/).

2. Clone this repository.

3. Navigate into the project directory:

   ```bash
   $ cd openai-quickstart-python
   ```

4. Create a new virtual environment:

   ```bash
   $ python -m venv venv
   $ . venv/bin/activate
   ```

5. Install the requirements:

   ```bash
   $ pip install -r requirements.txt
   ```

6. Make a copy of the example environment variables file:

   ```bash
   $ cp .env.example .env
   ```

7. Add your [API key](https://beta.openai.com/account/api-keys) to the newly created `.env` file.

8. Run the app:

   ```bash
   $ flask run
   ```

You should now be able to access the app at [http://localhost:5000](http://localhost:5000)! For the full context behind this example app, check out the [tutorial](https://beta.openai.com/docs/quickstart).

