Skip to main content

Generate shell commands using OpenAI models.

Project description

Shell Craft

Project for generating shell commands using OpenAI models.

How to install

  1. pip install openai-shell-craft
  2. Create a file called config.json and put your OpenAI API key in it. (See below)

or

  1. Clone the repository
  2. Install the requirements using pip install -r requirements.txt
  3. pip install .
  4. Create a file called config.json and put your OpenAI API key in it. (See below)

How to use

shell-craft <win:optional> <description> - This will generate a shell command for you based on the description you provide. If you provide the win argument, it will generate a powershell command. Otherwise, it will generate a bash command.

Example

shell-craft This command will print the current date and time
date

Configuration file

config.json

{
    "openai_api_key": "<your secret key>"
}

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • OpenAI for their language models and API.
  • Joel Fourhman for the initial idea, the challenge, and the project name.
  • Chase Montgomery for testing, feedback, and estimated time savings vs manual implementation.

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

openai_shell_craft-0.0.3.tar.gz (3.7 kB view hashes)

Uploaded Source

Built Distribution

openai_shell_craft-0.0.3-py3-none-any.whl (7.2 kB view hashes)

Uploaded Python 3

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