semvec/pypi-packages huggingface dataset:
rolldice-binding 0.1
Command line bindings for the py-rolldice library
Requires Python: >=3.5

# rolldice-binding
A python module that binds the very useful py-rolldice commands into
a simple command line application which can be called from the comand
line.

## Usage:
Install the module.
```
python -m pip install rolldice-binding
```

Now you should be able to call this from the command line.
```
$ rolldice 2d10+4
```
xlsx-from-json 1.0.1
Creates xlsx from json via openpyxl.

# xlsx_from_json

Creates xlsx from json via [openpyxl](https://openpyxl.readthedocs.io/en/latest/index.html).

## Usage

Create .json file with following structure:

```java
{
    "rows": [
        {
            "cells": [
                {
                    "value": "Sample text",
                    // merge 5x2 cell range
                    "width": 5,
                    "height": 2,
                    // openpyxl style: https://openpyxl.readthedocs.io/en/2.5/styles.html
                    "style": {
                        "font": {
                            "name": "Times New Roman",
                            "size": 12
                        },
                        "border": {
                          "bottom": {
                            // openpyxl border styles: // https://openpyxl.readthedocs.io/en/stable/_modules/openpyxl/styles/borders.html
                            "border_style": "medium",
                            "color": "FFFFFFFF"
                          }
                        }
                    }
                }
            ],
            // move row by 2x1
            "skip_columns": 2,
            "skip_rows": 1,
            // change row height
            "row_height": 10
        }
    ],
    "start_column": 1,
    "start_row": 1,
    // change column widths
    "column_widths": [
        {
            // column_number or column_letter
            "column_number": 1,
            "width": 10
        }
    ],
    // set number format (e.g. 1.234 -> 1.23)
    "number_format": "0.00",
    // apply style to all cells
    "default_style": {
        "font": {
            "bold": true
        }
    }
}
```

Create openpyxl workbook via ``xlsx_from_json`` function:

```python
import json
from xlsx_from_json import xlsx_from_json

with open("data.json", encoding="utf-8") as f:
    json_data = json.load(f)

wb = xlsx_from_json(json_data)
```

Created workbook will have values:

```python
sheet = wb.active
assert sheet.cell(row=2, cell=3).value == "Sample text"
```

The same true for the styles (cell ctyle + default style):

```python
sheet = wb.active
assert sheet.cell(row=2, cell=3).font.name == "Times New Roman"
assert sheet.cell(row=2, cell=3).font.bold == True
```


Now you can use workbook according to openpyxl [guide](https://openpyxl.readthedocs.io/en/latest/usage.html).
waitz-s3-api 0.0.3
API created by Waitz that provides useful functionality to read and write from AWS S3.

# Waitz S3 API Docs

#### download_file(bucket, key, local_path)

    Grab a file from S3 and bring it onto your local machine at the
    specified path.

    bucket (str)     -- Bucket that the file exists in
    key (str)        -- Key that the file exists in
    local_path (str) -- Where the file will be stored on the caller's machine