Skip to main content

"The ChatGPT Requests module is a Python package that provides a convenient interface for making requests to the ChatGPT language model."

Project description

pythonGPT

ChatGPT Requests Module

The ChatGPT Requests module is a Python package that provides a convenient interface for making requests to the ChatGPT language model. It abstracts away the complexity of interacting with the model's API, allowing developers to easily integrate ChatGPT into their applications.

Key Features:

  • Simple API: The module provides a high-level API that simplifies the process of sending messages and receiving responses from the ChatGPT model.
  • Stateful Conversations: It supports stateful conversations, enabling users to have multi-turn interactions by maintaining context across messages.
  • Error Handling: The module includes robust error handling to gracefully handle API errors and timeouts, ensuring a reliable integration.

Usage Example:

from pythonGPT import PythonGPT

chatgpt = ChatGPT(api_key='your-api-key')

# Making a request
response = chatgpt.request("Hello, how are you?")
print(response)

# Submit multiple requests by txt file
response = chatgpt.requests('file.txt')
print(response)




MIT License

Copyright (c) 2023 Ahmed Sheded

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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

pythonGPT3-1.0.0.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

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

pythonGPT3-1.0.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file pythonGPT3-1.0.0.tar.gz.

File metadata

  • Download URL: pythonGPT3-1.0.0.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for pythonGPT3-1.0.0.tar.gz
Algorithm Hash digest
SHA256 177343dee0b9a40356a97a3e986d2ccb0938ef413a40f70efc56129b27fc777c
MD5 4b6b71b18d8dd8ac1fd0b67e0fb324f3
BLAKE2b-256 a7ab86bfcf305583ad0dedd03bc154e93282eabc519c6bf2688623a2e37c8d54

See more details on using hashes here.

File details

Details for the file pythonGPT3-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: pythonGPT3-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for pythonGPT3-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2b7bba1939c08d3bc95ce883e74a27ec6155c42c7fa34094e4d175102c836fd2
MD5 8edff1d22426742d79cdf607f77b6f17
BLAKE2b-256 cba6dd6a49aa2d1a0f53eae38bc7bd18d945bca0a081b8bf154e0e14e4132f2c

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