This release is a pre-release and may not be stable for production use.
Lispyn
Write research experiments in Hy (Lisp for Python) and run them directly or as standard Jupyter notebooks.
Lispyn provides macros for PyTorch, NumPy, pandas and Matplotlib while keeping your Python libraries and models.
Why use it for research?
Less boilerplate. For example, the real PyTorch quickstart uses a macro to create separate train, validation and held-out test subsets:
(setv [training validation held-out]
(train-val-test dataset :validation-fraction 0.25
:test-fraction 0.25 :seed seed))
Catch invalid data early. The runnable NumPy/pandas example checks shape and finite values without writing a manual validation loop:
(require lispyn.macros [assert-finite assert-shape])
(import numpy :as np)
(import pandas :as pd)
(setv features (np.array [[1.0 2.0] [3.0 4.0]]))
(assert-shape features [2 2] :name "features")
(assert-finite features :name "features")
One source, three modes. The same hello.hy can run in a terminal, become an unexecuted notebook, or produce a notebook with saved outputs. See the three commands below.
Inspectable research artifacts. The quickstart renders a report from actual PyTorch training results, which can be reviewed in the executed notebook:
(require lispyn.macros [report-run narrate metric-table])
(import lispyn.training [evaluate-metrics])
(report-run run :title "PyTorch baseline · recorded metrics")
These examples help organize research; Lispyn cannot guarantee reproducibility or scientific validity.
Install
pip install lispyn
Hy, Jupyter execution and Matplotlib are included. NumPy is available through Matplotlib; for pandas install pip install "lispyn[data]". PyTorch is installed separately for your CPU/GPU setup.
How it works: three ways to run Hy
Get the hello.hy example (no dataset, no PyTorch):
git clone https://github.com/edujbarrios/lispyn.git
cd lispyn
1. Run the Hy file — terminal output, no notebook:
lispyn run examples/hello.hy
2. Generate a Jupyter notebook — hello.ipynb, Nothing is executed:
lispyn build examples/hello.hy -o hello.ipynb
3. Generate and execute the notebook — hello-executed.ipynb saves the executed cells and outputs:
lispyn execute examples/hello.hy -o hello-executed.ipynb
Check for 2 + 3 + 5 = 10 and Lispyn checks passed!. Building compiles Hy into ordinary Python/Markdown notebook cells without executing it. Only compile trusted Hy: macros are not sandboxed.
All macros and examples
Full reference: 51 macros, arguments, dependencies and Hy examples — grouped by PyTorch, Matplotlib, pandas, NumPy, notebook authoring and research reporting.
More runnable sources: PyTorch quickstart (try lispyn execute examples/quickstart.hy), data profiles and input assertions. A cloned repository also offers pip install -r requirements.txt for an optional full research environment.
Created by Eduardo J. Barrios · Apache-2.0 · Citation · Experimental alpha software.
Metadata
Release files for lispyn 0.33.0a1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| lispyn-0.33.0a1.tar.gz | 140.7 kB | With provenance | Details for lispyn-0.33.0a1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lispyn-0.33.0a1-py3-none-any.whl | Python 3 | none | any | Details for lispyn-0.33.0a1-py3-none-any.whl |
Total release size: 230.8 kB
Release files / lispyn-0.33.0a1.tar.gz
| Download URL | lispyn-0.33.0a1.tar.gz |
|---|---|
| Size | 140.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dbf81955b17987f321b1b9591a0ce54a7d77659441d2bd8f8155ced172a5d395
|
|
BLAKE2b-256 checksum How to use checksums |
4fa62a1b20bc697457b3f7c9e8b84aa4374ace886417794b4a35136b7f8b7de6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.
Transparency logRelease files / lispyn-0.33.0a1-py3-none-any.whl
| Download URL | lispyn-0.33.0a1-py3-none-any.whl |
|---|---|
| Size | 90.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4f7aec933295b8c2c6e1a67cb0dac1a1dd5163f7907539dea993e32dac6962df
|
|
BLAKE2b-256 checksum How to use checksums |
a55d9bc796f468232e17a1bfb900472b971369562c884d9f7676ec7fa4e383d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.
Transparency logSecurity for lispyn 0.33.0a1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for lispyn-0.33.0a1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.