ChatGPT CLI
A simple python CLI wrapper for the ChatGPT API.
Installation
$ pip install chatgpt-api-cli
Setup
$ chatgpt init "your openai API key"
Usage
Single prompts:
$ chatgpt prompt "Explain the current state of the economy as if you're Christopher Moltisanti from the Sopranos"
"Listen up, Tony. The economy? Fuggedaboudit. It's in the shitter. The recession's got us all by the balls, and businesses are falling like dead flies. The GDP's down, unemployment's up - it's a real shitshow. People are struggling just to make ends meet, while the fat cats on Wall Street keep raking in the dough. And we all know who's responsible for this mess - the damn politicians and their crooked deals. I'm telling you, Tone, this whole system is screwed up, and it's getting worse every day. It's enough to make a guy wanna start his own damn business, just so he can make a buck without getting screwed over by the man."
Continuous chat:
$ chatgpt chat
To exit, type `exit` or press CTRL+C
You: why did the chicken cross the road?
ChatGPT: As an AI language model, I don't have access to the context as to why the chicken might cross the road. However, the most common answer to that age-old question has been "to get to the other side."
Metadata
Release files for chatgpt-api-cli 0.2.1
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 |
|---|---|---|---|---|
| chatgpt-api-cli-0.2.1.tar.gz | 3.3 kB | Without provenance | Details for chatgpt-api-cli-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| chatgpt_api_cli-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for chatgpt_api_cli-0.2.1-py3-none-any.whl |
Total release size: 8.9 kB
Release files / chatgpt-api-cli-0.2.1.tar.gz
| Download URL | chatgpt-api-cli-0.2.1.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2ca9cdc7d9204127b8c5642c5b2715c9d27c5eac9c05e296ddb3d0dcf6e84716
|
|
BLAKE2b-256 checksum How to use checksums |
4598dfe8bf7aeb163c340b91c1a4dbca3d8da17230029a6037b8b2ac6255ad6f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.9.6 readme-renderer/37.3 requests/2.28.2 requests-toolbelt/0.10.1 urllib3/1.26.14 tqdm/4.65.0 importlib-metadata/6.0.0 keyring/23.13.1 rfc3986/2.0.0 colorama/0.4.6 CPython/3.11.2
|
Release files / chatgpt_api_cli-0.2.1-py3-none-any.whl
| Download URL | chatgpt_api_cli-0.2.1-py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4733ba23e546c7a6044c70e709da5720b937b809c75b4dfc2af54819e143b22c
|
|
BLAKE2b-256 checksum How to use checksums |
82e6b1cdfde6ad954181c93cdfb3a036ff6b827effbe73e43d16928444a7e065
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.9.6 readme-renderer/37.3 requests/2.28.2 requests-toolbelt/0.10.1 urllib3/1.26.14 tqdm/4.65.0 importlib-metadata/6.0.0 keyring/23.13.1 rfc3986/2.0.0 colorama/0.4.6 CPython/3.11.2
|
Security for chatgpt-api-cli 0.2.1
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.