Metadata-Version: 2.4
Name: hy-fancy-repl
Version: 1.2.0
Summary: A fancy Hy REPL.
Author-email: Ati Sharma <ati+hy-fancy-repl@agalmic.ltd>
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.
        
Project-URL: Repository, https://github.com/atisharma/hy-fancy-repl
Keywords: hy,hylang,utilities,repl
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Lisp
Classifier: Programming Language :: Hy
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Utilities
Requires-Python: >=3.13
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: AUTHORS
Requires-Dist: hy>=1.2.0
Requires-Dist: hyrule>=1.0.1
Requires-Dist: beautifhy>=1.2.1
Requires-Dist: prompt_toolkit>=3.0.52
Dynamic: license-file

## 🦑 hy-fancy-repl

*A [Hy](https://hylang.org) enhanced REPL.*

Probably compatible with Hy 1.2.0 and later.


### Install

```bash
$ pip install -U hy-fancy-repl
```


### The REPL

The REPL implements multi-line editing, completion, live input validation, live
syntax highlighting, and interactive matplotlib plots.

```bash
$ hy-repl
```

or

```bash
$ hy-fancy-repl
```


The behaviour of the repl may be modified with the following environment
variables.

- `HY_HISTORY`: Path to a file for storing command history. Defaults to `~/.hy-history`.
- `HY_LIVE_COMPLETION`: If set, enables live/interactive autocompletion in a dropdown menu as you type. Defaults to off.
- `HY_PYGMENTS_STYLE`: The name of a pygments style to use for highlighting. Defaults to `lightbulb`.
- `HY_VI_MODE`: If set, enable vi line-editing mode (rather than the default emacs mode).


### Acknowledgements

The REPL uses [pygments](https://pygments.org/) and [prompt-toolkit](https://python-prompt-toolkit.readthedocs.io/).
Plus, of course, [Hy](https://hylang.org), whose REPL `hy-fancy-repl` extends.


### Docs

Try clicking below.

[![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/atisharma/hy-fancy-repl)
