Metadata-Version: 2.1
Name: hemlock-survey
Version: 0.0.39
Summary: A package for creating and deploying surveys
Home-page: https://dsbowen.github.io/hemlock
Author: Dillon Bowen
Author-email: dsbowen@wharton.upenn.edu
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: bs4 (>=0.0.1)
Requires-Dist: convert-list (>=0.0.1)
Requires-Dist: cssutils (>=1.0.2)
Requires-Dist: eventlet (>=0.25.1)
Requires-Dist: flask (>=1.1.1)
Requires-Dist: flask-download-btn (>=0.0.22)
Requires-Dist: flask-login (>=0.4.1)
Requires-Dist: flask-socketio (>=4.2.1)
Requires-Dist: flask-sqlalchemy (>=2.4.1)
Requires-Dist: flask-talisman (>=0.7.0)
Requires-Dist: flask-worker (>=0.0.13)
Requires-Dist: pandas (>=1.0.1)
Requires-Dist: python-docx (>=0.8.10)
Requires-Dist: redis (>=3.3.11)
Requires-Dist: rq (>=1.2.0)
Requires-Dist: selenium (>=3.141.0)
Requires-Dist: selenium-tools (>=0.0.1)
Requires-Dist: sqlalchemy (>=1.3.12)
Requires-Dist: sqlalchemy-modelid (>=0.0.3)
Requires-Dist: sqlalchemy-mutable (>=0.0.10)
Requires-Dist: sqlalchemy-orderingitem (>=0.0.5)

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](https://dsbowen.github.io/hemlock/tutorial/intro/).

## Installation

```bash
$ pip install hemlock-survey
```

## Quickstart

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

```python
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:

```python
from hemlock import Branch, Label, Page, route

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

Run your app:

```bash
$ 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](https://github.com/dsbowen/hemlock/blob/master/LICENSE). The license permits free use for academic research, and requires written permission from hemlock's author, Dillon Bowen, for commercial use.

