semvec/pypi-packages huggingface dataset:
hemlock-crt 0.0.2
Cognitive Reflection Test for Hemlock projects
Requires Python: >=3.6

Hemlock-CRT is a <a href="https://dsbowen.github.io/hemlock" target="_blank">hemlock</a> extension for adding a cognitive reflection test to hemlock projects.

## Installation

With hemlock-CLI (recommended):

```
$ hlk install hemlock-crt
```

With pip:

```
$ pip install hemlock-crt
```

## Quickstart

In this example, we add a CRT with the bat and ball, lily pads, widgets,
and students problem. Then we display the results to the participant.

In `survey.py`:

```python
from flask_login import current_user
from hemlock import Branch, Page, Label, route
from hemlock_crt import crt

@route('/survey')
def start():
    return Branch(
        *crt('bat_ball', 'lily_pads', 'widgets', 'students', page=True),
        Page(
            Label(compile=display_score),
            terminal=True
        )
    )

def display_score(label):
    label.label = '''
    <p>You gave {} correct and {} intuitive answers out of {} CRT questions.
    </p>
    '''.format(
        current_user.g['CRT_Correct'], 
        current_user.g['CRT_Intuitive'], 
        current_user.g['CRT_Total']
    )
```

`app.py` is standard from the hemlock template.

Run with:

```bash
hlk serve
```

or

```bash
python app.py
```

## Citations

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

@article{frederick2005cognitive,
  title={Cognitive reflection and decision making},
  author={Frederick, Shane},
  journal={Journal of Economic perspectives},
  volume={19},
  number={4},
  pages={25--42},
  year={2005}
}
```

## License

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

It is licensed with the MIT [License](https://github.com/dsbowen/hemlock-crt/blob/master/LICENSE).
pycreator 0.2.2
Automatically create a command application
Requires Python: >=3.6

# pycreator
Create boilerplate application thru the command-line!

## TLDR; 
```
pip install pycreator       # to install pycreator
pycreator goes brrr         # where brr is the name
```

## Usage

### create
This command allow to create a Python boilerplate application with the structure as showed below.
Available commands for `create`:
```
-n, --name      -- application name (required)
-l, --location  -- location to create a new package. If none it will create at working directory
```

Structure of example application named `brrr` (`pycreator create -n brrr`)
```
brrr
â”‚   LICENSE.md
â”‚   README.md
â”‚   VERSION
â”‚
â””â”€â”€â”€src
    â””â”€â”€â”€brrr
        â”‚   setup.py
        â”‚   __init__.py
        â”‚
        â”śâ”€â”€â”€actions
        â”‚   â”‚   action.py
        â”‚   â”‚   action_dispatcher.py
        â”‚   â”‚   version.py
        â”‚   â”‚   __init__.py
        â”‚   â”‚
        â”‚   â””â”€â”€â”€example_action
        â”‚           example_action.py
        â”‚           __init__.py
        â”‚
        â”śâ”€â”€â”€core
        â”‚       __init__.py
        â”‚
        â”śâ”€â”€â”€framework
        â”‚       messages.py
        â”‚       __init__.py
        â”‚
        â””â”€â”€â”€main
                main.py
                __init__.py
```

### add 
_Note:_ This is experimental function and it does not work always correct

The `add` function allow to add a new action into `actions` directory. 
To use it please be at `brrr` directory under `src` (please see an example above) and the type: 
```
pycreator add -n action_name
```
New folder `action_name` and `action_name.py` will be created. 

_Note:_ Please import a new action in `actions_dispatcher.py` file manually.

New action should be added here, into `ACTION_HANDLERS`
```
class ActionDispatcher:
    ACTION_HANDLERS = [AddAction,
                       CreateAction,
                       GoesAction,
                       ShowVersion]
                       
```

## Build
Boilerplate app comes with preconfigured `setup.py` file which allow to create a `.whl` package.
To build a package, go to `src` dir a type in the terminal:
```
pip install setuptools wheel
python setup.py sdist bdist_wheel
```
After operation in the newly created dir `dist/` you should find a `*.tar.gz` & `*.whl` packages.