# ProGPT - Free ChatGPT API
[![PyPI](https://img.shields.io/pypi/v/progpt)](https://pypi.org/project/progpt)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/progpt)]()
[![Downloads](https://static.pepy.tech/badge/progpt/month)](https://pepy.tech/project/progpt)
![ChatGPT](https://img.shields.io/badge/chatGPT-74aa9c?style=for-the-badge&logo=openai&logoColor=white)
I reverse engineered **ChatGPT's Free Web API** and made this simple python package.
Both **Generative** & **Conversation** modes are supported.
[<img style="margin-top: 10px" src="https://www.buymeacoffee.com/assets/img/guidelines/download-assets-sm-1.svg" width="160"/>](https://buymeacoffee.com/diezo)
## Installation
```python
$ pip install progpt
```
### How to get *access_token*?
In your browser:
1. Login to [**chat.openai.com**](https://chat.openai.com)
2. Open [**this page**](https://chat.openai.com/api/auth/session), and you'll see **JSON** data
3. Copy value of **accessToken**
### Generative Mode
Answers individual prompts, doesn't remember past messages.
```python
from ProGPT import Generative
bot = Generative(access_token)
print(bot.prompt("who invented electricity?"))
```
### Conversation Mode
Creates a conversation thread and remembers your chat history.
```python
from ProGPT import Conversation
bot = Conversation(access_token)
print(bot.prompt("hello"))
print(bot.prompt("how are you?"))
```
## Rate Limits
To overcome the free tier's rate limits:
- Add time gap between prompts
- Use multiple accounts
## Donate
Wish to support this project? Please consider donating here:
**PayPal:** [**@gitdiezo**](https://www.paypal.com/paypalme/gitdiezo)
[<img src="https://www.buymeacoffee.com/assets/img/guidelines/download-assets-sm-1.svg" width="150"/>](https://buymeacoffee.com/diezo)
## Legal
This is a third party library and not associated with OpenAI or ChatGPT. It's strictly for educational purposes. You are liable for all the actions you take.
Raw data
{
"_id": null,
"home_page": "https://github.com/diezo/progpt",
"name": "ProGPT",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "progpt,chatgpt,gpt-3.5,python-gpt,python-chatgpt,ai,generative-ai,chatgpt-ai,python-ai,python-generative-ai",
"author": "Deepak Soni",
"author_email": "sonniiii@outlook.com",
"download_url": "https://files.pythonhosted.org/packages/40/23/721725eb6f705b2c9e16a68e89092ad2ab9daf2b7f8b1c834cec074b91e7/ProGPT-1.0.6.tar.gz",
"platform": null,
"description": "# ProGPT - Free ChatGPT API\n\n[![PyPI](https://img.shields.io/pypi/v/progpt)](https://pypi.org/project/progpt)\n[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/progpt)]()\n[![Downloads](https://static.pepy.tech/badge/progpt/month)](https://pepy.tech/project/progpt)\n\n![ChatGPT](https://img.shields.io/badge/chatGPT-74aa9c?style=for-the-badge&logo=openai&logoColor=white)\n\nI reverse engineered **ChatGPT's Free Web API** and made this simple python package.\n\nBoth **Generative** & **Conversation** modes are supported.\n\n[<img style=\"margin-top: 10px\" src=\"https://www.buymeacoffee.com/assets/img/guidelines/download-assets-sm-1.svg\" width=\"160\"/>](https://buymeacoffee.com/diezo)\n\n## Installation\n```python\n$ pip install progpt\n```\n\n### How to get *access_token*?\nIn your browser:\n1. Login to [**chat.openai.com**](https://chat.openai.com)\n2. Open [**this page**](https://chat.openai.com/api/auth/session), and you'll see **JSON** data\n3. Copy value of **accessToken**\n\n\n### Generative Mode\nAnswers individual prompts, doesn't remember past messages.\n\n```python\nfrom ProGPT import Generative\n\nbot = Generative(access_token)\n\nprint(bot.prompt(\"who invented electricity?\"))\n```\n\n### Conversation Mode\nCreates a conversation thread and remembers your chat history.\n\n```python\nfrom ProGPT import Conversation\n\nbot = Conversation(access_token)\n\nprint(bot.prompt(\"hello\"))\nprint(bot.prompt(\"how are you?\"))\n```\n\n## Rate Limits\nTo overcome the free tier's rate limits:\n- Add time gap between prompts\n- Use multiple accounts\n\n## Donate\nWish to support this project? Please consider donating here:\n\n**PayPal:** [**@gitdiezo**](https://www.paypal.com/paypalme/gitdiezo)\n\n[<img src=\"https://www.buymeacoffee.com/assets/img/guidelines/download-assets-sm-1.svg\" width=\"150\"/>](https://buymeacoffee.com/diezo)\n\n## Legal\nThis is a third party library and not associated with OpenAI or ChatGPT. It's strictly for educational purposes. You are liable for all the actions you take.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "\u2744\ufe0f Python Package To Access GPT-3.5 Free Model",
"version": "1.0.6",
"project_urls": {
"Download": "https://github.com/diezo/progpt/archive/refs/tags/v1.0.6.tar.gz",
"Homepage": "https://github.com/diezo/progpt"
},
"split_keywords": [
"progpt",
"chatgpt",
"gpt-3.5",
"python-gpt",
"python-chatgpt",
"ai",
"generative-ai",
"chatgpt-ai",
"python-ai",
"python-generative-ai"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "771a37c8a776035fb41294d85b024c4dd2b7b25ce9800897613fd7be7c03157f",
"md5": "5f9ef47723ea63dec0d7f67742b77945",
"sha256": "79a30a6ded8a5891f50139a09eb805aed5ad68ea609adaca581303dfafea5d48"
},
"downloads": -1,
"filename": "ProGPT-1.0.6-py3-none-any.whl",
"has_sig": false,
"md5_digest": "5f9ef47723ea63dec0d7f67742b77945",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 5903,
"upload_time": "2024-02-11T16:53:06",
"upload_time_iso_8601": "2024-02-11T16:53:06.279272Z",
"url": "https://files.pythonhosted.org/packages/77/1a/37c8a776035fb41294d85b024c4dd2b7b25ce9800897613fd7be7c03157f/ProGPT-1.0.6-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "4023721725eb6f705b2c9e16a68e89092ad2ab9daf2b7f8b1c834cec074b91e7",
"md5": "e17099d0e077384592f5d8ea07b990d2",
"sha256": "c31dcb4ef70a0e34e3ff94fdfe09bd699f8deedcfe3e27b282df39e864534872"
},
"downloads": -1,
"filename": "ProGPT-1.0.6.tar.gz",
"has_sig": false,
"md5_digest": "e17099d0e077384592f5d8ea07b990d2",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 4504,
"upload_time": "2024-02-11T16:53:07",
"upload_time_iso_8601": "2024-02-11T16:53:07.821324Z",
"url": "https://files.pythonhosted.org/packages/40/23/721725eb6f705b2c9e16a68e89092ad2ab9daf2b7f8b1c834cec074b91e7/ProGPT-1.0.6.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-02-11 16:53:07",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "diezo",
"github_project": "progpt",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [
{
"name": "requests",
"specs": []
},
{
"name": "selenium",
"specs": []
},
{
"name": "urllib3",
"specs": []
}
],
"lcname": "progpt"
}