Gramex was earlier available for non-commercial use. Now, Gramex has split into two parts.
license@gramener.com
The installation commands are now:
pip install gramex # Install open source version
pip install gramexenterprise # Install enterprise version (non-commercial use)
PDF screenshots now support headers and footers.
This feature in CaptureHandler lets you:
Gramex auth prevents againt bot attacks using CAPTCHAs in the login screen. This configuration will add reCAPTCHA support.
url:
login-page:
kwargs:
recaptcha:
key: YOUR-RECAPTCHA-KEY
secret: YOUR-RECAPTCHA-SECRET
The CAPTCHA is invisible. Human users do not need to do anything different. Bots will not be able to log in.
The Gramex pytest plugin supports 3 new commands:
resize: [800, 600]
runs UI tests on a browser with 800x600 resolution. You
may set any valuename: ...
names tests. You can run specific tests using pytest -k <name>
.title: ...
checks whether the page title matches a valueDOC: upgrade g1 from 0.13 to 0.14 [S Anand]
The g1 interactive library documentation shows examples in-place. You can see the effect of the code directly. Some examples:
The guide now uses the Gramex UI component library. We also have new documentation on:
FormHandler processes data much better. Specifically:
This apart, run gramex --watch=False
disables auto-reload of gramex.yaml
files. This helps when running apps that are final (e.g. in production) and
should not be refreshed automatically.
To upgrade Gramex, run:
pip install --upgrade gramex
pip install --upgrade gramexenterprise # If you use DBAuth, LDAPAuth, etc.
gramex setup --all