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 | Provenance | Actions |
|---|---|---|---|---|
| progpt-1.0.8.tar.gz | 4.7 kB | Without provenance | Details for progpt-1.0.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| progpt-1.0.8-py3-none-any.whl | Python 3 | none | any | Details for progpt-1.0.8-py3-none-any.whl |
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
|
Security for ProGPT 1.0.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.