Skip to main content

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 unreasonably_long

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


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.0.post1.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

xontrib_uhu-0.1.0.post1-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file xontrib_uhu-0.1.0.post1.tar.gz.

File metadata

  • Download URL: xontrib_uhu-0.1.0.post1.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

Hashes for xontrib_uhu-0.1.0.post1.tar.gz
Algorithm Hash digest
SHA256 36794f5a0e19061cc628660befef62b0ca9a967caa1f19c560e1679395fde491
MD5 c8f243cebf85d2167157389802983e5d
BLAKE2b-256 7eed64e4972c21fa14072c30e55fd3a390acf13d3785843d51b3b31ae017bfb1

See more details on using hashes here.

File details

Details for the file xontrib_uhu-0.1.0.post1-py3-none-any.whl.

File metadata

  • Download URL: xontrib_uhu-0.1.0.post1-py3-none-any.whl
  • Upload date:
  • Size: 6.1 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

Hashes for xontrib_uhu-0.1.0.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 5b457b0976ba8b91477b518dcc444b16934066c3fbf99a5c49e9aef48e992ae3
MD5 00ba25e80bf107d9259cd7d5735f6990
BLAKE2b-256 4a110d2aef5c3acdb4d8b90ea5644dfebe4c702b1818f3cfa5451da67affb421

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page