Hy is a Lisp-family language implemented as alternative syntax for Python. Hy code becomes Python AST so you can call Python libraries and mix programming styles.
Overview
Hy lets developers write Lisp-style programs that compile into Python abstract syntax trees, so CPython and the wider Python ecosystem remain available underneath. It works as a multi-paradigm general-purpose language compared to Python itself, with Lisp-style macros and simplifications.
Compared to other Lisps, Hy keeps direct access to Python builtins and third-party packages while allowing imperative, functional, and object-oriented code in one project. Installation is through pip; you start a REPL with the hy command or execute .hy files the same way.
A homepage, published docs, community discussion channels, and an online console let you try Hy in a browser. Maintenance and user support are handled through public forums rather than the codebase alone.
Typical workflow is install via pip, run hy for interactive use, or hy myprogram.hy for scripts, with full interoperability between Hy and Python modules in either direction.
Key features
- Compiles to Python AST
- Lisp macros and syntax
- Uses Python libraries directly
- Interactive hy REPL
- Runs .hy script files
- Multi-paradigm style mixing
- pip-based installation
- Web console for trials
Use cases
- Lisp macros on Python runtime
- Metaprogramming in Python projects
- Learning Lisp with Python tooling
- Scripting with s-expression syntax