Skip to main content

❄️ Python Package To Access GPT-3.5 Free Model

Project description

ProGPT - Python SDK for ChatGPT Conversations

PyPI PyPI - Python Version Downloads

ChatGPT

ProGPT is an open-source Python client for ChatGPT conversations, providing a simple interface for generative and conversational workflows.

Both Generative & Conversation modes are supported.

📦 Installation

$ pip install progpt

🔑 Authentication

In your browser:

  1. Login to https://chat.openai.com
  2. Open https://chat.openai.com/api/auth/session
  3. Copy the value of accessToken

🚀 Generative Mode

Answers individual prompts without maintaining conversation history.

from ProGPT import Generative

bot = Generative(access_token)

print(bot.prompt("who invented electricity?"))

💬 Conversation Mode

Creates a conversation thread and maintains chat history across prompts.

from ProGPT import Conversation

bot = Conversation(access_token)

print(bot.prompt("hello"))
print(bot.prompt("how are you?"))

⚡ Usage Considerations

ChatGPT web services may enforce request limits depending on account status and usage patterns. Applications should implement appropriate retry logic and rate limiting when necessary.

❤️ Support Me

If you're benefitting from my work and wish to support me, please consider visiting this link:

👮 Legal Notice

This project is an independent third-party library and is not affiliated with or endorsed by OpenAI.

Users are responsible for ensuring their usage complies with applicable terms of service, policies, and local regulations.

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

progpt-1.0.7.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

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

progpt-1.0.7-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file progpt-1.0.7.tar.gz.

File metadata

  • Download URL: progpt-1.0.7.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for progpt-1.0.7.tar.gz
Algorithm Hash digest
SHA256 abfdcf7a4ce998a2ad1157c0b7b05ff67c0666a508a61d2949b03ef5f0a64c6c
MD5 3b25d13974a330d0e1c5e99d2186cec5
BLAKE2b-256 09be196b72e1399acee985143786d567259467f60ebfe0df543791f2c05b6e8a

See more details on using hashes here.

File details

Details for the file progpt-1.0.7-py3-none-any.whl.

File metadata

  • Download URL: progpt-1.0.7-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for progpt-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 23453216bb0f0b084b5312d8e0893d355772f26b84c81e387f5fb62ca350c4b3
MD5 e3935793bd32c851df52a4a98c7e6cb5
BLAKE2b-256 c9de7a7d04949f373bbe96ee527784491d4281ad6daae0972f03e5cdb6ce4d4b

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