Gramex 1.51 release notes

Gramex is open source

Gramex was earlier available for non-commercial use. Now, Gramex has split into two parts.

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.

CaptureHandler header example{@width=600}

This feature in CaptureHandler lets you:

Enhanced security: Protect against bots

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.

Test application on multiple screen resolutions

The Gramex pytest plugin supports 3 new commands:

DOC: upgrade g1 from 0.13 to 0.14 [S Anand]

Documentation is more interactive

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:

Bugfixes

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.

Stats

Upgrade

To upgrade Gramex, run:

pip install --upgrade gramex
pip install --upgrade gramexenterprise    # If you use DBAuth, LDAPAuth, etc.
gramex setup --all