Gramex 1.88 supports Breakpoint debugging and templates for the IDE.
Gramex used to prefer ipdb
as the default debugger.
Now, Gramex uses the default breakpoint()
mechanism.
In any FunctionHandler, transform, or any Python code, add breakpoint()
to pause execution and enter the debugger.
You can replace the default Python debugger pdb
by setting the PYTHONBREAKPOINT
environment variable:
PYTHONBREAKPOINT=ipdb.set_trace
- IPython-enabled pdbPYTHONBREAKPOINT=pdbpp.set_trace
- a drop-in replacement for pdbPYTHONBREAKPOINT=pudb.set_trace
- a full-screen console-based debuggerPYTHONBREAKPOINT=wdb.set_trace
- a web debuggerPYTHONBREAKPOINT=webpdb.set_trace
- a web UI for pdbRun gramex init ide
to create a new Gramex project that is used on the Gramex IDE.
This is a lightweight template that has:
index.html
that says “Welcome to Gramex”gramex.yaml
that imports Gramex UIThe Gramex Docker build is now based on Alpine 3.17 (from 3.16). This is a security update. #676
gramex
command is now available from the PATH of the Gramex Docker images #683gramex.auth.db
to 1.87+ now work on Unix #678Gramex 1.88 is backward compatible with previous releases unless the release notes say otherwise. Automated builds test this.
Every Gramex release is tested for security vulnerabilities using the following tools.
The Gramex code base has: