Skip to main content

qualcosa da dichiarare come descrizione

Project description

OpenAI API Quickstart - Python example app

This is an example pet name generator app used in the OpenAI API quickstart tutorial. It uses the Flask 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.

  2. Clone this repository.

  3. Navigate into the project directory:

    $ cd openai-quickstart-python
    
  4. Create a new virtual environment:

    $ python -m venv venv
    $ . venv/bin/activate
    
  5. Install the requirements:

    $ pip install -r requirements.txt
    
  6. Make a copy of the example environment variables file:

    $ cp .env.example .env
    
  7. Add your API key to the newly created .env file.

  8. Run the app:

    $ flask run
    

You should now be able to access the app at http://localhost:5000! For the full context behind this example app, check out the tutorial.

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

openai_quickstart_python-0.4.0.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openai_quickstart_python-0.4.0-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file openai_quickstart_python-0.4.0.tar.gz.

File metadata

  • Download URL: openai_quickstart_python-0.4.0.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.9.2 Linux/5.10.0-23-amd64

File hashes

Hashes for openai_quickstart_python-0.4.0.tar.gz
Algorithm Hash digest
SHA256 09bfdb53e608a982453dcc9a58d4473ba48b42adc2c6c179d1fc3e6d31ef425e
MD5 682b8929650366ae438516d608a5d66a
BLAKE2b-256 35e36879f2911943dc2ddf6a4a5a2785bd86d66a05883f3493b8022543aad6f6

See more details on using hashes here.

File details

Details for the file openai_quickstart_python-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for openai_quickstart_python-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7eb55b4fb53341d92c754c7a3a93796b36a089e7fc7732ad726bf9656074dbe7
MD5 1c246e85bffce63e30c5761807f90c1a
BLAKE2b-256 8859ec6f3831095f21bbf71dc8c37141e48af3526a7f299951303a211c285615

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page