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.26-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f1300a3f310f98ef8a692b02d089e10ec8e2e0f9edb1f68eaf81461622a691d |
|
MD5 | 1d717606c9a814af9db5c36006bfed86 |
|
BLAKE2b-256 | 7a4c8fb55ea08a6615f713a68642d179be6c55ffba300e41786a741ae5bed84c |