Generate shell commands using OpenAI models.
Project description
Shell Craft
Project for generating shell commands using OpenAI models.
How to install
pip install openai-shell-craft
- Create a file called
config.json
and put your OpenAI API key in it. (See below)
or
- Clone the repository
- Install the requirements using
pip install -r requirements.txt
pip install .
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for openai_shell_craft-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b53b426968a6a55b83ab01e32668e267ba04abf461bf5af792f9db113e3accc |
|
MD5 | b19fcad6d98db1f4f2eeedc1956b98ff |
|
BLAKE2b-256 | ed63abf8c286909f450e17606d8228054fae876106504521f59ac848efeb5435 |