Skip to main content

Actions Status Actions Status Quality Gate Status CodeQL Codacy Badge []

Prompt 🥝 - A ChatGPT CLI

prompt is designed to provide users a command-line interface for the ChatGPT API, which uses OpenAI's GPT language model to generate text based on user input.

The application helps you start a session with ChatGPT so that the context is preserved and longer conversions with contexts are considered. The user's prompts and the responses are sent back to ChatGPT everytime.

The ChatGPT api usage depends on the number of tokens used and it is important that you use the tokens wisely. After a prompt has been answered the application will resend the last prompt and answer in the next prompt, this makes sure you can have a continued conversion with ChatGPT much like using ChatGPT in a single chat session. This makes the token count larger and larger as you continue to chat. If you are not concerned with context use the --clear flag which will save your token usage. Use the model option to add

I hope you find it useful.

Configuration

The application requires you to have an api token to query the OpenAI's ChatGPT api. You can read about and get it here https://platform.openai.com/account/api-keys .

Installation

Install the prompt python package directly from pypi.

  pip install promptcli

I would recommend using pipx instead of pip to install cli applications on you machine.

Usage

Usage: prompt [OPTIONS] COMMAND [ARGS]...

  🥝 A command line application to interact with OpenAI's ChatGPT.

Options:
  --version     Show the version and exit.
  --clear    🌊 Clear the context each round of chat
  --model    🔄 The OpenAI model type.
  --help        Show this message and exit.

Commands:
  update  🔐 Update the OpenAI API key.

Please feel to create issues or request for features. More options and commands will be added to the application in the near future.

Metadata

Release files for promptcli 2.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for promptcli 2.1.0
File Size Uploaded Provenance Actions
promptcli-2.1.0.tar.gz 4.6 kB Without provenance Details for promptcli-2.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for promptcli 2.1.0
File Interpreter ABI Platform Actions
promptcli-2.1.0-py2.py3-none-any.whl Python 2, Python 3 none any Details for promptcli-2.1.0-py2.py3-none-any.whl

Total release size: 9.5 kB

Release files / promptcli-2.1.0.tar.gz

Download URL promptcli-2.1.0.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
5c19fbc641ce197c34ff5490dd214f891a8d3305dcef4d99a2d8156d67d36ce4
BLAKE2b-256 checksum
How to use checksums
d8db55dd6f3c5e7e25460b1edeaf3b916da5a9d58e4d9b1a458263a2004db0e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.18

Release files / promptcli-2.1.0-py2.py3-none-any.whl

Download URL promptcli-2.1.0-py2.py3-none-any.whl
Size 4.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
7fb7a5983c189247afad357924ff0e823c9f089439efa4e82d8416b72666caf3
BLAKE2b-256 checksum
How to use checksums
801c435e618e08b33da982b674f7fbeca6bf68d48a55fd08dcb8455b30949557
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.18

Security for promptcli 2.1.0

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.

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