hyjinx


Namehyjinx JSON
Version 0.28.23 PyPI version JSON
download
home_pageNone
SummaryA minimal Hy utility library, using mostly the standard libraries.
upload_time2024-04-08 10:15:02
maintainerNone
docs_urlNone
authorNone
requires_python>=3.11
licenseMIT License Copyright (c) 2024 the authors. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords hy hylang utilities zeromq llm openai
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ## 🦑 Hyjinx

*Functions and macros useful for modern living in the [Hy](http://hylang.org) 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

```bash
$ pip install -U hyjinx
```

or, with optional dependencies,
```bash
$ pip install -U hyjinx[zmq]
$ pip install -U hyjinx[llm]
```

To install offline hy/hyrule documentation,
```bash
$ hy -m hyjinx.docs
```

See hyjinx.hyrc for example usage.


### Optional dependencies

You can install with the `[zmq]` option which also installs ecdsa, [pyzmq](https://pypi.org/project/pyzmq/) and [zstandard](https://pypi.org/project/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).

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "hyjinx",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.11",
    "maintainer_email": null,
    "keywords": "hy, hylang, utilities, zeromq, llm, openai",
    "author": null,
    "author_email": "Ati Sharma <ati+hyjinx@agalmic.ltd>",
    "download_url": "https://files.pythonhosted.org/packages/5b/a8/e78946f8ca387af33f3d56fbc1bebc5b8b2e307c78f44677b22bea927c18/hyjinx-0.28.23.tar.gz",
    "platform": null,
    "description": "## \ud83e\udd91 Hyjinx\n\n*Functions and macros useful for modern living in the [Hy](http://hylang.org) REPL.*\n\nCompatible with Hy 0.28.0.\n\n\n### Hylights\n\n- REPL syntax highlighting (put `(import hyjinx.source [hylight]) (setv repl-output-fn hylight)` in your .hyrc)\n- pretty tracebacks with correct syntax highlighting for hy or python\n- print/get/edit source code of a function, module etc.\n- in-repl code analysis and discussion using LLMs\n- `defmethod` (if `multimethod` is installed)\n- numpy array pretty printing\n- a zmq lazy pirate protocol\n- a minimal ncurses class\n\n\n### Modules\n\n- hyjinx.lib: a smorgasbord of convenience functions.\n- hyjinx.source: code inspection.\n- hyjinx.doc: peruse hy documentation.\n- hyjinx.screen: a convenient ncurses wrapper.\n\n- hyjinx.mat: numpy pretty-printing for humans. (requires numpy, jax optional)\n\n- hyjinx.[zmq_client, zmq_server, crypto, wire]: lazy-pirate zmq RPC architecture. (requires zmq, ecdsa, zstandard)\n\n- hyjinx.llm: discuss code with a Large Language Model (AI). TabbyAPI and OpenAI-compatible are supported. (requires openai)\n\n\n### Install\n\n```bash\n$ pip install -U hyjinx\n```\n\nor, with optional dependencies,\n```bash\n$ pip install -U hyjinx[zmq]\n$ pip install -U hyjinx[llm]\n```\n\nTo install offline hy/hyrule documentation,\n```bash\n$ hy -m hyjinx.docs\n```\n\nSee hyjinx.hyrc for example usage.\n\n\n### Optional dependencies\n\nYou can install with the `[zmq]` option which also installs ecdsa, [pyzmq](https://pypi.org/project/pyzmq/) and [zstandard](https://pypi.org/project/zstandard/) for the zmq server/client\n\nYou 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).\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2024 the authors.  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "A minimal Hy utility library, using mostly the standard libraries.",
    "version": "0.28.23",
    "project_urls": {
        "Repository": "https://github.com/atisharma/hyjinx"
    },
    "split_keywords": [
        "hy",
        " hylang",
        " utilities",
        " zeromq",
        " llm",
        " openai"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "877a38b4be46da9c2832d92e935cc8a0d10040cd36ffaa96161f989b9f671349",
                "md5": "5ca43e23de3da7bb5e8460b157f5628c",
                "sha256": "36b478d3086445022a34913f7108197d38284ddb1fdbb0ee109a069a6f7404f9"
            },
            "downloads": -1,
            "filename": "hyjinx-0.28.23-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "5ca43e23de3da7bb5e8460b157f5628c",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.11",
            "size": 26130,
            "upload_time": "2024-04-08T10:15:00",
            "upload_time_iso_8601": "2024-04-08T10:15:00.229797Z",
            "url": "https://files.pythonhosted.org/packages/87/7a/38b4be46da9c2832d92e935cc8a0d10040cd36ffaa96161f989b9f671349/hyjinx-0.28.23-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5ba8e78946f8ca387af33f3d56fbc1bebc5b8b2e307c78f44677b22bea927c18",
                "md5": "b95f9bbfd3fc5d377c2de65176fb26d0",
                "sha256": "849fcd6a98d1bd1e3db3911793c9aca875f740cd979e7a4d3b7b0d1c56ba51db"
            },
            "downloads": -1,
            "filename": "hyjinx-0.28.23.tar.gz",
            "has_sig": false,
            "md5_digest": "b95f9bbfd3fc5d377c2de65176fb26d0",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.11",
            "size": 23487,
            "upload_time": "2024-04-08T10:15:02",
            "upload_time_iso_8601": "2024-04-08T10:15:02.049295Z",
            "url": "https://files.pythonhosted.org/packages/5b/a8/e78946f8ca387af33f3d56fbc1bebc5b8b2e307c78f44677b22bea927c18/hyjinx-0.28.23.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-08 10:15:02",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "atisharma",
    "github_project": "hyjinx",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "hyjinx"
}
        
Elapsed time: 0.23465s