Skip to main content

🧠 Reverse-Engineered Python Client for ChatGPT Web Conversations

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.8.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.8-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: progpt-1.0.8.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.8.tar.gz
Algorithm Hash digest
SHA256 50b6fcebf2e496f39438ac0150ed56862514fcb4aa81f076019e544b31f87064
MD5 c46c7ff9bd9b337843b0a45d4e2b916d
BLAKE2b-256 04e8289b4e597d8633a7217b2dce42d595c1d0d6b072d88ae7cb3c469a45cbf0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: progpt-1.0.8-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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 183ae137f056ed9c3aafe17fbcd28565c64894d958446b52b9a984c1a00fdf35
MD5 0685d5f71037d6753c2faaaafdf290df
BLAKE2b-256 9f9127b822b86f9088a3d54fb7bf85d409ffb166fe2444c707e13ab37eba242c

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