Skip to main content

An AI terminal assistant

Project description

PPIG: A simple AI terminal assistant

Example:

  • Input:
 ppig list only directories        

      ls -d */
The command has been copied to the clipboard

➜ 

Make sure your device has some sort of clipboard system such as xclip. If it doesn't you can install it executing:

 sudo apt-get install xclip

Config

ppig uses OpenAI API. In order to use this API you need to be signed up in OpenAI as well as an API key. (get it here)

Once you have your API key, you have two options:

  1. Create a ppig_cfg.yaml file in the directory from which you will call ppig. Choosing this option you won't be able to use ppig outside of that foler.
  2. Create the path ~/.ppig/ppig_cfg.yaml. Choosing this option you will be able to use ppig from any folder.

In both cases, the ppig_cfg.yaml muste be like this:

api_key: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Replace XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX with your API key.

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

ppig-0.2.1.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

ppig-0.2.1-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file ppig-0.2.1.tar.gz.

File metadata

  • Download URL: ppig-0.2.1.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.0 CPython/3.10.6 Linux/5.19.0-35-generic

File hashes

Hashes for ppig-0.2.1.tar.gz
Algorithm Hash digest
SHA256 7e3c986cb81fd7d23974a107ee3cd0b8a57c4ccaaf7acf0cf36597fbbfe37212
MD5 55910f63a816716ca19380c11298ce33
BLAKE2b-256 de850e551aa2f344af9fdb3c71048d0d16a5a5678ecc4ae170244c654e541bc4

See more details on using hashes here.

File details

Details for the file ppig-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: ppig-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.0 CPython/3.10.6 Linux/5.19.0-35-generic

File hashes

Hashes for ppig-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 33eb40790d7f1fe6304f7989638242c3fd08f6ee4f8f26df8269ca02fb92c998
MD5 df12f1bfe7fdd13308206220142aaeca
BLAKE2b-256 6f0173ff3ab250f9fe9b7933c894b7fa6894b782c96a9c72b28bbd0ea950a95c

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