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.1.3.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

ppig-0.1.3-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ppig-0.1.3.tar.gz
  • Upload date:
  • Size: 2.2 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.1.3.tar.gz
Algorithm Hash digest
SHA256 53149325a45142f18e471b0364711e5bdbcd9575428281e02667e60cc46daed4
MD5 baf2bb7ce6d7e125dcf5ca48201ceb54
BLAKE2b-256 8ebb67129c9acbbdb5976dbc3514601e60319ecd8c3144f7c08edd8edd3db875

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ppig-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 2.8 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.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d007131c3f4a12c7017e8ea1f665e394b834ff21623618bf7b90262eaa2435e8
MD5 71b66be5caf4c815b03254c4353d5054
BLAKE2b-256 cc38d73f39fb992c79351e18d00abab6f3fd439ae98be90299d6c846cb6420ba

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