Skip to main content

A command line tool that lets an AI do work for you.

Project description

ai-shell-loop

Use openAi's gpt to generate and execute bash commands quickly.

Installation

pip install ai-shell-loop

Open AI Key

Set your api key with export OPENAI_API_KEY='your-api-key'

See the official-docs for more information.

Development Setup

Create environment

sudo apt install python3 python3-pip python3-venv pipx
python3 -m venv venv
source venv/bin/activate  # Activate the virtual environment
pip install -r requirements.txt  # Install dependencies
pip install -r build-requirements.txt  # Install dependencies for doing a build.

Run

With the virtual python environment activated, inside the project root, run python -m ai_shell "echo the current time"

Build

Run python -m build

Install locally

pipx install dist/ai_do-0.1.0-py3-none-any.whl
pipx ensurepath

After this, the ai-do command should be available anywhere.

Deploy to PyPi

twine upload dist/ai_do-0.1.0-py3-none-any.whl -u __token__ -p your_pypi_token

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

ai_shell_loop-0.1.0-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file ai_shell_loop-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: ai_shell_loop-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for ai_shell_loop-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 485d7686616c9b21af767e63cc8712291dcdbece2f1a57576bf29324a6d2f995
MD5 a366c6d1dd52246896d555e7dc7b378f
BLAKE2b-256 834ec6fcc027c181d2526f503ded0592bf05e3f79e1c58040593085e34a72d52

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