Add your description here
Project description
Dont know how to do something in your terminal?
howto print my system information
And you'll be told!
╭────────────────────────────────────────────────────────────────────────────────╮
│ You can use the `uname -o` command to display your operating system. │
│ │
│ │
│ uname -o │
│ │
│ │
│ This command works with various Unix-like systems, including Linux and macOS. │
│ If you're running a 64-bit kernel on an Apple M1 or ARM-based hardware, it │
│ will return "Darwin" (the underlying OS name for macOS). │
╰────────────────────────────────────────────────────────────────────────────────╯
Installing
howto is available on pypi and can be installed in any manner of ways
pip install howto-ai
pipx install howto-ai
uvx --from howto-ai howto
Note: pre 1.0.0 release are assumed to be unstable and might break or do unexpected things, use wisely
Usage
λ: howto --help
Usage: howto [OPTIONS] [QUERY]...
╭─ Arguments ────────────────────────────────────────────────────────────────────╮
│ query [QUERY]... This is what you'd like to ask as a question. Empty │
│ queries will open a prompt. │
│ [default: None] │
╰────────────────────────────────────────────────────────────────────────────────╯
╭─ Options ──────────────────────────────────────────────────────────────────────╮
│ --debug --no-debug Make no requests to llms │
│ [default: no-debug] │
│ --dry-run --no-dry-run Make no requests to llms │
│ [default: no-dry-run] │
│ --config-path --no-config-path Print the default config path │
│ and exit. │
│ [default: no-config-path] │
│ --config-show --no-config-show Print the config and exit. │
│ [default: no-config-show] │
│ --install-completion Install completion for the │
│ current shell. │
│ --show-completion Show completion for the current │
│ shell, to copy it or customize │
│ the installation. │
│ --help Show this message and exit. │
╰────────────────────────────────────────────────────────────────────────────────╯
Backends
howto uses 3rd party services as backends. By default, It's configured to use ollama which is
expected to be running locally (make sure you read their docs). If it is, your howto commands will work.
howto can also be used against popular local, private and public AI APIs including ChatGPT, Gemini and others. To
configure this, you need to edit the config file or use the commands below. Locating the config file can be done with:
howto --config-path
Edit this in your favourite text editor. If this is difficult, please open an Issue and we can help.
General Directions
Set the model you want by using the --set-model flag or updating the config file at .config/howto-ai/config.toml. We use liteLLM for the proxy service, so any supported model will work.
howto --set-model '<provider>/<model>'
or
model = "<provider>/<model>"
# for example
model = "huggingface/facebook/blenderbot-400M-distill" # https://huggingface.co/facebook/blenderbot-400M-distill
# ...
Here are some examples of popular providers and their models:
Ollama
howto --set-model='ollama/deepseek-r1:32b'
howto --set-model='ollama/deepseek-r1:32b'
howto --set-model='ollama/deepseek-r1:32b'
howto --set-model='ollama/deepseek-r1:32b'
Open AI
howto --set-model 'gpt-4o-mini' # https://platform.openai.com/docs/models
howto --set-model 'gpt-4o'
...
then export your OPENAI_API_KEY for that session (in your .envrc or .bashrc or wherever)
export OPENAI_API_KEY="<your key here>" # https://platform.openai.com/api-keys
Hugging Face
howto --set-model 'huggingface/Qwen/Qwen2.5-Coder-32B-Instruct' # https://huggingface.co/Qwen/Qwen2.5-Coder-32B-Instruct
howto --set-model 'huggingface/facebook/blenderbot-400M-distill' # https://huggingface.co/facebook/blenderbot-400M-distill
...
then export your HUGGINGFACE_API_KEY for that session (in your .envrc or .bashrc or wherever)
export HUGGINGFACE_API_KEY="<your key here>" # https://huggingface.co/docs/hub/security-tokens
and you should be good to go
Anthropic
howto --set-model 'claude-3-opus-latest' # https://docs.anthropic.com/en/docs/about-claude/models
howto --set-model 'claude-3-5-sonnet-latest'
howto --set-model 'claude-3-5-haiku-latest'
...
then export your ANTHROPIC_API_KEY for that session (in your .envrc or .bashrc or wherever)
export ANTHROPIC_API_KEY="<your key here>"
and you should be good to go
Remember AI can produce rubbish code, remember to research the commands
howtospits out
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file howto_ai-0.1.3.tar.gz.
File metadata
- Download URL: howto_ai-0.1.3.tar.gz
- Upload date:
- Size: 259.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
adb038c065d2f399297a131789070c23793d23af97eb301d2f9d7ebd787682d6
|
|
| MD5 |
0e21d3092f283ad411475a30aea491a5
|
|
| BLAKE2b-256 |
95359177005e80f48c12e6914cac78028dffb35328d9a485aa3ff76a7a2eb765
|
Provenance
The following attestation bundles were made for howto_ai-0.1.3.tar.gz:
Publisher:
build-and-publish.yaml on GitToby/howto-ai
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
howto_ai-0.1.3.tar.gz -
Subject digest:
adb038c065d2f399297a131789070c23793d23af97eb301d2f9d7ebd787682d6 - Sigstore transparency entry: 166228379
- Sigstore integration time:
-
Permalink:
GitToby/howto-ai@cc72a0ac36daa1f002918a041b7781f5ae13c5fa -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/GitToby
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build-and-publish.yaml@cc72a0ac36daa1f002918a041b7781f5ae13c5fa -
Trigger Event:
release
-
Statement type:
File details
Details for the file howto_ai-0.1.3-py3-none-any.whl.
File metadata
- Download URL: howto_ai-0.1.3-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6356850cef3c2121d6181ffca78de01dc86237c0357bb6b28e5de5173e0a9cf3
|
|
| MD5 |
ab68189d633a385d96b7be1a8c6bc0e1
|
|
| BLAKE2b-256 |
a4b4705c2c7d00c817770abf6d2daf82e8dce4c364f7a034f8b3b90eb25ac94d
|
Provenance
The following attestation bundles were made for howto_ai-0.1.3-py3-none-any.whl:
Publisher:
build-and-publish.yaml on GitToby/howto-ai
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
howto_ai-0.1.3-py3-none-any.whl -
Subject digest:
6356850cef3c2121d6181ffca78de01dc86237c0357bb6b28e5de5173e0a9cf3 - Sigstore transparency entry: 166228382
- Sigstore integration time:
-
Permalink:
GitToby/howto-ai@cc72a0ac36daa1f002918a041b7781f5ae13c5fa -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/GitToby
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build-and-publish.yaml@cc72a0ac36daa1f002918a041b7781f5ae13c5fa -
Trigger Event:
release
-
Statement type: