Gramex 1.53 release notes

Natural Language Generation

Gramex has a library and interface for Natural Language Generation. Admins can upload datasets, describe them in English, and Gramex automatically creates a template out of it. These templates are dynamic (based on data) and can be embedded in dashboards

The feature is in beta, and the documentation is not available yet. But you can preview it on the admin page.

NLG admin page screenshot

Gramextest makes testing easier

Gramextest has several new features:

A blank tests/gramextest.yaml is now included in gramex init.

g1.fuzzysearch lets you match strings approximately. This makes search-as-you-type much easier.

g1 is upgraded to 0.16.1. This improves $.template and the link: attribute in FormHandler columns.

Vega is upgraded to 5.0.

Templates support UI modules

Tornado supports a feature called UI Modules. This lets you import template files like calling functions.

FileHandler templates now support this feature. You can use:

This is the parent template. {% module Template('embedded.html', var1=...,
var2=...) %} -- this template is embedded here.

Statistics

The Gramex code base has:

How to upgrade

To upgrade Gramex, run:

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