Skip to main content

A package for creating and deploying surveys

Project description

Hemlock aspires to be the most powerful and flexible way to create online studies, with applications in marketing and behavioral science research.

If you're new to python, or the installation and quickstart instructions don't make sense to you, check out the tutorial.

Installation

$ pip install hemlock-survey

Quickstart

First, create a file app.py in the root directory of your project:

import survey

from hemlock import create_app

app = create_app()

if __name__ == '__main__':
    from hemlock.app import socketio
    socketio.run(app, debug=True)

Create another file survey.py in the same directory:

from hemlock import Branch, Label, Page, route

@route('/survey')
def start():
    return Branch(Page(Label('<p>Hello, World!</p>'), terminal=True))

Run your app:

$ python3 app.py

And navigate to http://localhost:5000/ in your browser.

Citation

@software{bowen2020hemlock,
  author = {Dillon Bowen},
  title = {Hemlock},
  url = {https://dsbowen.github.io/hemlock/},
  date = {2020-07-10},
}

License

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

It is licensed with the Hemlock Research License. The license permits free use for academic research, and requires written permission from hemlock's author, Dillon Bowen, for commercial use.

Project details


Download files

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

Source Distribution

hemlock-survey-0.0.44.tar.gz (269.7 kB view hashes)

Uploaded Source

Built Distribution

hemlock_survey-0.0.44-py3-none-any.whl (410.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page