Skip to main content

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.

Metadata

Release files for stallmanGPT 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for stallmanGPT 1.0.0
File Size Uploaded
stallmanGPT-1.0.0.tar.gz 3.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for stallmanGPT 1.0.0
File Interpreter ABI Platform
stallmanGPT-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 6.4 kB

Release files / stallmanGPT-1.0.0.tar.gz

Download URL stallmanGPT-1.0.0.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
1c8c8c96f6bf41396d98abb0563dae7896207fdfe37d26e4ff8173c06cfc6b79
BLAKE2b-256 checksum
How to use checksums
ae66b5d4679c67878e944c65f02a79de76679b0d72f677d89df87abda4ecb108
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

Release files / stallmanGPT-1.0.0-py3-none-any.whl

Download URL stallmanGPT-1.0.0-py3-none-any.whl
Size 3.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f7d911e51ee747af486e82d1664e6fcecd97fde73e501d9b965aafe01bf558e3
BLAKE2b-256 checksum
How to use checksums
1179a4ff5b59ae598ac0a7519bf202b29068bc090865d1dc5c613ab0f0adf0d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page