Skip to main content

Natural langauge shell commands.

Project description

shllm

A tool to generate shell commands from ChatGPT and quickly run them on your terminal.

Inspired by this blog post.

Installation

pip install openai pyperclip
#Update for your file location and shell config. Restart terminal.
echo 'export PATH=$PATH:/Dev/shllm' >> ~/.zshrc
echo "export OPEN_API_KEY=your_api_key_here" >> ~/.zshrc

Usage

shllm show how many gigabytes of free space I have left on my hard drive
Command to be copied to clipboard: df -h . | awk 'NR==2 {print $4}'
Do you want to copy this command to the clipboard? (y/n): y
Command has been copied to the clipboard.

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

shllm-0.0.2.tar.gz (1.7 kB view details)

Uploaded Source

Built Distribution

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

shllm-0.0.2-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

Details for the file shllm-0.0.2.tar.gz.

File metadata

  • Download URL: shllm-0.0.2.tar.gz
  • Upload date:
  • Size: 1.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.6 Linux/6.8.0-1014-azure

File hashes

Hashes for shllm-0.0.2.tar.gz
Algorithm Hash digest
SHA256 2deef2db8798a0774ec4bbdb134599a669ce7a8e874f267ab9c073bba6fe05af
MD5 ad53c9417400b01044ef831d1afee1fc
BLAKE2b-256 4099d4a41c7ec12eed9ec4e1789e7f3280b568c7ff4fe6bd73db8b12a3a003d9

See more details on using hashes here.

File details

Details for the file shllm-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: shllm-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 2.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.6 Linux/6.8.0-1014-azure

File hashes

Hashes for shllm-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 797bbe6ccef0aa9932fd705860834044b9c59c77140e001f9dc4f6f5235dfcd3
MD5 06d34a4271929a3c5c79da6fd6b02f18
BLAKE2b-256 0355e1fff6a3bee1b39cf04db2e87628a1d275cc122a8bc94b2d1aa446a1f976

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