Skip to main content

For creating and deploying surveys

Project description

Hemlock

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

Create a file app.py in the root directory of your project:

import eventlet
eventlet.monkey_patch()

from hemlock import Branch, Page, Label, create_app, route

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

app = create_app()

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

Run your app:

$ python3 app.py

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

Citation

@software{bowen2021hemlock,
  author = {Dillon Bowen},
  title = {Hemlock},
  url = {https://dsbowen.github.io/hemlock/},
  date = {2021-02-13},
}

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.

Files for hemlock-survey, version 0.0.48
Filename, size File type Python version Upload date Hashes
Filename, size hemlock_survey-0.0.48-py3-none-any.whl (302.1 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size hemlock-survey-0.0.48.tar.gz (270.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page