Skip to content
This repository was archived by the owner on Oct 4, 2026. It is now read-only.

YPSH v3.0 Beta 2

Pre-release
Pre-release

Choose a tag to compare

@nercone-dev nercone-dev released this 28 Jun 03:49
· 272 commits to main since this release

New library management system

The @.import function now attempts to import .ypsh or .py files from either ~/.ypsh/libs or $YPSH_DIR/libs.
.ypsh files are prioritized for import, and if neither .ypsh nor .py files are found, standard module import is performed as before.
During import, the shallowest file is loaded.
If none of these steps result in a successful import, YPSH raises the error E0017.

❯ python ypsh.py
YPSH for Python (YPSH-NOTBUILT) [REPL]

>>> import("mylib")
Hello From YPSH
>>> import("mylib2")
Hello From Python
>>> exit()

❯ ls ~/.ypsh/libs
mylib.ypsh      mylib2.py

The default installation location has changed

From now on, YPSH will be installed to ~/.ypsh/bin by the official installer.
As before, it is still possible to specify a custom installation path.
This change does not affect manual installations or direct execution via Python.

Fixed a crash on Ctrl+C

Fixed an issue where YPSH would crash when pressing Ctrl+C in REPL mode.