Xonsh command shortener
Project description
uhu utility
generate a name using unpaid robot labour
@ buildsystem --build --clean --config ../config/custom/static/1.0.0/custom.yml -o test_build/ webapp/
🔨 Doing some shit...
😴 Wow that was hard
@ uhu # Shorten the command. May take a while the first time, as ollama has to load the model
✨ Last command shorened to 'buildcustom'
@ buildcustom # Use the shortened name!
🔨 Doing some shit...
😴 Wow that was hard
generate a name using unpaid human labour
@ buildsystem --build --clean --config ../config/custom/static/1.0.0/custom.yml -o test_build/ webapp/
🔨 Doing some shit...
😴 Wow that was hard
@ uhu fuck
✨ Last command shorened to 'fuck'
humans will take ai jobs / renaming
@ buildsystem blah blah
🔨 Doing some shit...
😴 Wow that was hard
@ uhu
✨ Last command shorened to 'blowupyourcomputer'
@ uhu build # Don't like the name? Rename it!
✨ Renamed 'blowupyourcomputer' to 'build'
install and config
xpip install xontrib-uhu
# $XONSH_UHU_SYSTEM_PROMPT = "..." # Optional! Only change if you know what you're doing!
# $XONSH_UHU_MAX_LLM_TRIES = 3 # Optional!
# $XONSH_UHU_OLLAMA_URL = "http://ollama.myserver.internal" # Optional!
# MANDATORY (if you want to use it with ollama)! Using a coder model will likely help. 7b is probably enough.
$XONSH_UHU_MODEL_NAME = "qwen2.5-coder:7b"
xontrib load uhu
limitations
Subprocess capture with uhu aliases doesn't work
what does uhu even mean
users hate unreasonablylongcommands
(Not really, I just wanted something which had a short name with the keys close together)
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
xontrib_uhu-0.1.2.tar.gz
(5.2 kB
view details)
Built Distribution
File details
Details for the file xontrib_uhu-0.1.2.tar.gz
.
File metadata
- Download URL: xontrib_uhu-0.1.2.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.10.12 Linux/5.15.0-124-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8bc6f1d7814d9cd4ace7d9e6a2592c828970451e10e9de064c387c7181c2988e |
|
MD5 | 5e5a8b9bd23f653482ff57db1027dbe3 |
|
BLAKE2b-256 | 80767bc4ce0ae0287d665420728bd46678eb9ec9007e104ca8f6e22e26303c56 |
File details
Details for the file xontrib_uhu-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: xontrib_uhu-0.1.2-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.10.12 Linux/5.15.0-124-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0059c0a059eb5d843864b1bd0950e795084f4b039694464ce546926bbeda7cd6 |
|
MD5 | 88230176cba9a74da2c713d6d92efd89 |
|
BLAKE2b-256 | afb90789e859bbba76aa65f89c26f9d79d370f5d1e26defde321b336c5105723 |