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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for hemlock_survey-0.0.37-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4345d0167170707f3f9d84b2f7b89dee9680d36fef9fe968a9d31ef69da1fd24 |
|
MD5 | f63e8320b752637283ec4eb0894d8ec0 |
|
BLAKE2b-256 | ac6c6b29f6a772bfcb84352b19870a2f3e70891738c656d0fa0350b0e2dc2a73 |