A minimal Hy utility library, using mostly the standard libraries.
Project description
🦑 Hyjinx 🦑
Some Hy convenience things. Compatible with Hy 0.28.0.
Hylights
- REPL syntax highlighting (put
(import hyjinx.source [hylight]) (setv repl-output-fn hylight)
in your .hyrc) - pretty tracebacks with correct syntax highlighting for hy or python
- print/get/edit source code of a function, module etc.
defmethod
(ifmultimethod
is installed)- numpy array pretty printing
- a zmq lazy pirate protocol
- a minimal ncurses class
- in-repl code analysis and discussion using LLMs
Install
$ pip install -U hyjinx
or, with optional dependencies,
$ pip install -U hyjinx[zmq]
$ pip install -U hyjinx[llm]
To install offline hy/hyrule documentation,
$ hy -m hyjinx.docs
Optional dependencies
You can install with the [zmq]
option which also installs ecdsa, pyzmq and zstandard for the zmq server/client
You can install with the [llm]
option which also installs openai and lets you discuss code objects with ChatGPT or a locally-served LLM (via TabbyAPI or similar).
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
hyjinx-0.28.13.tar.gz
(19.0 kB
view hashes)
Built Distribution
hyjinx-0.28.13-py3-none-any.whl
(21.9 kB
view hashes)