Skip to main content

A CLI tool to get UNIX commands from text explanations using AI

Project description

watcmd

A CLI tool to get UNIX commands from text explanations using AI

Installation

You can install watcmd directly from PyPI:

pip install watcmd

Setup

After installation, you need to configure your Anthropic API key. You can do this by running:

watcmd setup YOUR_API_KEY

Replace YOUR_API_KEY with your actual Anthropic API key. This will save your API key securely in a configuration file, so you don't need to set it as an environment variable each time.

Usage

Once you've set up your API key, you can use the tool like this:

watcmd your command description

For example:

watcmd to list all files in a directory

The tool will return an explanation of how to perform the task in a UNIX system.

You can also use the explicit query command:

watcmd query your command here

Development

If you want to contribute or modify the tool:

  1. Clone this repository:

    git clone https://github.com/alramalho/watcmd.git
    cd watcmd
    
  2. Install the package in editable mode:

    pip install -e .
    
  3. Make your changes and test them locally.

Publishing to PyPI

To publish updates to PyPI:

  1. Update the version in pyproject.toml
  2. Build the package: python -m build
  3. Upload to PyPI: python -m twine upload dist/*

License

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

Author

Alex Ramalho (@alramalho)

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

watcmd-0.1.3.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

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

watcmd-0.1.3-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file watcmd-0.1.3.tar.gz.

File metadata

  • Download URL: watcmd-0.1.3.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for watcmd-0.1.3.tar.gz
Algorithm Hash digest
SHA256 0ec8e6e0a94bbd93c71b0ecd2d9aee973fc9f72c531449c3e9bd5ffcddfbcd83
MD5 2bc1900b56f8b7e043fde940288c2f5f
BLAKE2b-256 6bc44681081867097bf4aad044b2e9ba523cdb25f844c2dccddfa492e44c7ffd

See more details on using hashes here.

File details

Details for the file watcmd-0.1.3-py3-none-any.whl.

File metadata

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

File hashes

Hashes for watcmd-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0a546f85ae4f16f65e0aa1377df2ec6ac7f77a6b96a6fc95830029ee6174359b
MD5 691c4f29abce659b07559d9b05acca93
BLAKE2b-256 80ab62a3850c0dbc3c781939ffca9a661d3bb42418191c49f5fc62fe1f6a9cea

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