Skip to main content

A Linux command generator and assistant using OpenAI GPT-3.5-turbo

Project description

StallmanGPT

StallmanGPT is a Linux command generator and assistant using OpenAI GPT-3.5-turbo. It generates Linux commands based on user input and provides explanations for the generated commands. Users can choose to execute the generated command if it meets their requirements.

Installation

Install StallmanGPT using pip:

pip install stallmangpt

You will also need an API key for OpenAI. Set the OPENAI_API_KEY environment variable with your OpenAI API key:

export OPENAI_API_KEY=your_openai_api_key

Usage

To use StallmanGPT, run the following command with your desired text as an argument:

stallmangpt "your desired text"

For example:

stallmangpt "find all .md files and list them"

StallmanGPT will generate a Linux command that accomplishes the requested task, provide an explanation of the command, and prompt you to execute the command or not.

Features

  • Generates Linux commands based on user input.
  • Provides explanations for the generated commands.
  • Allows users to choose whether to execute the generated command or not.
  • Implements error handling for OpenAI API usage limits and confidence rating parsing.
  • Limits the number of user-initiated retries to 3.

License

This project is licensed under the MIT License.

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

stallmanGPT-1.0.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

stallmanGPT-1.0.0-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file stallmanGPT-1.0.0.tar.gz.

File metadata

  • Download URL: stallmanGPT-1.0.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for stallmanGPT-1.0.0.tar.gz
Algorithm Hash digest
SHA256 1c8c8c96f6bf41396d98abb0563dae7896207fdfe37d26e4ff8173c06cfc6b79
MD5 176baf288c01dafa1a825407668bef59
BLAKE2b-256 ae66b5d4679c67878e944c65f02a79de76679b0d72f677d89df87abda4ecb108

See more details on using hashes here.

File details

Details for the file stallmanGPT-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: stallmanGPT-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for stallmanGPT-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f7d911e51ee747af486e82d1664e6fcecd97fde73e501d9b965aafe01bf558e3
MD5 335727c1ce75f2745f5b9e5e0fcd13e5
BLAKE2b-256 1179a4ff5b59ae598ac0a7519bf202b29068bc090865d1dc5c613ab0f0adf0d4

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