semvec/pypi-packages huggingface dataset:
pyDocxReport 0.1.0
module to ease the docx report generation using templates and importing features
Requires Python: >=3.6

# pyDocxReport
Ease the docx report generation using templates and importing features

## DataBridge
DataBridge class manages resources and match them with keyword set in a template docx file.  
All keywords in the template so referenced ar replaced by the appropriate content.  
An example of use with a yml file as a matchs dictionary is given below:

    bridge = DataBridge('path/to/template.docx')
    matchs['_keyword2_'] = {
                                'type': 'table',
                                'replacement': df1,
                                'header': False
                            }
    bridge.match(matchs)
    bridge.save('path/to/output.docx')

where matchs is defined as a yml file like below:

    _keyword1_:
        type: string
        replacement: text1
    _myimage1set_:
        type: images
        replacement: 
            - path/to/image1.png
            - path/to/image2.jpg
        width: 120
    _logo_:
        type: images
        replacement: path/to/logo.png
        height: 10
    _keyword2_:
        type: table
        replacement: table1
        header: false               # if header is true, the column names of the DataFrame are used as header. Otherwiser no header. Default is no header
    _text2_:
        type: string
        replacement: text2

See [tests](https://github.com/20centcroak/pyDocxReport/blob/main/tests/unit/test_databridge.py) to see this example implemented.

## DocxTemplate
The DocxTemplate class makes use of python-docx to modify a word document.
Use DataBridge for a standard operation and use DocxTemplate when you need to tune some replacements.
smartbonuspy 0.0.6
This package provides Python implementation of Smartbonus api. Supported all public api of smartbonus.
Requires Python: >=3.6

# Smartbonus package for Python language

This package provides Python implementation of Smartbonus api. Supported all public api of smartbonus.

With 100% test coverage.

## Installation

Use the `pip` command:

	$ pip install smartbonuspy

## Requirements

Smartbonus package tested against Python 3.8.1

## Example

```python
from smartbonus import SmartBonus, set_root_path

# Creating sb
# Ask about params smartbonus team
set_root_path("https://your.smartbonus.com/api/v2/")
sb = SmartBonus("your store id")

# Get smartbonus info about client: catch error by self
client = sb.get_client('0555555555')
print(client)

# Get erorr
data, ok = sb.get_client('0555555555', raise_error=False)
if ok:
    print('your client', data)
else:
    print('error', data)

# see tests for more
```