Skip to main content

Interact with the OpenAI ChatGPT API

Project description

chap - A Python interface to chatgpt, including a terminal user interface (tui)

Chap screencast

installation

Install with e.g., pipx install .

commandline usage

  • chap-cli "What advice would you give a 20th century human visiting the 21st century for the first time?

interactive terminal usage

  • chap-tui

Sessions & Commandline Parameters

Details of session handling & commandline arguments are in flux.

By default, a new session is created. It is saved to the user's cache directory (e.g., ~/.cache on linux/unix systems).

You can specify the session filename for a new session with -n or to re-open an existing session with -s. Or, you can continue the last session with --last.

You can set the "system message" with the -S flag.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

chap-0.0.5.tar.gz (332.0 kB view details)

Uploaded Source

Built Distribution

chap-0.0.5-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file chap-0.0.5.tar.gz.

File metadata

  • Download URL: chap-0.0.5.tar.gz
  • Upload date:
  • Size: 332.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for chap-0.0.5.tar.gz
Algorithm Hash digest
SHA256 345ee44bad84d6f606d1d53e357303f92091e1a3f348734d6b5dc1673cafc332
MD5 044595a5aa132fb09795defc3ed24772
BLAKE2b-256 c49e4bc47eb6880be56e0731170eaf1d4dbefdf300250bf921081ac72e3a8e61

See more details on using hashes here.

File details

Details for the file chap-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: chap-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for chap-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 a076e2c51651384fd56e15c71750ae4920d31b0fdce1541d3e544e38fd6e2e75
MD5 0efa99c07a0dbe9a566c16583e5a3663
BLAKE2b-256 f1fadf5c3c3d35faea6cdde7ce726e3376bc3729a3055c0a57f2ab7d50639b1d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page