ProGPT - Python SDK for ChatGPT Conversations
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:
- Login to https://chat.openai.com
- Open https://chat.openai.com/api/auth/session
- 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.
Metadata
Release files for ProGPT 1.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| progpt-1.0.8.tar.gz | 4.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| progpt-1.0.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.8 kB
Release files / progpt-1.0.8.tar.gz
| Download URL | progpt-1.0.8.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
50b6fcebf2e496f39438ac0150ed56862514fcb4aa81f076019e544b31f87064
|
|
BLAKE2b-256 checksum How to use checksums |
04e8289b4e597d8633a7217b2dce42d595c1d0d6b072d88ae7cb3c469a45cbf0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / progpt-1.0.8-py3-none-any.whl
| Download URL | progpt-1.0.8-py3-none-any.whl |
|---|---|
| Size | 6.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
183ae137f056ed9c3aafe17fbcd28565c64894d958446b52b9a984c1a00fdf35
|
|
BLAKE2b-256 checksum How to use checksums |
9f9127b822b86f9088a3d54fb7bf85d409ffb166fe2444c707e13ab37eba242c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|