Skip to main content

Hemlock extension for the adaptive Berlin numeracy test

Project description


Hemlock-Berlin is a hemlock extension which allows you to add a Berlin numeracy test to hemlock projects.


With the hemlock-CLI (recommended):

$ hlk install hemlock-berlin

With pip:

$ pip install hemlock-berlin


This example shows how to add an adaptive Berlin numeracy test to your hemlock survey and display the participant's score to him/her.


from flask_login import current_user
from hemlock import Branch, Page, Label, route
from hemlock_berlin import berlin

def start():
    return Branch(

def display_score(label):
    label.label = '<p>Berlin score: {}</p>'.format(
    ) is standard from the hemlock template.

Run the app with the hemlock command line interface:

hlk serve

or with python:



  author = {Dillon Bowen},
  title = {Hemlock-Berlin},
  url = {},
  date = {2020-10-05},

  title={Measuring risk literacy: The Berlin numeracy test.},
  author={Cokely, Edward T and Galesic, Mirta and Schulz, Eric and Ghazal, Saima and Garcia-Retamero, Rocio},
  journal={Judgment and Decision making},
  publisher={Society for Judgment and Decision Making}


Users must cite this package in any publications which use it.

It is licensed with the MIT License.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for hemlock-berlin, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size hemlock_berlin-0.0.3-py3-none-any.whl (4.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size hemlock-berlin-0.0.3.tar.gz (3.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page