Skip to main content

A minimal Hy utility library, using mostly the standard libraries.

Project description

🦑 Hyjinx

Functions and macros useful for modern living in the Hy REPL.

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.
  • in-repl code analysis and discussion using LLMs
  • defmethod (if multimethod is installed)
  • numpy array pretty printing
  • a zmq lazy pirate protocol
  • a minimal ncurses class

Modules

  • hyjinx.lib: a smorgasbord of convenience functions.

  • hyjinx.source: code inspection.

  • hyjinx.doc: peruse hy documentation.

  • hyjinx.screen: a convenient ncurses wrapper.

  • hyjinx.mat: numpy pretty-printing for humans. (requires numpy, jax optional)

  • hyjinx.[zmq_client, zmq_server, crypto, wire]: lazy-pirate zmq RPC architecture. (requires zmq, ecdsa, zstandard)

  • hyjinx.llm: discuss code with a Large Language Model (AI). TabbyAPI and OpenAI-compatible are supported. (requires openai)

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

See hyjinx.hyrc for example usage.

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


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.23.tar.gz (23.5 kB view details)

Uploaded Source

Built Distribution

hyjinx-0.28.23-py3-none-any.whl (26.1 kB view details)

Uploaded Python 3

File details

Details for the file hyjinx-0.28.23.tar.gz.

File metadata

  • Download URL: hyjinx-0.28.23.tar.gz
  • Upload date:
  • Size: 23.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.2

File hashes

Hashes for hyjinx-0.28.23.tar.gz
Algorithm Hash digest
SHA256 849fcd6a98d1bd1e3db3911793c9aca875f740cd979e7a4d3b7b0d1c56ba51db
MD5 b95f9bbfd3fc5d377c2de65176fb26d0
BLAKE2b-256 5ba8e78946f8ca387af33f3d56fbc1bebc5b8b2e307c78f44677b22bea927c18

See more details on using hashes here.

File details

Details for the file hyjinx-0.28.23-py3-none-any.whl.

File metadata

  • Download URL: hyjinx-0.28.23-py3-none-any.whl
  • Upload date:
  • Size: 26.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.2

File hashes

Hashes for hyjinx-0.28.23-py3-none-any.whl
Algorithm Hash digest
SHA256 36b478d3086445022a34913f7108197d38284ddb1fdbb0ee109a069a6f7404f9
MD5 5ca43e23de3da7bb5e8460b157f5628c
BLAKE2b-256 877a38b4be46da9c2832d92e935cc8a0d10040cd36ffaa96161f989b9f671349

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