Skip to main content

A lightweight terminal assistant to give a natural language interface to your terminal commands

Project description

Termy : Your Terminal Assistant

A lightweight terminal assistant to give a natural language interface to your terminal commands. It allows you to authenticate and connect to a google sheet that has all the frequently used commands and their natural language queries. This way all the members of the organisation can connect to this central repository and easily manage the configured commands. Termy also has a interface with GPT-3 from OpenAI.

How to install

Thanks to pip! its as simple as :

pip install --upgrade pip
pip install termy

How to Use Termy

Step 1: Configure Termy

termy --configure

You will be asked to give the link of the google sheet containing the commands and queries. After that it will authenticate with your google account to access the sheet in case it is a protected file. This is a sample sheet for reference, follow the same format while you create your google sheet.

Note: If your google sheet already has the sharing settings set to allow view access for anyone on the internet, termy would not ask for google authentication since it is not required.

Step 2: Search commands using Termy

temry <search query>

For eg:
termy check the logs of service x
termy is service abc up?
termy shutdown in 5 mins
termy sort files by their sizes

Step 3: Update data from google sheet

termy --update
This will sync the contents of the google sheet in your local system. Execute this when you make changes to your google sheet.

Termy GPT-3 Integration

Termy has a feature to connect with GPT-3 API. Using GPT-3, you can convert any natural language query into a terminal command. For this feature, you would need to sign up for the GPT-3 API KEY. Sign up here for getting a free API Key.

Usage: termy --gpt3 <query>

For eg: termy --gpt3 find files which are bigger than 50MB in my home folder

would trigger the command. find ~/ -size +50M

Contribute and Make it better

Any form of contribution is welcome. From finding and reporting bugs to giving feedback to suggesting cool features to building out cool features. Check out CONTRIBUTING.md for more details.

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

termy-0.0.17.tar.gz (15.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

termy-0.0.17-py3-none-any.whl (18.4 kB view details)

Uploaded Python 3

File details

Details for the file termy-0.0.17.tar.gz.

File metadata

  • Download URL: termy-0.0.17.tar.gz
  • Upload date:
  • Size: 15.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.12

File hashes

Hashes for termy-0.0.17.tar.gz
Algorithm Hash digest
SHA256 1c1b03048d3d78871cfa37895363856ac06d5cd872ca0e0649185a9a7d50a461
MD5 6972ec9ec88f1f906f6c2a6e4e395508
BLAKE2b-256 4f320380fff01d26a6395f021e51a85a341ca546b71b11cf29803456b85d9e3b

See more details on using hashes here.

File details

Details for the file termy-0.0.17-py3-none-any.whl.

File metadata

  • Download URL: termy-0.0.17-py3-none-any.whl
  • Upload date:
  • Size: 18.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.12

File hashes

Hashes for termy-0.0.17-py3-none-any.whl
Algorithm Hash digest
SHA256 0ebf1fb84a09b4ae58d3ba9211ac5ff4f6b0df6c256e301b54886c7a033ee2c0
MD5 1f50c8c9fc6629c054ea4a5daa6a63b7
BLAKE2b-256 e408f5d2e04eb71d44372412154f75b32d078ba9e16ae870f761617a0e679e47

See more details on using hashes here.

Supported by

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