Metadata-Version: 2.1
Name: botmaker
Version: 0.3.6.dev4
Summary: BotMaker API Client
Home-page: https://github.com/cuenca-mx/botmaker-python
Author: Cuenca
Author-email: dev@cuenca.com
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests <3.0.0,>=2.21.0
Requires-Dist: dataclasses >=0.6 ; python_version < "3.7"
Provides-Extra: test
Requires-Dist: pytest ; extra == 'test'
Requires-Dist: pytest-vcr ; extra == 'test'
Requires-Dist: pytest-cov ; extra == 'test'
Requires-Dist: black ; extra == 'test'
Requires-Dist: isort ; extra == 'test'
Requires-Dist: flake8 ==3.7.9 ; extra == 'test'
Requires-Dist: mypy ==0.812 ; extra == 'test'

# BotMaker client library

[![Build Status](https://travis-ci.com/cuenca-mx/botmaker-python.svg?branch=master)](https://travis-ci.com/cuenca-mx/botmaker-python)
[![Coverage Status](https://coveralls.io/repos/github/cuenca-mx/botmaker-python/badge.svg?branch=master)](https://coveralls.io/github/cuenca-mx/botmaker-python?branch=master)
[![PyPI](https://img.shields.io/pypi/v/botmaker.svg)](https://pypi.org/project/botmaker/)


## Installation

```bash
pip install botmaker
```

## Run tests

```bash
make venv
source venv/bin/activate
export BOTMAKER_ACCESS_TOKEN={access_token}
make test
```

## Release to PyPi

```bash
pip install -U setuptools wheel twine
make release
# PyPi will prompt you to log in
```

## Usage

### Send a message based on an existing template

```python
import botmaker


client = botmaker.Client()  # Will use the env var BOTMAKER_ACCESS_TOKEN

# Send from '5215500000000' to '5215522222222'
client.template_messages.create(
    '5215500000000', '5215522222222',
    'template_name', template_param1='x', template_param2='y'
)
```
