Metadata-Version: 2.1
Name: stpmex
Version: 2.0.2
Summary: Client library for stpmex.com
Home-page: https://github.com/cuenca-mx/stpmex-python
Author: Cuenca
Author-email: dev@cuenca.com
License: UNKNOWN
Platform: UNKNOWN
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
Requires-Dist: zeep (<3.2.0,>=3.1.0)
Requires-Dist: pyopenssl (<18.1.0,>=18.0.0)
Requires-Dist: clabe (<0.3.0,>=0.2.1)
Requires-Dist: pydantic (>=0.31.1<0.32.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: pycodestyle ; extra == 'test'
Requires-Dist: pytest-cov ; extra == 'test'
Requires-Dist: black ; extra == 'test'
Requires-Dist: isort[pipfile] ; extra == 'test'

# STP client python3.6+ client library

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

Cliente para el servicio SOAP de STP


## Requerimientos

Python v3.6 o superior.

## Instalación

```
pip install stpmex
```

## Test

```
make venv
source venv/bin/activate
make test
```

## Uso básico

```python
from stpmex import Client, Orden

client = Client(
    empresa='TU_EMPRESA',
    priv_key='PKEY_CONTENIDO',
    priv_key_passphrase='supersecret'
)
orden = Orden(
    institucionContraparte='40072',
    monto=1.2,
    nombreBeneficiario='Ricardo Sanchez',
    tipoCuentaBeneficiario=40,
    cuentaBeneficiario='072691004495711499',
    conceptoPago='Prueba',
)
resp = client.registrar_orden(orden)
orden_id = resp['id']
```

