Skip to main content

c

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.2.tar.gz (3.1 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.2-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: watcmd-0.1.2.tar.gz
  • Upload date:
  • Size: 3.1 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.2.tar.gz
Algorithm Hash digest
SHA256 7e072e8b76a7c21c7e4cac83375a4e9f95993c66ea6a07a2795c054516540106
MD5 fe97d40c6ee83a6450b671793d38bdf6
BLAKE2b-256 21c110a4e8fd02b7ab7f9b33df0db6c258d03a311da15e52bdd3854c6d40d4f9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: watcmd-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b9bf18b61d7b5b2850ccad305a27e857243fff38273388920de76599631e57a4
MD5 933066d209653b532c57fe9855cdee74
BLAKE2b-256 a926565f3143f810c47ef13da435ea96cf3b46b4eed4e41e8669b049e3e2fc0d

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