Skip to main content

Command Line AI- this tool lets you call ChatGPT from a CLI

Project description

clai

Command Line AI- this tool lets you call ChatGPT from a CLI.

I'm designing this to be used in conjunction with a fork of shin, which will allow you to call clai from any textbox in your computer. Finally, chatGPT everywhere!


PyPI version Test Status Lint Status codecov Code style: black Imports: isort


Read Latest Documentation - Browse GitHub Code Repository


Installation

  1. The recommended installation method is to use pipx, via

    pipx install clai
    
  2. Then go to OpenAI and create an API Key. Once it's generated, add the following to your .bashrc:

    export OPENAI_API_TOKEN=<paste here>
    

Usage

Invoke the assistant with the format clai <your prompt>. For example:

clai Write an email saying I'll be late to work because I'm working on commandline AIs

Development

Installing python dependencies

poetry install

Running Tests

pytest .

Formatting Code

bash .github/format.sh

Linting

bash .github/check_lint.sh

TODO: remove references to tests?

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

clai-0.1.0.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

clai-0.1.0-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file clai-0.1.0.tar.gz.

File metadata

  • Download URL: clai-0.1.0.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0 CPython/3.10.4 Linux/5.19.0-35-generic

File hashes

Hashes for clai-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a5813fa721903f960f607404547e17010948fac6a1485cae483f69b3b7fc40a1
MD5 dc4911e61ca64495808d45a842c047ba
BLAKE2b-256 ca0d05465c86ade9f2d431871396b6804e57257a5a0bf562941b4465fbe98322

See more details on using hashes here.

File details

Details for the file clai-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: clai-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0 CPython/3.10.4 Linux/5.19.0-35-generic

File hashes

Hashes for clai-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0e1c0432a8b5f249b6c52c135ef41d4b1b51dd686b9644ccc230028faf50af3c
MD5 767ef02e5e7fd0ad6fcf976a63929d8d
BLAKE2b-256 b23054c10b8cd971101ee35b97630103fccb9c84f92274bc2f22ada68c6302b6

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