Skip to main content

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.

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)

Source distribution for ProGPT 1.0.8
File Size Uploaded
progpt-1.0.8.tar.gz 4.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ProGPT 1.0.8
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

1.0.8 This release

2 release files

1.0.7

2 release files

1.0.6

3 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

3 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page